#๐Ÿ”’ Passing flag to constructor with classmethods

8 messages ยท Page 1 of 1 (latest)

long waspBOT
#

@umbral lagoon

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.

umbral lagoon
#

Now I added the verbose flag but I'm not sure if I did it correctly.

#

I'm a bit confused about the use of __new__ and __init__. I understand one is for object initialization and the other basically for declaring it or creation and population or whatever the lingo would be in this case.

#

yet I'm not sure why there are both methods. And why I have to define the flag in both.

#

Is there something like a flow diagram of object creation? or lifetime of an object?

#

!close

long waspBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.