Converting a string to the most probable type

cokofreedom at cokofreedom at
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