back

by rcarmo·11y ago·view on hn ↗
I've been using a similar thing I call Struct for ages, as part of my utils package:

https://github.com/rcarmo/python-utils/blob/master/core.py

Can't really see this as newsworthy, sorry.

Edited to add: didn't mean to sound mean (if you'll pardon the pun), just factual. There are ActiveState recipes out there for this sort of thing since the beginning of time... Also, check my other comments for thoughts on syntax and immutability.

1 comments
Does that last sentence contribute anything?

"Neat, I did something similar here: [link]" communicates the same information. If it's not newsworthy it'll fall off the front page and that'll be that.

I'm sure you didn't mean to be hurtful, but `Show HN` posts almost always end up with a broad, critical top comment. Constructive criticism is great but "this is trivial" just seems discouraging.

Didn't mean to come across as mean, merely factual.

There are plenty of similar implementations around, in fact, and this is the kind of thing I've also seen as part of ActiveState recipes.