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

    Jul 8, 2017 · By convention, this argument is always named self. In the init method, self refers to the newly created object; in other class methods, it refers to the instance whose method was called. …

  2. When do you use 'self' in Python? - Stack Overflow

    Oct 18, 2016 · Are you supposed to use self when referencing a member function in Python (within the same module)? More generally, I was wondering when it is required to use self, not just for methods …

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

  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 OpenSSL The commands …

  5. What is SELF JOIN and when would you use it? [duplicate]

    Jun 13, 2024 · You use a self join when a table references data in itself. E.g., an Employee table may have a SupervisorID column that points to the employee that is the boss of the current employee. To …

  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. oop - Why do you need explicitly have the "self" argument in a Python ...

    But in some other languages, such as C#, you have a reference to the object that the method is bound to with the "this" keyword without declaring it as an argument in the method prototype. Was this an …

  8. security - How do I create a self-signed certificate for code signing ...

    Sep 17, 2008 · Create a self-signed certificate in a PowerShell console, provide an expiration date, Subject and few other optional values. Use WindowsSDK signtool to write the signature on your file.

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

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