python improvements (Was: Re: New Language)

Tim Peters tim_one at email.msn.com
Sat May 13 00:56:29 EDT 2000


[Steven D. Arnold]
> 1. I'd like an equivalent to perl's "use strict" pragma.  It's
> annoying to have to be so paranoid about making a typo in a
> variable name.

[Martijn Faassen]
> How exactly would this work? It would seem hard to make this work
> right in a dynamic language, but perhaps I'm missing some simple
> strategies.

Perl simply (& simplifying a bit) whines about vrbl names that appear
uniquely within a file.  They're usually misspellings, but sometimes not.
Tools to do that for Python have been written several times too, but never
caught on, despite that they've even found long-standing bugs in the std
Python library.  Check out Aaron Watters' pylint for the best of that breed.

all-problems-are-ancient-as-are-all-cures-ly y'rs  - tim






More information about the Python-list mailing list