[Python-checkins] python/dist/src/Misc NEWS,1.1285,1.1286

bwarsaw at users.sourceforge.net bwarsaw at users.sourceforge.net
Wed Apr 20 01:43:42 CEST 2005


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21640/Misc

Modified Files:
	NEWS 
Log Message:
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.



Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1285
retrieving revision 1.1286
diff -u -d -r1.1285 -r1.1286
--- NEWS	18 Apr 2005 08:46:07 -0000	1.1285
+++ NEWS	19 Apr 2005 23:43:37 -0000	1.1286
@@ -12,6 +12,11 @@
 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()



More information about the Python-checkins mailing list