Regarding coding style

castironpi at gmail.com castironpi at gmail.com
Sun Mar 9 17:12:28 EDT 2008


On Mar 8, 7:51 pm, Steven D'Aprano <st... at REMOVE-THIS-
cybersource.com.au> wrote:
> On Sat, 08 Mar 2008 13:40:56 -0800, dave_mikesell wrote:
> > On Mar 8, 2:27 pm, castiro... at gmail.com wrote:
>
> >> Good comments are better than bad names. Good names are better than bad
> >> comments.
>
> > If you're taking the time to write good comments, why not just fix the
> > bad names?  The compiler/interpreter can never, ever catch bad comments.
>
> Yes, but the Python compiler can only catch bad names if you do this at
> the top of every module:
>
> import semantic_analysis
> import magic.crystal_ball.read_programmers_mind

dir( magic )!
dir( magic.crystal_ball )?



More information about the Python-list mailing list