A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-January/019682.html below:

[Python-Dev] Tuples vs. lists

[Python-Dev] Tuples vs. lists [Python-Dev] Tuples vs. listsGuido van Rossum guido@python.org
Mon, 28 Jan 2002 16:26:23 -0500
> It's a constant.  The BCD module is Binary Coded Decimal; instances are
> intended to be as immutable as strings and numbers (well, it *is* a
> number type).  Modifying an instance is guaranteed to produce a new
> instance.  To a large extent, I guess I feel that if a class is intended
> to be immutable, each of its underlying data attributes should also be
> immutable.

Or you could assign it to a private variable.

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