]> granicus.if.org Git - python/commit
bpo-9372: Deprecate several __getitem__ methods (GH-8609)
authorBerker Peksag <berker.peksag@gmail.com>
Sat, 11 Aug 2018 06:05:04 +0000 (09:05 +0300)
committerGitHub <noreply@github.com>
Sat, 11 Aug 2018 06:05:04 +0000 (09:05 +0300)
commit84a13fbda0d79789e3c9efcc9f64752261ce1e8d
tree5cc443f7bbfde403e0f7a731b5fda5fb4f54676a
parent423d05f6f59b24c91b9ef6b2e4ac130316764382
bpo-9372: Deprecate several __getitem__ methods (GH-8609)

The __getitem__ methods of DOMEventStream, FileInput,
and FileWrapper classes ignore their 'index' parameters
and return the next item instead.
12 files changed:
Doc/library/fileinput.rst
Doc/library/wsgiref.rst
Doc/library/xml.dom.pulldom.rst
Doc/whatsnew/3.8.rst
Lib/fileinput.py
Lib/test/support/__init__.py
Lib/test/test_fileinput.py
Lib/test/test_pulldom.py
Lib/test/test_wsgiref.py
Lib/wsgiref/util.py
Lib/xml/dom/pulldom.py
Misc/NEWS.d/next/Library/2018-08-01-21-26-17.bpo-9372.V8Ou3K.rst [new file with mode: 0644]