Skip to content

Comment on Metaprogramming in Python

Comments

The article's reference to "classobj" is wrong for Python 3 (that was the type of old-style classes in Python 2). In Python 3:

    >>> class SomeClass:
    ...     pass
    ...
    >>> type(SomeClass)
    <class 'type'>

Thanks for pointing it out

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.