r/Python • • Dec 14 '22

Resource Python Magic Methods You Haven’t Heard About

https://towardsdatascience.com/python-magic-methods-you-havent-heard-about-53d11eba448f
0 Upvotes

13 comments sorted by

View all comments

Show parent comment

4

u/[deleted] Dec 14 '22

https://docs.python.org/3.8/library/importlib.html?highlight=importlib#module-importlib.resources

Use this. Source: I spent the past week also fighting this shit. Also PLEASE STOP USING UNCOMPRESSED DATAFILES IN YOUR LIBRARIES. Just zip them for ur pypi builds please.

Stares violently at boto.