➜

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.

作者 belopolsky
收信人 alexandre.vassalotti, amaury.forgeotdarc, belopolsky, jnoller
日期 2010-06-26.15:08:49
SpamBayes Score 0.014102183
Marked as misclassified 否
Message-id <1277564932.47.0.843259496573.issue3385@psf.upfronthosting.co.za>
In-reply-to
内容
Do I understand correctly that the issue is that python Pickler class has dispatch attribute but C Pickler does not?  The add_dispatch_check-0.patch patch does not seem to add class attribute, it adds an instance attribute instead.

I also noticed that there are many more class attributes that only Python implementation has:

>>> for x in dir(pickle._Pickler):
...    if not (x.startswith('_') or hasattr(pickle.Pickler, x)):
...       print(x)
... 
dispatch
get
memoize
put
save
save_bool
save_bytes
save_dict
save_float
save_global
save_list
save_long
save_none
save_pers
save_reduce
save_str
save_tuple


The save_* methods are clearly internal and should probably be renamed to begin with __ unless they are intended to be overridden by Pickler subclases
历史
日期 用户 动作 参数
2010-06-26 15:08:52belopolsky修改recipients: + belopolsky, amaury.forgeotdarc, alexandre.vassalotti, jnoller
2010-06-26 15:08:52belopolsky修改messageid: <1277564932.47.0.843259496573.issue3385@psf.upfronthosting.co.za>
2010-06-26 15:08:50belopolsky链接issue3385 messages
2010-06-26 15:08:50belopolsky创建