homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients alexandre.vassalotti, gvanrossum, maatt, pitrou, serhiy.storchaka
Date 2015年10月27日.04:14:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445919242.48.0.90366175321.issue25472@psf.upfronthosting.co.za>
In-reply-to
Content
The issue seems to be the line
 inst_dict = inst.__dict__
in _Unpickler.load_build(). (I found this out by forcing sys.modules['_pickle'] = None, so the pure-Python pickle.py code gets used.)
This leads to a simpler repro: 
# Use the same class definitions for A and B
b = B("hello")
print(b.__dict__) # Same error message as before
That is, specialized subclasses of generics don't have a working __dict__ attribute! Interestingly, A("hello").__dict__ works.
I have to ponder this more.
History
Date User Action Args
2015年10月27日 04:14:02gvanrossumsetrecipients: + gvanrossum, pitrou, alexandre.vassalotti, serhiy.storchaka, maatt
2015年10月27日 04:14:02gvanrossumsetmessageid: <1445919242.48.0.90366175321.issue25472@psf.upfronthosting.co.za>
2015年10月27日 04:14:02gvanrossumlinkissue25472 messages
2015年10月27日 04:14:01gvanrossumcreate

AltStyle によって変換されたページ (->オリジナル) /