Re: [Python-ideas] shutil.symlink - "avoid constant bool flags"

2019-05-16 Thread Greg Ewing
Tom Hale wrote: It seems far more practicable to have only two functions with sensible boolean defaults, with the split being based on the underlying os module function, namely os.link and os.symlink. Also the os module is designed to follow the C API of the OS as closely as practicable, so

Re: [Python-ideas] shutil.symlink - "avoid constant bool flags"

2019-05-16 Thread Tom Hale
On 14/5/19 12:38 am, Steven D'Aprano wrote: On Mon, May 13, 2019 at 12:31:08PM +0200, Anders Hovmöller wrote: An optional "overwrite_if_exists=False" flag seems much nicer. Aside from the argument name being too verbose, that violates the rule of thumb "avoid constant bool flags" design