About 82 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. Duda con clases. ¿Para que sirve __init__? - Stack Overflow en español

    Aug 30, 2017 · Estoy empezando en esto de programar y me estoy metiendo en la POO. En python, ¿Porqué en las clases se pone __init__?. Y esto, a lo mejor puede sonar estúpido, pero ¿Por qué …

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

  4. Python中 __init__的通俗解释是什么? - 知乎

    题主Python小白一枚,而且没有编程背景,正在自学机器学习。目前努力尝试把各种机器学习算法用python来实…

  5. 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...

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

  7. spring boot - While accessing swagger API, I get java.lang ...

    May 17, 2025 · While accessing swagger API, I get java.lang.NoSuchMethodError: 'void org.springframework.web.method.ControllerAdviceBean.<init> (java.lang.Object)' Asked 11 months …

  8. 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, '/path/to/datetime'), …

  9. Python中 __init__的通俗解释是什么?

    Python中的__init__是一种特殊方法,也可以称为魔法方式(Magic methods),是python的内置函数,一般以双下划线开头和结尾。 Python是一种面向对象的语言,而特殊方法又是Python类中一个重 …

  10. 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 …