Bob Ippolito wrote: > > class Foo(object): > __metaclass__ = Bar > ... > > is *much* different than > > class Foo(object): > ... > Foo = barEquivalentFunction(Foo) > > which is the same as > > @barEquivalentFunction > class Foo(object): > ... > Only if you choose to write it such that it is different. Either can result in effects that persist down the inheritence tree, and either can result in effects that do not. Jp
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4