Need help with Python scoping rules

D'Arcy J.M. Cain darcy at druid.net
Thu Aug 27 08:55:40 EDT 2009


On Thu, 27 Aug 2009 09:10:46 +0100
Stephen Fairchild <somebody at somewhere.com> wrote:
> So why didn't you delete it after you were done with it?
> 
> Class Demo(object):

That should be "class".

>     _classvar = fact(5)
>     del fact()

I suppose you mean "del fact".

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list