Elektrine lite

← Feed

@nedbat@hachyderm.io

Post #3474449

2026-06-29 16:26 UTC

@dalke@toots.nu @Tipa@gamepad.club There are others: *args is provided as a tuple.

Replies (1)

  • @dalke@toots.nu 2026-06-29 17:48

    @nedbat@hachyderm.io ... yes? I mean, I mentioned the *args-as-tuple observation from your essay, and tried to build on it by highlighting a case where Python uses a tuple for homogenous data, but unlike with *args it's not so clear that a list could make more sense. I think it's a tuple for the more technical reason that if __bases__ is a (mutable) list then it's very hard if not impossible to prevent an inheritance cycle.

    Open ##3474448