About 53 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 self passing …

  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 self …

  3. What difference does it make to use "self" to define a member in a ...

    A.x is a class variable. B 's self.x is an instance variable. i.e. A 's x is shared between instances. It would be easier to demonstrate the difference with something that can be modified like a list:

  4. oop - Why do you need explicitly have the "self" argument in a Python ...

    By making the self reference explicit, you're free to refer to any object by that self reference. Also, such a way of playing with classes at runtime is harder to do in the more static languages - not that's it's …

  5. How can I create a self-signed certificate for 'localhost'?

    I've gone through the steps detailed in How do you use HTTPS and SSL on 'localhost'?, but this sets up a self-signed certificate for my machine name, and when browsing it via https://localhost, I receive …

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

    A self-signed certificate does not chain back to a trusted anchor. The best way to avoid this is: Create your own authority (i.e., become a CA) Create a certificate signing request (CSR) for the server Sign …

  7. Mockito is currently self-attaching to enable the inline-mock-maker ...

    Dec 13, 2024 · I get this warning while testing in Spring Boot: Mockito is currently self-attaching to enable the inline-mock-maker. This will no longer work in future releases of the JDK. Please add …

  8. Difference between this and self in JavaScript - Stack Overflow

    Jun 1, 2013 · Everyone is aware of this in javascript, but there are also instances of self encountered in the wild, such as here So, what is the difference between this and self in JavaScript?

  9. Self-reference for cell, column and row in worksheet functions

    Jun 13, 2011 · In a worksheet function in Excel, how do you self-reference the cell, column or row you're in?

  10. Ignore invalid self-signed ssl certificate in node.js with https ...

    Ignore invalid self-signed ssl certificate in node.js with https.request? Asked 13 years, 8 months ago Modified 1 year, 8 months ago Viewed 731k times