New submission from Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: When executing self[i:j], the __getslice__(self,i,j) method is called first, if it exists. See http://docs.python.org/ref/sequence-methods.html
Yes, the __(get|set|del)slice__ methods are deprecated since 2.0, but for compatibility the built-in types must keep defining them. You may want to override them as well if your class inherit from such a type. With python 3.0 the __getslice__ slots were removed, and __getitem__ is called in all cases. ---------- nosy: +amaury.forgeotdarc resolution: -> wont fix status: open -> closed _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3454> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com