Issue Details (XML | Word | Printable)

Key: BOO-1006
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Cedric Vivier
Reporter: Cedric Vivier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

String interpolation formatting

Created: 28/Apr/08 03:47 PM   Updated: 10/Nov/08 08:39 PM   Resolved: 10/Nov/08 08:39 PM
Return to search
Component/s: None
Affects Version/s: 0.8.1
Fix Version/s: 0.9

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide

Currently we can do this :

n = 42
print "hex(x) = {0:x4}" % (n,)

or this :

n = 42
print "hex(n) = ${n.ToString('x4')}"

It would be nice to be able to do this :

n = 42
print "hex(n) = ${n:x4}"


Cedric Vivier made changes - 12/May/08 09:46 AM
Field Original Value New Value
Assignee Cedric Vivier [ cedricv ]
Cedric Vivier made changes - 12/May/08 09:46 AM
Status Open [ 1 ] In Progress [ 3 ]
Cedric Vivier added a comment - 10/Nov/08 08:39 PM

Landed in rev. 3073


Cedric Vivier made changes - 10/Nov/08 08:39 PM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]