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-August/028038.html below:

[Python-Dev] PEP 218 (sets); moving set.py to Lib

[Python-Dev] PEP 218 (sets); moving set.py to Lib [Python-Dev] PEP 218 (sets); moving set.py to LibMichael Chermside mcherm@destiny.com
Mon, 19 Aug 2002 16:31:18 -0400
[Guido van Rossum]

 > OTOH what then to do with _sort_repr -- make it a class var or an
 > instance var?

Setting a class var in a standard library class is like playing with a 
global variable with all the attendent problems. Senario... I want my 
sets sorted, but I import some library that uses sets of complex numbers 
for internal purposes. Or (slightly more plausible) I want my sets 
UNsorted, but I use some library whose author counted on the string 
output being sorted (ok... the author shouldn't have depended on it 
because of the existance of the rarely used class variable, but even 
non-experts write libraries using the standard library).

-- Michael Chermside





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