Message1535
why guessing when you can check? I still don't understand what's the problem, too little information
Python 2.4.3 (#1, Apr 7 2006, 10:54:33)
[GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> class T(type):
... def __init__(self, name, bases, dct):
... global d
... d = dct
...
>>> class X(object):
... __metaclass__ = T
... global d1
... d1 = locals()
...
>>> d1 is d
True
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:46 | admin | link | issue1676293 messages |
2008-02-20 17:17:46 | admin | create | |
|