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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson
Date 2009-01-19.23:05:05
SpamBayes Score 1.2847502e-05
Marked as misclassified No
Message-id <1232406306.9.0.891362438163.issue4978@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, but _PyUnicode_AsDefaultEncodedString returns either a borrowed reference (if 
errors==NULL) or a new reference (if errors!=NULL).
In either case it's wrong to DECREF the string when you simply take the buffer's 
address:

>>> f(**{u'someLongString':2})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: f() got an unexpected keyword argument 'ÛÛÛÛÛÛÛgString'
History
Date User Action Args
2009-01-19 23:05:07amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, benjamin.peterson
2009-01-19 23:05:06amaury.forgeotdarcsetmessageid: <1232406306.9.0.891362438163.issue4978@psf.upfronthosting.co.za>
2009-01-19 23:05:06amaury.forgeotdarclinkissue4978 messages
2009-01-19 23:05:05amaury.forgeotdarccreate