Python 2.3.3 (#1, Jan 13 2004, 17:45:56) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 str and list still use __getslice__ / __setslice__ for the binary form foo = mystr[1:2] mystr[1:2] = foo instead of __getitem__ / __setitem__ with slice objects.
Logged In: YES user_id=593130 This only strikes me as a bug if use of *item is specified somewhere so that people subclassing builtin seqs know which methods to override. Is it? Are tuples different or just not checked?
Logged In: YES user_id=723141 Jep, I noticed it while subclassing and overriding the operators for slicing. It's odd to deprecate a feature, and force the programmer to use it anyway if he wants to sublcass existing types. Is there an explicit typename for tuples?