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
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
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
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
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-
>
> [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()
> >
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
?).
>
> 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
>
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
___
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
10 matches
Mail list logo