About 6,580,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 us to extend the …

  2. 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 properties can …

  3. How is the init process started in the Linux kernel?

    Apr 25, 2018 · The kernel calls "init" as one of the very last things it does during kernel initialization. The function kernel_init() in init/main.c has the logic. You will notice that the kernel tries four different …

  4. 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 thinking v...

  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 drivers, but …

  6. 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 parsing …

  7. python - Is __init__ always required? - Stack Overflow

    Mar 24, 2014 · >>> a.method_a('buddy!') Hello buddy! In the second example, it always prints "Hello, Sailor!" and you can't make it print anything else. As for __init__, in your example, the __init__ is not …

  8. What exactly does init do? - Unix & Linux Stack Exchange

    Apr 20, 2015 · System 5 init will tell you only a small part of the story. There's a sort of myopia that affects the Linux world. People think that they use a thing called "System 5 init ", and that is both …

  9. 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?

  10. Duda con clases. ¿Para que sirve __init__? - Stack Overflow en español

    Aug 30, 2017 · Porque es lo que he definido en la clase vehiculo usando la funcion __init__ Es decir que los objetos se __init__cializarán (se crearán) con esos parámetros.