About 6,760,000 results
Open links in new tab
  1. oop - What do __init__ and self do in Python? - Stack Overflow

    Jul 8, 2017 · init self may make sense for other methods, but what about init? When we call init, we're in the process of creating an object, so how can there already be a self? Python allows …

  2. python - What is __init__.py for? - Stack Overflow

    Make a directory called 'datetime' and in it make two blank files, the init.py file (with underscores) and datetime.py. Now open an interpreter, import sys, and issue sys.path.insert(0, …

  3. What does init mean in c# 9? - Stack Overflow

    Jun 6, 2020 · The init accessor makes immutable objects more flexible by allowing the caller to mutate the members during the act of construction. That means the object's immutable …

  4. How to return a value from __init__ in Python? - Stack Overflow

    Mar 22, 2010 · I have a class with an __init__ function. How can I return an integer value from this function when an object is created? I wrote a program, where __init__ does command line …

  5. What does __init mean in the Linux kernel code? - Stack Overflow

    Notice the change in the definitions of the init and cleanup functions. The __init macro causes the init function to be discarded and its memory freed once the init function finishes for built-in …

  6. Java: What is the difference between <init> and <clinit>?

    Dec 15, 2011 · The difference between <init> and <clinit> is that <init> is used for constructor methods that initialise an object instance, whereas <clinit> is used to initialise the class object …

  7. javascript - Problem installing TailwindCSS after `npx tailwindcss …

    Jan 23, 2025 · It works the same way as the old command, except that from v4 onwards, you no longer need to run the init process for installation. Learn more: Problem installing TailwindCSS …

  8. What is the difference between reboot , init 6 and shutdown -r now?

    I just want to know difference between in reboot init 6 shutdown -r now and which is the safest and the best?

  9. Why do we use __init__ in Python classes? - Stack Overflow

    I am having trouble understanding the Initialization of classes. What's the point of them and how do we know what to include in them? Does writing in classes require a different type of …

  10. Inheritance and Overriding __init__ in python - Stack Overflow

    1) If you want to leave the base class' init logic as is, you don't override init method in your derived class. 2) If you want to extend the init logic from the base class, you define your own init …