Issue7574
Created on 2009-12-24 11:54 by ronaldoussoren, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg96853 - (view) | Author: Ronald Oussoren (ronaldoussoren) * ![]() |
Date: 2009-12-24 11:54 | |
Include/unicodeobject.h includes prototypes for PyUnicode_FromFormat and PyUnicode_FromFormatV in both 2.6 and 2.7, but those functions are not included in the documention. And worse, the implementation contains bugs: the %R format code tries to include the repr() of an object and blindly assumes that the result of PyObject_Repr is a unicode string. In the 2.x tree PyObject_Repr usually (but not allways) returns a regular string (str instead of unicode). The same problem is present in the implementation of %S. For the %U and %V formats the code does typechecking in an assert statement rather than always testing and bailing out using a NULL result from the function. |
|||
| msg112993 - (view) | Author: ysj.ray (ysj.ray) | Date: 2010-08-05 16:14 | |
It seems there is pretty much problems in PyUnicode_FromFormatV(). see issue7330. |
|||
| msg127685 - (view) | Author: Alexander Belopolsky (belopolsky) * ![]() |
Date: 2011-02-01 05:30 | |
Documentation part of this issue will be addressed in #10435. |
|||
| msg228004 - (view) | Author: Mark Lawrence (BreamoreBoy) * | Date: 2014-09-30 21:29 | |
With Stage "resolved" and Resolution "duplicate" surely this can be closed? |
|||
| msg228013 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2014-09-30 22:15 | |
Ok, let's close the issue. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:55 | admin | set | github: 51823 |
| 2014-09-30 22:15:25 | vstinner | set | status: open -> closed nosy: + vstinner messages: + msg228013 |
| 2014-09-30 21:29:42 | BreamoreBoy | set | nosy:
+ BreamoreBoy messages: + msg228004 |
| 2011-02-01 05:30:07 | belopolsky | set | nosy:
+ belopolsky messages: + msg127685 resolution: duplicate superseder: PyUnicode_FromFormat: implement width and precision for %s, %S, %R, %V, %U, %A |
| 2010-08-05 16:14:49 | ysj.ray | set | nosy:
+ ysj.ray messages: + msg112993 |
| 2010-08-04 21:38:05 | BreamoreBoy | set | assignee: georg.brandl -> lemburg nosy: + lemburg |
| 2009-12-30 23:20:18 | alexandre.vassalotti | link | issue7608 superseder |
| 2009-12-25 02:28:22 | ezio.melotti | set | priority: normal nosy: + ezio.melotti components: + Unicode |
| 2009-12-24 11:54:39 | ronaldoussoren | create | |
