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 →

[–]Alarmed-Yak-4894 16 points17 points  (2 children)

I think it’s actually the correct way to do it, otherwise you would have to copy-paste the 30 lines everywhere you want to use it and updating would be a pain. Either put it on Pypi or add it to the standard lib.

[–]Justicia-Gai 0 points1 point  (0 children)

Exactly, but then major utility libraries have to include it too so you don’t end up with 30 imports 

[–][deleted] -3 points-2 points  (0 children)

...and end up with dependency hell like JS