On Mar 11, 4:15 am, John Machin <[EMAIL PROTECTED]> wrote: > On Mar 11, 3:19 am, [EMAIL PROTECTED] wrote: > > > 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. > > The plot is about understanding input, not formatting output.
And what he meant is simply to make an agreement with the user on how he/she would format his/her input and to disallow input from formats that haven't been agreed to avoid guessing. That is the cleanest and most polite solution, although I'd suspect it would be considered less user friendly by regular user although power user would be most happy with that. -- http://mail.python.org/mailman/listinfo/python-list