[Python-Dev] Tweaking PEP 8 guidelines for use of leading underscores (original) (raw)

Tres Seaver tseaver at palladion.com
Wed Jul 17 01:34:03 CEST 2013


-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

On 07/16/2013 07:09 AM, Nick Coghlan wrote:

I did find it interesting that we don't explicitly advise against the use of "import *" for anything other than optional accelerator modules or republishing internal interfaces through a public API, even though we advice against the practice in the tutorial. Perhaps another oversight worth correcting?

+1. 'from foo import *' (from any source other than another module in the same package) is a code stench far worse than anything else PEP8 proscribes.

Tres. - --

Tres Seaver +1 540-429-0999 tseaver at palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlHl2GsACgkQ+gerLs4ltQ6+1QCgmu5k6p5otzPxvzGh5mA1Ch7t 2f0AoK2a0/m144bnIwBFLLuY9l2bdWMN =878p -----END PGP SIGNATURE-----



More information about the Python-Dev mailing list