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 sneetsher
Recipients sneetsher
Date 2010-04-10.09:37:56
SpamBayes Score 7.775924e-06
Marked as misclassified No
Message-id <1270892279.77.0.4172116449.issue8359@psf.upfronthosting.co.za>
In-reply-to
Content
c/printf accepts this:

n=1;
printf("One hour.", n);

in other hand python/print rises an error:

n=1
print "One hour." % n

Exactly the % formatting operation.
(TypeError: not all arguments converted during string formatting)

This feature is very important when we come to I18n (translation using gettext).

As most translator don't know this work around "%i hour." or "(%i) One hour.". This is not correct for many languages as I know like Arabic where they should write some thing like "One hour." or "An hour.".

https://bugs.launchpad.net/python/+bug/341015

Could this fixed to have same behaviour as in c? More robust.
History
Date User Action Args
2010-04-10 09:38:00sneetshersetrecipients: + sneetsher
2010-04-10 09:37:59sneetshersetmessageid: <1270892279.77.0.4172116449.issue8359@psf.upfronthosting.co.za>
2010-04-10 09:37:57sneetsherlinkissue8359 messages
2010-04-10 09:37:56sneetshercreate