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/2010-July/102234.html below:

[Python-Dev] Set the namespace free!

[Python-Dev] Set the namespace free! [Python-Dev] Set the namespace free!Terry Reedy tjreedy at udel.edu
Thu Jul 22 23:51:08 CEST 2010
On 7/22/2010 2:04 PM, John Nagle wrote:

>> From: Bartosz Tarnowski<bartosz-tarnowski at zlotniki.pl>

>> Python has more and more reserved words over time
...
>> What should I do then, when the attribute is a reserver word?

I am going to be a grinch and note that this is strictly a usage 
question with no development implications. It therefore is off topic 
here and should have been asked and answered on python-list or the 
mirrored newsgroup.

> That's a misuse of attributes. When you need objects with
> unconstrained fields, inherit them from "dict", and write
>
> print(elem['param'])

Right ;-)

-- 
Terry Jan Reedy

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