Ticket #4348 (new minor enhancement)

Opened 6 years ago

Last modified 6 years ago

When creating models, need to catch, warn, and throw exception when users define a "load" attribute

Reported by: jwatson Owned by: unassigned
Priority: normal Milestone: Pyomo 4.x
Component: pyomo.core Version:
Keywords: Cc:


If one defines model.load, this yields very bizarre behavior - specifically, because you end up over-writing the existing method, i.e., the real load().

We need to modify PyomoModel? setattr to catch any potential changes to existing methods of the class.

Change History

comment:1 Changed 6 years ago by jwatson

  • Milestone changed from Coopr 3.2 to Coopr 3.x
Note: See TracTickets for help on using tickets.