#๐Ÿ”’ __getattr__ ignores property?

13 messages ยท Page 1 of 1 (latest)

formal valve
#

Idk why this is happening

dusky ospreyBOT
#

@formal valve

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

soft perch
#

you override __getattr__

#

and make it doesn't search for property

#

so therefore it ignores it

#

*This title should be __getattribute__ ignores property?
and the answer is no and there is a chance you forgot to save your file

#

since it show lower case p when your code is upper case

#

@formal valve

formal valve
soft perch
#

Well, no, I still have fun time learning getattr and getattribute that somehow I didn't learn when I was doing some weird thing with python

dusky ospreyBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.