Info needed on metaclasses / type-ing
Aahz
aahzpy at panix.com
Sat Mar 23 10:19:40 EST 2002
In article <a7i109$ufh$1 at ulysses.noc.ntua.gr>,
Dimitris Garanatsios <rs96057 at hotmail.com> wrote:
>
>My question is about the "SingletonMetaClass" class.
>I have tried in the past to create my own types using Python and just could
>not find a way of doing that since built-in type objects' structure where
>not documented.
>
>The "SingletonMetaClass though", as far as i can understand, please help me
>with that, is doing exactly what i wanted: a new type definition. I browsed
>Python's manuals to find more about the attributes and functions that are
>used, but found nothing...
You need to upgrade to Python 2.2 (or 2.2.1, which will be available
within a month). If this is the first you've heard of 2.2, you're in
for a *big* surprise. ;-)
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"We should forget about small efficiencies, about 97% of the time.
Premature optimization is the root of all evil." --Knuth
More information about the Python-list
mailing list