how to add new print %b format to python?
Nick Vargish
nav+posts at bandersnatch.org
Tue May 4 15:38:37 EDT 2004
Rusty Shackleford <rs at overlook.homelinux.net> writes:
> You get the idea. I've written functions that return strings, so that
> part is done, but where do I go to tinker with the python interpreter to
> add this new format?
I would look in Objects/stringobject.c, specifically the function
called PyString_FromFormatV.
Sorry this is a week late, but nobody else seems to have directly
addressed your question.
Nick
--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjti!=obwAcboefstobudi/psh?')
More information about the Python-list
mailing list