[Python-Dev] Changing PySequence and PyMapping checks

2022-01-14 Thread Bar Harel
e ABI promise but one that can be considered a bug fix as the current behavior is lacking. What do you think? bpo: https://bugs.python.org/issue46376 Best regards, Bar Harel ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an ema

[Python-Dev] Re: How to respond to repeated bad ideas

2020-03-02 Thread Bar Harel
What I usually do btw is just search on mailman. Perhaps we can guide people to search on mailman before suggesting an idea? On Tue, Mar 3, 2020 at 12:30 AM Bar Harel wrote: > I wrote it and take full responsibility, did not mean to be disrespectful. > Afterall, it's not what any of

[Python-Dev] Re: How to respond to repeated bad ideas

2020-03-02 Thread Bar Harel
I wrote it and take full responsibility, did not mean to be disrespectful. Afterall, it's not what any of us are here for. For repeated suggestions though, that were rejected once or more in the past, what are the general guidelines of answering? In this case, apart from the rejection reason, we w

[Python-Dev] Re: new syntax

2020-03-02 Thread Bar Harel
This idea is proposed at least once a year. You're able to read past discussions on python-ideas for the full list of rejection reasons. On Mon, Mar 2, 2020, 11:28 PM Mariatta wrote: > -1 from me. > > Seems unintuitive and I don't think it's all that obvious what > intput/floatput would mean wit

[Python-Dev] Re: Dict __missing__ consistency issues.

2020-01-08 Thread Bar Harel
Finished creating 2 issues on the meanwhile: bpo-39264 to fix UserDict.get(). bpo-39267 to fix dict.__missing__ & dict.get() documentation. Both include a PR. ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-

[Python-Dev] Re: Dict __missing__ consistency issues.

2020-01-08 Thread Bar Harel
> > [Bar Harel] > > As for get(). Current implementation of UserDict returns the default > value > > for get() if __missing__() raises KeyError. Which sounds reasonable to > me. > > After all, you would logically expect __missing__ to be called for get() > >

[Python-Dev] Re: Dict __missing__ consistency issues.

2020-01-08 Thread Bar Harel
t; __getitem__() twice if the key is present), but I don't think that's a > grave concern (if people want it faster there are a zillion ways to do > that). > > On Wed, Jan 8, 2020 at 9:49 AM Bar Harel wrote: > >> Sorry for the double post then :-) >> >> As for

[Python-Dev] Re: Dict __missing__ consistency issues.

2020-01-08 Thread Bar Harel
?). > > To answer your second question, __missing__ is only a dict thing, it is > not part of Mapping. > > On Wed, Jan 8, 2020 at 8:07 AM Bar Harel wrote: > >> Hey guys, >> >> I was just about to fix dict's get() to call __missing__ if a key doesn't >

[Python-Dev] Dict __missing__ consistency issues.

2020-01-08 Thread Bar Harel
well stating __missing__ is not called. Second question is: Is __missing__ only a dict thing, or is it part of the Mapping ABC? I would expect it to be a part of the Mapping ABC, with subclasses not having to implement it. Right now it's not. Looking forward for your inputs, Bar Harel ___

[Python-Dev] Dict __missing__ consistency issues

2020-01-08 Thread Bar Harel
stating __missing__ is not called. Second question is: Is __missing__ only a dict thing, or is it part of the Mapping ABC? I would expect it to be a part of the Mapping ABC, with subclasses not having to implement it. Right now it's not. Looking forward for your inputs, Bar Harel