class problem

Fredrik Lundh fredrik at pythonware.com
Mon Aug 28 14:16:34 EDT 2006


Duncan Booth wrote:

> Yes, the first one is a syntax error because you aren't allowed empty 
> parentheses in a class statement

however,

$ python
Python 2.5c1 /.../
 >>> class foo():
...     pass
...
 >>> foo
<class __main__.foo at 0x00A3D840>
 >>>

</F>




More information about the Python-list mailing list