Issue 16716: Deprecate OSError aliases in the doc

Issue16716

Created on 2012-12-18 20:07 by asvetlov, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
exception.patch priyapappachan, 2014-03-30 10:48 Deprecation tag added review
Messages (14)
msg177704 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2012-12-18 20:07
The list of aliases is: IOError, EnvironmentError, WindowsError, mmap.error, socket.error, os.error and select.error

Documentation should have deprecation message guessing to use OSError instead.
msg177706 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-12-18 20:14
"The following exceptions are kept for compatibility with previous versions; starting from Python 3.3, they are aliases of OSError."

Do you want to add an explicit compatibility statement there?
msg177711 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2012-12-18 20:51
Don't know about library/exceptions.rst
For other modules (socket, select etc.) I like to use ".. deprecated:: 3.3" markup.

Antoine, do you have objections?
msg177712 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-12-18 20:55
No objections from me. It would be good to have other people's opinions, though.
msg177713 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-12-18 21:00
It seems sensible to me.
msg215272 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-03-31 21:41
New changeset 5ad1d523b342 by Andrew Svetlov in branch 'default':
Merge 3.4 (#16716)
http://hg.python.org/cpython/rev/5ad1d523b342
msg215273 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2014-03-31 21:42
Pushed. Thanks, priya
msg215274 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-03-31 21:45
New changeset c0c17718301f by Andrew Svetlov in branch 'default':
Merge 3.4 (#16716)
http://hg.python.org/cpython/rev/c0c17718301f
msg215275 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2014-03-31 22:16
Close the issue after #f5dda52a4ccd and #8d5f005a0da3
msg215279 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2014-03-31 22:45
Andrew, please revert this. The modify() method is deprecated, so the "deprecated" markup is inappropriate here.
msg215280 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2014-03-31 22:45
Oops, trying again: The modify() method is not deprecated, so the "deprecated" markup is inappropriate here.
msg215282 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-03-31 23:08
New changeset 7b219429c404 by Andrew Svetlov in branch '3.4':
#16716: remove deprecation warning
http://hg.python.org/cpython/rev/7b219429c404

New changeset 1c6c2ec8916a by Andrew Svetlov in branch 'default':
#16716: remove deprecation warning
http://hg.python.org/cpython/rev/1c6c2ec8916a
msg215284 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2014-03-31 23:10
The "deprecated markup" is removed. Sorry.
Thanks to quick report.

On Tue, Apr 1, 2014 at 2:08 AM, Roundup Robot <report@bugs.python.org> wrote:
>
> Roundup Robot added the comment:
>
> New changeset 7b219429c404 by Andrew Svetlov in branch '3.4':
> #16716: remove deprecation warning
> http://hg.python.org/cpython/rev/7b219429c404
>
> New changeset 1c6c2ec8916a by Andrew Svetlov in branch 'default':
> #16716: remove deprecation warning
> http://hg.python.org/cpython/rev/1c6c2ec8916a
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue16716>
> _______________________________________
msg215285 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2014-03-31 23:17
Close the issue again after fixing Antoine's objection.
History
Date User Action Args
2022-04-11 14:57:39adminsetgithub: 60920
2014-03-31 23:17:05asvetlovsetstatus: open -> closed

messages: + msg215285

2014-03-31 23:10:56asvetlovsetmessages: + msg215284
2014-03-31 23:08:53python-devsetmessages: + msg215282
2014-03-31 22:45:50pitrousetmessages: + msg215280
2014-03-31 22:45:03pitrousetstatus: closed -> open

messages: + msg215279

2014-03-31 22:16:36asvetlovsetstatus: open -> closed
versions: + Python 3.5
messages: + msg215275

resolution: fixed
stage: needs patch -> resolved

2014-03-31 21:45:23python-devsetmessages: + msg215274
2014-03-31 21:42:11asvetlovsetmessages: + msg215273
2014-03-31 21:41:22python-devsetnosy: + python-dev
messages: + msg215272
2014-03-30 10:48:06priyapappachansetfiles: + exception.patch
keywords: + patch
2014-03-15 15:41:40eric.araujosetnosy: + eric.araujo
2012-12-18 21:00:11r.david.murraysetnosy: + r.david.murray
messages: + msg177713
2012-12-18 20:55:28pitrousetmessages: + msg177712
2012-12-18 20:51:27asvetlovsetmessages: + msg177711
2012-12-18 20:14:10pitrousetnosy: + pitrou
messages: + msg177706
2012-12-18 20:09:14asvetlovlinkissue16705 dependencies
2012-12-18 20:07:22asvetlovcreate