Alexandre Vassalotti alexan...@peadrop.com added the comment:
Closing as the feature is documented in the section The __newobj__
unpickling function of PEP 307.
--
assignee: georg.brandl -
resolution: - invalid
status: open - closed
___
Python
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
Could explain me how this feature could be used, other than for
providing the efficient and backward-compatible pickling mechanism for
new-style classes?
--
nosy: +alexandre.vassalotti
___
Christian Heimes [EMAIL PROTECTED] added the comment:
Alexandre Vassalotti wrote:
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
Could explain me how this feature could be used, other than for
providing the efficient and backward-compatible pickling mechanism for
new-style
Christian Heimes [EMAIL PROTECTED] added the comment:
Christian Heimes wrote:
Christian Heimes [EMAIL PROTECTED] added the comment:
Alexandre Vassalotti wrote:
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
Could explain me how this feature could be used, other than for
Alexandre Vassalotti [EMAIL PROTECTED] added the comment:
Without the __reduce__ method the information in __dict__ and
the class would be lost.
Are you sure about that?
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
class mydict(dict):
New submission from Christian Heimes [EMAIL PROTECTED]:
The pickle system has an undocumented but very useful feature. When the
first element of the tuple returned by __reduce__ is a function named
__newobj__, a special obcode is generated. __newobj__ doesn't need to be
registered as safe for