[Python-Dev] PEP 218 (sets); moving set.py to Lib
Neil Schemenauer
nas@python.ca
Mon, 19 Aug 2002 14:02:52 -0700
- Previous message: [Python-Dev] PEP 218 (sets); moving set.py to Lib
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects bufferobject.c,2.19,2.20 complexobject.c,2.62,2.63 floatobject.c,2.114,2.115 intobject.c,2.91,2.92 stringobject.c,2.180,2.181 tupleobject.c,2.71,2.72
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Michael Chermside wrote:
> 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.
I think the intention is that you would subclass to override the class
variable. As you point out, modifying a class variable in a library is
asking for trouble.
Neil
- Previous message: [Python-Dev] PEP 218 (sets); moving set.py to Lib
- Next message: [Python-Dev] Re: [Python-checkins] python/dist/src/Objects bufferobject.c,2.19,2.20 complexobject.c,2.62,2.63 floatobject.c,2.114,2.115 intobject.c,2.91,2.92 stringobject.c,2.180,2.181 tupleobject.c,2.71,2.72
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]