"David" <bouncingc...@gmail.com> wrote
clever enough to refuse to instantiate itself if a necessary conditionis not met.
class MyClass_2(object): def __new__(self, condition): if condition: return object.__new__(self) else: return None
Thats pretty much how I'd do it.Alan G.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor