Message102764
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. |
|
Date |
User |
Action |
Args |
2010-04-10 09:38:00 | sneetsher | set | recipients:
+ sneetsher |
2010-04-10 09:37:59 | sneetsher | set | messageid: <1270892279.77.0.4172116449.issue8359@psf.upfronthosting.co.za> |
2010-04-10 09:37:57 | sneetsher | link | issue8359 messages |
2010-04-10 09:37:56 | sneetsher | create | |
|