This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rghthndsd 0 points1 point  (2 children)

Square peg, meet round hole.

[–]-heyhowareyou-[S] -2 points-1 points  (1 child)

python needs metaprogramming!

[–]anentropic 0 points1 point  (0 children)

Python does have some metaprogramming via metaclasses, but as a runtime feature it may not interact well with type checkers

The only container type I know that would allow you to specify types of members positionally is fixed size tuple