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

[Python-Dev] Assignment to None

[Python-Dev] Assignment to None [Python-Dev] Assignment to NoneNick Coghlan ncoghlan at gmail.com
Thu Jun 12 12:02:00 CEST 2008
Curt Hagenlocher wrote:
> If I recall correctly, Jython handles this by appending a trailing
> underscore to the imported name and there's no reason why we couldn't
> do something similar.

It also has the virtue of being the common convention for attribute 
names that shadow keywords even in CPython (e.g. unittest.TestCase.assert_).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
More information about the Python-Dev mailing list

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