%* control characters question.
Gerrit Holl
gerrit.holl at pobox.com
Wed Dec 22 10:53:17 EST 1999
Hello,
is there a module to fetch %* control characters, like strftime does?
Currently, I have this code:
s=raw_input("format: ")
string.replace(s, '%a', foo)
string.replace(s, '%b', bar)
string.replace(s, '%c', foobar)
etc.
I also want '%4a' to work. Are there functions to parse this sort of things?
regards,
Gerrit.
--
"The world is beating a path to our door"
-- Bruce Perens, (Open Sources, 1999 O'Reilly and Associates)
4:45pm up 5:40, 16 users, load average: 0.00, 0.01, 0.00
More information about the Python-list
mailing list