[Baypiggies] deleting an inherited attribute?
Keith Dart
keith at kdart.com
Tue Aug 8 23:56:38 CEST 2006
Rob Miller wrote the following on 2006-08-08 at 14:47 PDT:
===
> any suggestions?
===
Can you fix the other code that's checking for the attribute? If not,
you can do this:
class C(object):
def _nope(self):
raise AttributeError
value = property(_nope)
--
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Dart <keith at dartworks.biz>
public key: ID: 19017044
<http://www.dartworks.biz/>
=====================================================================
More information about the Baypiggies
mailing list