Should FixedPoint Derive From 'object'

Delaney, Timothy tdelaney at avaya.com
Sun Oct 20 20:57:53 EDT 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