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

    Jul 8, 2017 · In this case, there are some benefits to allowing this: 1) Methods are just functions that happen defined in a class, and need to be callable either as bound methods with implicit …

  2. What is the purpose of the `self` parameter? Why is it needed?

    For a language-agnostic consideration of the design decision, see What is the advantage of having this/self pointer mandatory explicit?. To close debugging questions where OP omitted a …

  3. Python 'self' keyword - Stack Overflow

    9 First, Python's self is not a keyword, it's a coding convention, the same as Python's cls. Guido has written a really detailed and valuable article about the origin of Python's support for class, …

  4. How can I generate a self-signed SSL certificate using OpenSSL?

    The W3C's WebAppSec Working Group is starting to look at the issue. See, for example, Proposal: Marking HTTP As Non-Secure. How to create a self-signed certificate with …

  5. oop - Understanding "self" in Python - Stack Overflow

    Sep 15, 2012 · 0 in python to call inner class method you should write self. before method name, self. means that search class for this method but you don't use self when you call say_hi() in …

  6. Explaining the 'self' variable to a beginner - Stack Overflow

    6 self refers to the current instance of Bank. When you create a new Bank, and call create_atm on it, self will be implicitly passed by python, and will refer to the bank you created.

  7. sql - Explanation of self-joins - Stack Overflow

    Mar 16, 2010 · A self join is a join of a table with itself. A common use case is when the table stores entities (records) which have a hierarchical relationship between them.

  8. How to avoid explicit 'self' in Python? - Stack Overflow

    Dec 31, 2009 · The "self" is the conventional placeholder of the current object instance of a class. Its used when you want to refer to the object's property or field or method inside a class as if …

  9. Why do I get "TypeError: Missing 1 required positional argument: …

    See Why do I get 'takes exactly 1 argument (2 given)' when trying to call a method? for the opposite problem.

  10. node.js - NPM self_signed_cert_in_chain - Stack Overflow

    NPM self_signed_cert_in_chain Asked 9 years, 11 months ago Modified 5 months ago Viewed 206k times