![]() ![]() ![]() ![]() ![]() The invocation is realized behind the scenes. So what's magic about the _init_ method? The answer is, you don't have to invoke it directly. "Double underscore init double underscore" is a lot better, but the ideal way is "dunder init dunder" That's why magic methods methods are sometimes called dunder methods! How do you pronounce or say a method name like _init_? "Underscore underscore init underscore underscore" sounds horrible and is almost a tongue twister. the double underscores at the beginning and the end. They are the methods with this clumsy syntax, i.e. They are special methods with fixed names. You have already seen them in the previous chapters of our tutorial. The so-called magic methods have nothing to do with wizardry.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |