Changeset 4290 for coopr.pyomo


Ignore:
Timestamp:
06/28/11 12:44:54 (3 years ago)
Author:
tekl
Message:

__del__ guard in _VarValue class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pyomo/trunk/coopr/pyomo/base/var.py

    r4287 r4290  
    4444 
    4545    def __del__(self): 
    46         NumericValue.__del__(self) 
     46        if NumericValue is not None: 
     47            NumericValue.__del__(self) 
    4748        del self.var 
    4849 
Note: See TracChangeset for help on using the changeset viewer.