[issue22986] Improved handling of __class__ assignment

2017-09-08 Thread Eric Snow
Eric Snow added the comment: The gmane link isn't working for me. Here's the mailing list archive thread: https://mail.python.org/pipermail/python-dev/2014-November/thread.html#137262 https://mail.python.org/pipermail/python-dev/2014-December/thread.html#137370 --

[issue22986] Improved handling of __class__ assignment

2016-07-12 Thread Nick Coghlan
Nick Coghlan added the comment: Just noting I filed http://bugs.python.org/issue27505 regarding the lack of documentation for the new-in-Python-3.5 ability to set module __class__ attributes. -- ___ Python tracker

[issue22986] Improved handling of __class__ assignment

2015-01-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0d25de5919e by Benjamin Peterson in branch 'default': allow changing __class__ between a heaptype and non-heaptype in some cases (closes #22986) https://hg.python.org/cpython/rev/c0d25de5919e -- resolution: -> fixed stage: patch review ->

[issue22986] Improved handling of __class__ assignment

2015-01-16 Thread Benjamin Peterson
Benjamin Peterson added the comment: (That message should have gone to #23250.) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22986] Improved handling of __class__ assignment

2015-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3671e6ba106 by Benjamin Peterson in branch 'default': merge 3.4 (#22986) https://hg.python.org/cpython/rev/d3671e6ba106 -- nosy: +python-dev ___ Python tracker __

[issue22986] Improved handling of __class__ assignment

2015-01-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Oh, I forgot references to non-heaptypes in the header don't count... objects now being able to transmute between heap and heap-type really makes for a nice can of worms. -- ___ Python tracker

[issue22986] Improved handling of __class__ assignment

2015-01-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why do you have all these special cases of ref-counting based on Py_TPFLAGS_HEAPTYPE? "static" types are generally ref-counted, too. (They just hopefully don't reach 0 often. :)) -- ___ Python tracker

[issue22986] Improved handling of __class__ assignment

2015-01-09 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +benjamin.peterson stage: -> patch review type: -> enhancement versions: +Python 3.5 ___ Python tracker ___

[issue22986] Improved handling of __class__ assignment

2015-01-08 Thread Nathaniel Smith
Nathaniel Smith added the comment: I hereby invoke the one month ping rule! Patch, be pinged! -- ___ Python tracker ___ ___ Python-bug

[issue22986] Improved handling of __class__ assignment

2014-12-02 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22986] Improved handling of __class__ assignment

2014-12-02 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue22986] Improved handling of __class__ assignment

2014-12-02 Thread Nathaniel Smith
Nathaniel Smith added the comment: Here's a slightly improved patch spurred by a parenthetical comment of Antoine's on the mailing list :-). The only change is that it adds a check in subclass_dealloc to correct the reference counting in the weird case that someone converts a HEAPTYPE object

[issue22986] Improved handling of __class__ assignment

2014-12-02 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue22986] Improved handling of __class__ assignment

2014-12-02 Thread Nathaniel Smith
New submission from Nathaniel Smith: Following on from the discussion starting here: http://thread.gmane.org/gmane.comp.python.devel/150438/focus=150604 Here's a patch to improve __class__ assignment. 1) We remove the HEAPTYPE check from object_set_class, and move it to same_slots_added. This