On Sun, 15 May 2022 at 14:27, dn wrote:
>
> On 15/05/2022 11.34, 2qdxy4rzwzuui...@potatochowder.com wrote:
> > On 2022-05-15 at 10:22:15 +1200,
> > dn wrote:
> >
> >> That said, a function which starts with a list of ifs-buts-and-maybes*
> >> which are only there to ascertain which set of argumen
On 15/05/2022 11.34, 2qdxy4rzwzuui...@potatochowder.com wrote:
> On 2022-05-15 at 10:22:15 +1200,
> dn wrote:
>
>> That said, a function which starts with a list of ifs-buts-and-maybes*
>> which are only there to ascertain which set of arguments have been
>> provided by the calling-routine; obscu
Hello people.
I've used Mypy and liked it in combination with MonkeyType.
I've heard there are alternatives to Mypy that are faster, and I'm looking
at using something like this on a 457,000 line project.
Are there equivalents to MonkeyType that will work with these alternatives
to Mypy?
And ha
On 2022-05-15 at 10:22:15 +1200,
dn wrote:
> That said, a function which starts with a list of ifs-buts-and-maybes*
> which are only there to ascertain which set of arguments have been
> provided by the calling-routine; obscures the purpose/responsibility
> of the function and decreases its reada
On 12/05/2022 01.33, Michael F. Stemper wrote:
> I have a function that I use to retrieve daily data from a
> home-brew database. Its calling sequence is;
>
> def TempsOneDay( year, month, date ):
>
> After using it (and its friends) for a few years, I've come to
> realize that there are times wh
On 5/14/22, Jonathan Kaczynski wrote:
>
> So, I'm still wondering how Py_TYPE(v)->tp_richcompare resolves to __eq__
> on a user-defined class. Conversely, my understanding is, for a type
> defined in cpython, like str, there is usually an explicitly
> defined tp_richcompare function.
Sometimes it
Trying some new searches, I came across slotdefs in ./Objects/typeobject.c,
and those are used in the resolve_slotdups function.
The comment preceding the function says, "Note that multiple names may map
to the same slot (e.g. __eq__, __ne__ etc. all map to tp_richcompare)".
So, I'm still wonderi