
Feb. 6, 2020
10:36 p.m.
On Fri, Feb 7, 2020 at 9:30 AM Brandt Bucher <brandtbucher@gmail.com> wrote:
Sorry Paul, I sent my reply too soon.
I see what you're saying, and I'm pretty firmly -1 on reinventing (or importing) copy.copy. We already have an API for copying a dict (dict.copy).
I still fail to see problem with using a method that doesn't start and end with underscores, other than that we "haven't done it".
Before Python 3.0, iterators had a next() method, and that was explicitly and consciously changed to __next__(). The arguments there seem relevant here too. https://www.python.org/dev/peps/pep-3114/ ChrisA