Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Ticket #4348 (new minor enhancement)

Opened 2 years ago

Last modified 20 months 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: Coopr 3.x
Component: coopr.pyomo Version:
Keywords: Cc:

Description

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.

Attachments

Change History

comment:1 Changed 20 months ago by jwatson

  • Milestone changed from Coopr 3.2 to Coopr 3.x
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.