mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
added notes about weakref changes
This commit is contained in:
parent
d310f13cd2
commit
228765b0e1
1 changed files with 15 additions and 0 deletions
15
Misc/NEWS
15
Misc/NEWS
|
@ -12,6 +12,21 @@ What's New in Python 2.4 alpha 1?
|
||||||
Core and builtins
|
Core and builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Made omitted callback and None equivalent for weakref.ref() and
|
||||||
|
weakref.proxy(); the None case wasn't handled correctly in all
|
||||||
|
cases.
|
||||||
|
|
||||||
|
- Fixed problem where PyWeakref_NewRef() and PyWeakref_NewProxy()
|
||||||
|
assumed that initial existing entries in an object's weakref list
|
||||||
|
would not be removed while allocating a new weakref object. Since
|
||||||
|
GC could be invoked at that time, however, that assumption was
|
||||||
|
invalid. In a truly obscure case of GC being triggered during
|
||||||
|
creation for a new weakref object for an referent which already
|
||||||
|
has a weakref without a callback which is only referenced from
|
||||||
|
cyclic trash, a memory error can occur. This consistently created a
|
||||||
|
segfault in a debug build, but provided less predictable behavior in
|
||||||
|
a release build.
|
||||||
|
|
||||||
- input() builtin function now respects compiler flags such as
|
- input() builtin function now respects compiler flags such as
|
||||||
__future__ statements. SF patch 876178.
|
__future__ statements. SF patch 876178.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue