I think I found 2 undocumented string format codes.

B

Bill

My google-fu has failed me in finding info on %h and %l string
formatting codes.
exceptions.ValueError: incomplete format
exceptions.ValueError: incomplete format

Does anyone know what doing a "complete format" means?
 
A

Alexander Kapps

My google-fu has failed me in finding info on %h and %l string
formatting codes.

exceptions.ValueError: incomplete format

exceptions.ValueError: incomplete format

Does anyone know what doing a "complete format" means?

See

http://docs.python.org/library/stdtypes.html#string-formatting-operations

The formatting codes have been borrowed from the C function
sprintf(), where l and h are length modifier for integers (%hi, %li,
...)

The Python docs (link above) say:

"A length modifier (h, l, or L) may be present, but is ignored as it
is not necessary for Python – so e.g. %ld is identical to %d."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top