News for hackers. Stuff that matters.
Re:Proposing a Struct Syntax for Python by b33j0r on Wednesday June 14, 2023 @03:16PM (#36331097)
You are a friend and a scholar.

I was looking for a solution in pydantic that is wildly relevant. Thanks, I didn’t realize that was implemented/existed.

My only objection is using ABC in your MRO. Haha, just a little bit overloaded with abstract base classes and using A, B, and C.

I got it eventually! Cool.

Re:Proposing a Struct Syntax for Python by Spivak on Wednesday June 14, 2023 @04:28PM (#36332130)
Ya know what, on reading that that does seem confusing. My brain had long since internalized ABC as a single token I didn't even notice.