diff options
author | Barry Warsaw <barry@python.org> | 2005-04-19 23:43:40 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2005-04-19 23:43:40 (GMT) |
commit | c8d907c60bacc4b08c03a71a6b714765df9e879d (patch) | |
tree | 991f0d997cf1d765d02e87a28052fa0a2966d9e9 /Misc | |
parent | a267563f439763bc955daafaa0563b3194945fc3 (diff) | |
download | cpython-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/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() |