summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2005-04-19 23:43:40 (GMT)
committerBarry Warsaw <barry@python.org>2005-04-19 23:43:40 (GMT)
commitc8d907c60bacc4b08c03a71a6b714765df9e879d (patch)
tree991f0d997cf1d765d02e87a28052fa0a2966d9e9 /Misc
parenta267563f439763bc955daafaa0563b3194945fc3 (diff)
downloadcpython-c8d907c60bacc4b08c03a71a6b714765df9e879d.zip
cpython-c8d907c60bacc4b08c03a71a6b714765df9e879d.tar.gz
cpython-c8d907c60bacc4b08c03a71a6b714765df9e879d.tar.bz2
As per discussion on python-dev, descriptors defined in C with a NULL setter
now raise AttributeError instead of TypeError, for consistency with their pure-Python equivalent.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index ec30734..01a1c73 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,11 @@ What's New in Python 2.5 alpha 1?
Core and builtins
-----------------
+- Descriptors defined in C with a PyGetSetDef structure, where the setter is
+ NULL, now raise an AttributeError when attempting to set or delete the
+ attribute. Previously a TypeError was raised, but this was inconsistent
+ with the equivalent pure-Python implementation.
+
- It is now safe to call PyGILState_Release() before
PyEval_InitThreads() (note that if there is reason to believe there
are multiple threads around you still must call PyEval_InitThreads()