Asterix in formatting printing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Asterix in formatting printing

Paparipote .
Hello:
In CPython I have the next result:
>>>print "%0*d" % (6, 23)
000023

In IP I have the next:
>>>print "%0*d" % (6, 23)
Traceback (most recent call last):
  File , line 0, in input##52
NotImplementedError: * for precision
>>>


Or in CPyhton:
>>>print '"%0*s", "%-*s"' % (5, "Hola", 10, "Iron")
" Hola", "Iron      "
>>>

in IP:
>>>print '"%0*s", "%-*s"' % (5, "Hola", 10, "Iron")
Traceback (most recent call last):
  File , line 0, in input##54
NotImplementedError: * for precision
>>>


Best regards,

_________________________________________________________________
MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/

_______________________________________________
users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
Reply | Threaded
Open this post in threaded view
|

Re: Asterix in formatting printing

Dino Viehland-3
Thanks for the bug report - we actually have this fixed for our next release (we've filled in the wholes for all of string formatting and we now pass all the CPython string formatting tests).  

Hopefully you'll see the new release real soon!

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Paparipote .
Sent: Tuesday, January 24, 2006 10:28 AM
To: [hidden email]
Subject: [IronPython] Asterix in formatting printing

Hello:
In CPython I have the next result:
>>>print "%0*d" % (6, 23)
000023

In IP I have the next:
>>>print "%0*d" % (6, 23)
Traceback (most recent call last):
  File , line 0, in input##52
NotImplementedError: * for precision
>>>


Or in CPyhton:
>>>print '"%0*s", "%-*s"' % (5, "Hola", 10, "Iron")
" Hola", "Iron      "
>>>

in IP:
>>>print '"%0*s", "%-*s"' % (5, "Hola", 10, "Iron")
Traceback (most recent call last):
  File , line 0, in input##54
NotImplementedError: * for precision
>>>


Best regards,

_________________________________________________________________
MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/

_______________________________________________
users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[hidden email]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com