A certainl part of an if() structure never gets executed.

Chris Angelico rosuav at gmail.com
Wed Jun 12 03:55:48 EDT 2013


On Wed, Jun 12, 2013 at 5:45 PM, Νικόλαος Κούρας <support at superhost.gr> wrote:
> First of all i have changed the code to the following because using a
> regex
> to detect a single char was an overkill.
>
> if '=' not in name and '=' not in month and '=' not in year:

It'd be courteous to acknowledge those who made that suggestion, most
notably alex23 who posted it in almost that exact form.

ChrisA



More information about the Python-list mailing list