7 Useless Python Facts That Make You A Worse Python Programmer
Published in
4 min readApr 25, 2024
If you’ve ever wanted to get worse at programming, this is the article for you.
1) _.__.___.____._____ can be valid code
class Test:
def __getattr__(self, key):
return Test()
^ in a class, the __getattr__
magic method is called when 1) we use object.someattribute
to access…