bpo-45132 Remove deprecated __getitem__ methods#28225
bpo-45132 Remove deprecated __getitem__ methods#28225serhiy-storchaka merged 4 commits intopython:mainfrom
Conversation
Remove deprecated __getitem__ methods of xml.dom.pulldom.DOMEventStream, wsgiref.util.FileWrapper and fileinput.FileInput, deprecated since Python 3.9.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
LGTM, but I have some documentation nitpicks.
`deprecated-removed` is only used for future planned removing. After removing it is just `versionchanged`. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Insert "In addition it is :term:`iterable` and has a ..." deprecated-removed is only used for future planned removing. After removing it is just versionchanged.
|
@serhiy-storchaka Thanks for the review, updated! Let me know if I should squash the commits or anything like that. Thanks also for the guidance about https://devguide.python.org/documenting/?highlight=deprecated-removed#paragraph-level-markup |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
After removing deprecated features we remove deprecated directives.
Ah right, so should I do this too? - .. deprecated:: 3.8
+ .. versionchanged:: 3.8
Support for :meth:`__getitem__` method is deprecated. |
|
Replace |
…changed directives
|
After reading the devguide I am no longer sure about |
|
Opened a thread on Python-Dev: https://mail.python.org/archives/list/python-dev@python.org/thread/SWBM2N4EFPVQFP4TX6Q33L5OK2WPBFRU/ . |
Remove deprecated
__getitem__methods ofxml.dom.pulldom.DOMEventStream,wsgiref.util.FileWrapperandfileinput.FileInput, deprecated since Python 3.9.https://bugs.python.org/issue45132