Should FixedPoint Derive From 'object'

Delaney, Timothy tdelaney at avaya.com
Mon Oct 21 02:57:53 CEST 2002


> From: Tim Peters [mailto:tim.one at comcast.net]
> 
> try:
>     object
> except NameError:
>     class object:
>         pass
> 

Also, you could do

__metaclass__ = type

or

class FixedPoint:

    __metaclass__ = type

Tim Delaney




More information about the Python-list mailing list