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-June/024920.html below:

[Python-Dev] Other library code transformations

[Python-Dev] Other library code transformations [Python-Dev] Other library code transformationsGuido van Rossum guido@python.org
Mon, 03 Jun 2002 01:09:09 -0400
> What about "foo = foo + 1" => "foo += 1"?

I'm not for making peephole changes like this.  It's easy to make
mistakes (even if you run the test suite) if you don't guess the type
of a variable right.  I think it's better to bring code up to date in
style only as part of a serious rewrite of the module containing it --
so you can fix up all different aspects.  It's often kind of strange
to see a modernization like this in code that otherwise shows it
hasn't been modified in 5 years...

(Exceptions are to get rid of deprecation warnings, or outright
failures, of course.)

--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