[Python-3000] PEP 3101 Updated
Eric Smith
eric+python-dev at trueblade.com
Thu Aug 16 19:54:03 CEST 2007
Talin wrote:
> Eric Smith wrote:
>> James Thiele wrote:
>>> I think the example:
>>>
>>> "My name is {0.name}".format(file('out.txt'))
> Those examples are kind of contrived to begin with. Maybe we should
> replace them with more realistic ones.
I just added this test case:
d = datetime.date(2007, 8, 18)
self.assertEqual("The year is {0.year}".format(d),
"The year is 2007")
maybe we can use it.
More information about the Python-3000
mailing list