Is this a bug, or is it me?

Neil Cerutti mr.cerutti at gmail.com
Thu Jan 17 10:28:50 EST 2008


On Jan 17, 2008 10:23 AM, Neil Cerutti <mr.cerutti at gmail.com> wrote:
> You cannot access a class's class variables in it's class-statement
> scope, since the name of the type is not bound until after the class
> statement is completed.

Arrgh! I hate making the "its" error. But I wanted to add that this
property of Python's class statement bothers me only when I think it
would be good to use class variables as default method argument
values. Luckily, I don't think very often. ;)

-- 
Neil Cerutti <mr.cerutti+python at gmail.com>



More information about the Python-list mailing list