Samuele Pedroni wrote: > [...] > > this should approximate that behavior better: [not tested] > > import sys > > .... > def __new__(cls, name, bases, dic): > sub = [x for x in dic.values() if isinstance(x,HierarchMeta)] > newtype = type.__new__(cls, name, bases, dic) > for x in sub: > if not hasattr(x, '_outer_') and > getattr(sys.modules.get(x.__module__), x.__name__, None) is not x: > x._outer_ = newtype > return newtype > > ..... > > we don't set _outer_ if a way to pickle the class is already there This doesn't fix class Foo: class Bar: pass class Baz: Bar = Foo.Bar both this should be a simple fix. Bye, Walter Dörwald
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