[Python-bugs-list] [Bug #116174] using %% in cstrings sometimes fails with unicode params

noreply@sourceforge.net noreply@sourceforge.net
Thu, 5 Oct 2000 12:50:10 -0700


Bug #116174, was updated on 2000-Oct-05 12:50
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Summary: using %% in cstrings sometimes fails with unicode params

Details: There are various ways to show this but here's an example:

>>> "%s %%" % u"test"
u'test %'
>>> "%% %s %%" % u"test"
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: not all arguments converted

This is still present in a recent CVS version of Python2.0

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=116174&group_id=5470