[issue3816] __newobj__ pickle feature is not documented

2009-06-08 Thread Alexandre Vassalotti
Alexandre Vassalotti 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 tracker

[issue3816] __newobj__ pickle feature is not documented

2008-10-29 Thread Alexandre Vassalotti
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

[issue3816] __newobj__ pickle feature is not documented

2008-10-29 Thread Christian Heimes
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 th

[issue3816] __newobj__ pickle feature is not documented

2008-10-29 Thread Christian Heimes
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-sty

[issue3816] __newobj__ pickle feature is not documented

2008-10-29 Thread Alexandre Vassalotti
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 ___ Py

[issue3816] __newobj__ pickle feature is not documented

2008-09-09 Thread Christian Heimes
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 u