Re: Protocols in Python

2017-08-28 Thread Ian Kelly
On Mon, Aug 28, 2017 at 12:53 PM, Stefan Ram wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes: >>The "The Python Library Reference, Release 3.6.0" (LIB) says: >>»it must support the sequence protocol (the >>__getitem__() method with integer arguments >>starting at 0).«. >>But in the "The Pytho

Re: Protocols in Python

2017-08-28 Thread Chris Angelico
On Tue, Aug 29, 2017 at 4:53 AM, Stefan Ram wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes: >>The "The Python Library Reference, Release 3.6.0" (LIB) says: >>»it must support the sequence protocol (the >>__getitem__() method with integer arguments >>starting at 0).«. >>But in the "The Python

Re: Protocols in Python

2017-08-26 Thread Ian Kelly
On Sat, Aug 26, 2017 at 6:35 PM, Stefan Ram wrote: > The "The Python Library Reference, Release 3.6.0" (LIB) says: > > »it must support the sequence protocol (the > __getitem__() method with integer arguments > starting at 0).«. > > But in the "The Python Language Reference,