Message80217
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' |
|
Date |
User |
Action |
Args |
2009-01-19 23:05:07 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, benjamin.peterson |
2009-01-19 23:05:06 | amaury.forgeotdarc | set | messageid: <1232406306.9.0.891362438163.issue4978@psf.upfronthosting.co.za> |
2009-01-19 23:05:06 | amaury.forgeotdarc | link | issue4978 messages |
2009-01-19 23:05:05 | amaury.forgeotdarc | create | |
|