Issue 11989: deprecate shutil.copy2 - Python tracker (original) (raw)

Issue11989

Created on 2011-05-03 21:17 by datamuc, last changed 2022-04-11 14:57 by admin.

Files
File name Uploaded Description Edit
shutil.py.diff datamuc,2011-05-03 21:17 deprecate shutil.copy2 review
Messages (4)
msg135073 - (view) Author: Danijel (datamuc) Date: 2011-05-03 21:17
The function name is really ugly. The attached patch introduces an optional parameter to shutil.copy.
msg135326 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-05-06 16:56
Thanks for the report. Could you elaborate a bit on the rational for the change? Aesthetics are usually not sufficient to change things; on the other hand, use of simplicity is a goal. Is is easier to remember two functions for two uses or to have one function with a parameter? Are users confused by the two functions with unhelpful names? These are the kinds of questions to answer before considering breaking everyone’s code with a deprecation and removal. Would you be willing to raise the issue on the python-ideas mailing list to get feedback? Thanks in advance.
msg290580 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-03-27 10:49
I like proposed changed.
msg319375 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2018-06-12 10:23
If such a thing goes in then copytree() should also be taken into account and expose the same parameter. That would probably be inconsistent with copytree()'s copy_function parameter though.
History
Date User Action Args
2022-04-11 14:57:16 admin set github: 56198
2018-06-12 10:23:36 giampaolo.rodola set nosy: + giampaolo.rodolamessages: +
2017-03-27 10:49:19 vstinner set status: pending -> opennosy: + vstinnermessages: +
2017-03-26 10:37:20 serhiy.storchaka set status: open -> pending
2011-05-06 16:56:56 eric.araujo set nosy: + rhettinger, eric.araujomessages: + versions: + Python 3.3, - Python 3.4
2011-05-03 21:17:59 datamuc create