Hi Leo,

On Thu Feb 27, 2025 at 2:39 PM CET, Leo Famulari wrote:
> On Thu, Feb 27, 2025, at 08:33, Tanguy Le Carrour wrote:
>> I have a working package definition for 3.13, but I’m struggling with 
>> the inheritance
>> mechanism. I had to copy over from 3.12 the 300+ lines of `(arguments 
>> …)` to
>> make it work, even if I didn’t change a single line of it!? That sounds
>> sub-optimal to me. Oh, and those exact same lines seem to be coming 
>> from 3.11!?
>
> General advice, not specific to Python: I always recommend against using 
> inheritance, except in the very simplest cases. It quickly becomes very hard 
> to understand and change, as it is now with our Python packages.

OK! 👌
I’ll try to keep it in mind and I’ll rewrite this one.
It’s pitty, though, for on paper it looks like a good idea.

-- 
Tanguy

Reply via email to