GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Support pickling of super object · Issue #125767 · python/cpython Closed Labels type-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementAs was noted in #125714 (comment), the import pickle class X: pass s = super(X, X()) pickle.dumps(s) Produces a traceback: Traceback (most recent call last): File "<python-input-0>", line 4, in <module> pickle.dumps(s) ~~~~~~~~~~~~^^^ _pickle.PicklingError: first argument to __newobj__() must be <class 'super'>, not <class '__main__.X'> when serializing super object This is because the special methods like >>> super(X, X()).__reduce_ex__(5) (<function __newobj__ at 0x7fd9e8a0ad50>, (<class '__main__.X'>,), None, None, None) This cannot be solved by implementing the There may be similar issue with shallow and deep copying. Linked PRsReacted by blhsing and Vaibhav Tiwari Activity
MetadataMetadataAssigneesLabelstype-featureA feature request or enhancementA feature request or enhancement Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |