This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doerwalter
Recipients doerwalter
Date 2010-02-24.17:18:19
SpamBayes Score 1.0457846e-10
Marked as misclassified No
Message-id <1267031901.2.0.324094054626.issue8014@psf.upfronthosting.co.za>
In-reply-to
Content
In the current py3k branch setting an attribute of an object with PyMemberDefs raises an internal error:

$ ./python.exe
Python 3.2a0 (py3k:78419M, Feb 24 2010, 17:56:06) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> x = UnicodeEncodeError('ascii', 'gurk', 0, 4, 'broken')
[37539 refs]
>>> x.start = None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: Objects/longobject.c:439: bad argument to internal function

In Python 2.6.4 (and in the current trunk version) this raises a proper TypeError:

$ python 
Python 2.6.4 (r264:75706, Oct 27 2009, 15:18:04) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> x = UnicodeEncodeError('ascii', u'gurk', 0, 4, 'broken')
>>> x.start = None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: an integer is required
History
Date User Action Args
2010-02-24 17:18:21doerwaltersetrecipients: + doerwalter
2010-02-24 17:18:21doerwaltersetmessageid: <1267031901.2.0.324094054626.issue8014@psf.upfronthosting.co.za>
2010-02-24 17:18:20doerwalterlinkissue8014 messages
2010-02-24 17:18:19doerwaltercreate