A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-April/022234.html below:

[Python-Dev] ACCEPTED: PEP 285

[Python-Dev] ACCEPTED: PEP 285 [Python-Dev] ACCEPTED: PEP 285Guido van Rossum guido@python.org
Wed, 03 Apr 2002 18:05:49 -0500
> > Despite the negative feedback, I've decided to accept the PEP.  The
> > most important perceived problem is that newbies tend to write
> > 
> >     if x == True: ...
> > 
> > where they should write
> > 
> >     if x: ...
> > 
> > I believe this problem should be solved by education (the Zen master
> > hits the student on the head with a stick, and the student gets
> > enlightenment) rather than by holding back what I believe will be a
> > useful feature.  
> 
> Would it not be "relatively" easy to add a compiler-time warning for
> most uses of this dangerous idiom?

I think this would be a job for PyChecker.  Neal?

--Guido van Rossum (home page: http://www.python.org/~guido/)




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4