About 6,140,000 results
Open links in new tab
  1. What does init mean in c# 9? - Stack Overflow

    Jun 6, 2020 · The init keyword creates so called Init Only Setters. They add the concept of init only properties and indexers to C#. These properties and indexers can be set at the point of …

  2. oop - What do __init__ and self do in Python? - Stack Overflow

    Jul 8, 2017 · After init has finished, the caller can rightly assume that the object is ready to use. That is, after jeff = Customer('Jeff Knupp', 1000.0), we can start making deposit and withdraw …

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

    __init is a macro defined in ./include/linux/init.h which expands to __attribute__ ((__section__(".init.text"))). It instructs the compiler to mark this function in a special way. At …

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

    Mar 22, 2010 · init doesn't return the newly created object - as seen in the TypeError, it is required to return None, right? The newly created object is returned by new , init just sets some of its …

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

    Dec 23, 2011 · wow thanks..this actually made alot of sense to me so anything that makes something what it is, I need to pre-declare in the init function. In this case, Dog, has legs and …

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

    Apr 20, 2015 · System 5 init/rc isn't the best place to start, and even if one adds on knowledge of systemd that doesn't cover half of what there is to know. There's been a lot of work in the area …

  7. Calling parent class __init__ with multiple inheritance, what's the ...

    So it seems that unless I know/control the init's of the classes I inherit from (A and B) I cannot make a safe choice for the class I'm writing (C). Although you can handle the cases where you …

  8. Calling a class function inside of __init__ - Stack Overflow

    If I'm not wrong, both functions are part of your class, you should use it like this: class MyClass(): def __init__(self, filename): self.filename = filename self.stat1 = None self.stat2 = None …

  9. How to overload __init__ method based on argument type?

    I fought with this for a while, and in the end I ended up creating a base class, and two child classes, each of which had the different init argument list. This to me was more readable. …

  10. python - __init__ as a constructor? - Stack Overflow

    Dive into Python-. It would be tempting but incorrect to call this the constructor of the class. It's tempting, because it looks like a constructor (by convention, __init__ is the first method …

Refresh