Checking for valid date input and convert appropriately

Andreas Perstinger andipersti at gmail.com
Fri Feb 22 15:10:52 CET 2013


Lele Gaifax <lele at metapensiero.it> wrote:
>Ferrous Cranus <nikos.gr33k at gmail.com> writes:
>
>> Let me ask it like this:
>> How can i avoid using try: except: for checkign the date but instead
>> check it with an if statement:
>
>Let me answer this way: you can't, without resorting to the simple
>helper functions I wrote in my previous message. 
>
>Why do you dislike that solution?

Ferrous Cranus has proven in previous discussions (search the archives)
that he doesn't like common-sense solutions and insists on doing it his
own way (although his methods are either wrong or impossible).

Don't waste your time.

Bye, Andreas



More information about the Python-list mailing list