sgzwiz / brython

Automatically exported from code.google.com/p/brython
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Format "%%" not supported in string formating #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With console_fr.html
    print( "width : %d%%" % 100 )

reports the following error:
    TypeError: not enough arguments for format string
    Line 1
    print( "width : %d%%" % 100 )

Possible workaround:
    print( "width : %d" % 100 + "%" )

Original issue reported on code.google.com by pedro.ro...@gmail.com on 27 Dec 2012 at 3:36

GoogleCodeExporter commented 9 years ago
Fixed in revision 300

Original comment by pierre.q...@gmail.com on 1 Jan 2013 at 9:37