Converting a string to the most probable type

cokofreedom at gmail.com cokofreedom at gmail.com
Mon Mar 10 17:19:11 CET 2008


The trick in the case of when you do not want to guess, or the choices
grow too much, is to ask the user to tell you in what format they want
it and format according to their wishes.

Neatly avoids too much guessing and isn't much extra to add.



More information about the Python-list mailing list