[Python-Dev] Re: PEP 614: Relaxing Grammar Restrictions On Decorators

2020-02-22 Thread Brandt Bucher
Happy to help. Since it doesn't seem like anybody has issues with the PEP, and the PR looks solid, I think I'll contact the Steering Council about moving this forward. Brandt ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an e

[Python-Dev] Re: Accepting PEP 584: Add Union Operators To dict

2020-02-22 Thread Steven D'Aprano
On Tue, Feb 18, 2020 at 05:35:38PM -, Brandt Bucher wrote: > > I am accepting this PEP. Congratulations Steven and Brandt! > > Thank you for your guidance, especially the suggestions late last > year. And thanks Steven for taking me on as a co-author and shaping > the bulk of the proposal.

[Python-Dev] Re: Accepting PEP 584: Add Union Operators To dict

2020-02-22 Thread Brandt Bucher
> we'll also want to look at collections.UserDict, collections.ChainMap, and > types.MappingProxyType. UserDict has already been updated in the PR (it has tests that fail if it doesn't have all of dict's methods). I'll look into the others... thanks for reminding me! > collections.Mapping and

[Python-Dev] Re: PEP 614: Relaxing Grammar Restrictions On Decorators

2020-02-22 Thread Nick Coghlan
On Wed., 19 Feb. 2020, 5:07 pm Brandt Bucher, wrote: > PEP 614 has recently completed a round of review on Python-Ideas: > > https://www.python.org/dev/peps/pep-0614/ > > It proposes that the current decorator syntax restrictions be relaxed to > allow any valid expression. Nobody has raised any o

[Python-Dev] Re: PEP 585: Type Hinting Generics In Standard Collections

2020-02-22 Thread Nick Coghlan
This looks like a nice usability improvement to me. My only suggestion would be that types.MappingProxyType be included on the list of types to be updated. Cheers, Nick. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email t

[Python-Dev] Re: Accepting PEP 584: Add Union Operators To dict

2020-02-22 Thread Nick Coghlan
On Sun., 23 Feb. 2020, 5:32 am Brandt Bucher, wrote: > Just to follow up on this, here are the subclasses I've found. > > Should be updated: > - collections.OrderedDict > - collections.defaultdict > - http.cookies.BaseCookie > - http.cookies.Morsel > - http.cookies.SimpleCookie > They're not dic

[Python-Dev] Re: Accepting PEP 584: Add Union Operators To dict

2020-02-22 Thread Brandt Bucher
Just to follow up on this, here are the subclasses I've found. Should be updated: - collections.OrderedDict - collections.defaultdict - http.cookies.BaseCookie - http.cookies.Morsel - http.cookies.SimpleCookie Don’t think so: - typing.TypedDict Already defines the operator: - collections.Counter