Collective memory
Gene Wirchenko
genew at mail.ocis.net
Sat Jul 5 23:56:51 EDT 2003
Irmen de Jong <irmen at -NOSPAM-REMOVETHIS-xs4all.nl> wrote:
>Charles Shannon Hendrix wrote:
> > Python uses it for actually determining the logic in your program, which
> > IMHO is dangerous.
Not at all. It just means that I will never use Python if it is
at all avoidable. My backhanded compliments: it is actually less safe
than C.
> > if <something>
> > <work>
> > <more work>
> > <add numbers>
> >
> > Is <add numbers> part of the if statement, or did someone with different
> > tab settings from the author make a mistake and align it accidentally?
>
>To catch such mistakes, Python has the -tt command line option:
>-t : issue warnings about inconsistent tab usage (-tt: issue errors)
What is inconsistent about the tab usage above? That is, why
would it be flagged?
>There's also tabnanny.py in the standard library to check things
>before executing code. I'm not sure, but I suspect that PyChecker
>also checks this.
Sincerely,
Gene Wirchenko
Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.
More information about the Python-list
mailing list