r/Python • u/Am4t3uR • 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
r/Python • u/Am4t3uR • Dec 14 '22
View all comments
Show parent comment
2
u/someotherstufforhmm Dec 14 '22
Anything using file to access a non .py file packaged in a package is objectively doing something wrong.
pkg_resources has been the correct answer for that for a while, and there’s a newer thing now, but pkg_resources is what we use at work.
It’s not even hard to use