Author rhettinger
Recipients andyharrington, arigo, benjamin.peterson, rhettinger, stutzbach
Date 2011-02-27.21:42:39
SpamBayes Score 0.100909
Marked as misclassified No
Message-id <>
class Prepared(type):
    'Preload the class with a reference to itself'

    def __prepare__(mcl, name, bases):
        return {name: type(name, bases, {})}

    def __new__(mcl, name, bases, mapping):
        tmpcls = super().__new__(mcl, name, bases, mapping)
        deferred_class = mapping[name]
        deferred_class.__dict__.update(tmpcls.__dict__)  # XXX need writeable dict_proxy
        return deferred_class

class Graph(metaclass=Prepared):
    def reverse(self) -> Graph:
Date User Action Args
2011-02-27 21:43:31rhettingerunlinkissue11339 messages
2011-02-27 21:42:39rhettingersetrecipients: + rhettinger, arigo, andyharrington, benjamin.peterson, stutzbach
2011-02-27 21:42:39rhettingersetmessageid: <>
2011-02-27 21:42:39rhettingerlinkissue11339 messages
2011-02-27 21:42:39rhettingercreate