[Python-Dev] String formating in python 3000 (original) (raw)
Crutcher Dunnavant crutcher at gmail.com
Sun Apr 2 20:05:42 CEST 2006
- Previous message: [Python-Dev] Bug Day on Friday, 31st of March
- Next message: [Python-Dev] String formating in python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Python currently supports 'S % X', where S is a strinng, and X is one of:
- a sequence
- a map
- treated as (X,)
But I have some questions about this for python 3000.
Shouldn't there be a format method, like S.format(), or S.fmt()?
What about using call instead of / in addition to rmod?
- "time: %s"(time.ctime()) == "time: %s" % time.ctime()
- "%(a)s %(b)s"(a=1, b=2) == "%(a)s %(b)s" % {'a'=1, 'b'=2}
-- Crutcher Dunnavant <crutcher at gmail.com> littlelanguages.com monket.samedi-studios.com
- Previous message: [Python-Dev] Bug Day on Friday, 31st of March
- Next message: [Python-Dev] String formating in python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]