Most voted "self" questions
6 questions
Sort by count of
-
1
votes1
answer345
viewsMetaprogramming with ruby, methods with SELF
good evening... I come from other languages somewhat different to Ruby, such as C/C++ , JAVA... And I got a little lost trying to understand the difference between the following methods: Class teste…
-
0
votes2
answers150
viewsIs it possible for a Closure (Swift) to capture reference of the instance of the object that executes it?
I am passing a closure for the property of an object, and within the closure would need to make a reference to the instance of the object that will run the closure. Example: typealias validator :…
-
0
votes3
answers280
viewsHow Django URL works
I’m developing a Jango website. Where I own these two structures main from django.contrib import admin from django.urls import path, include from post import views urlpatterns = [ path('admin/',…
-
0
votes0
answers35
viewsError: name 'self' is not defined
I’m a beginner in Python and I’m developing my first program. It’s like this: from tkinter import * from tkinter import font class Application(Frame): def __init__(self, master=None): pass self.msg…
-
0
votes0
answers22
viewshello, I would like to understand these two code in Python and what is the function of (self) in the set_name function
hello, I’m new to Python and programming in general, I just got into object orientation and I can’t understand why 'self' in the following code functions; I think because I studied an introduction…
-
-1
votes1
answer47
viewsBuild error when recording information in a struct and substruct
I have a problem with my C code. My goal is to register categories in my first struct, which occurs without problems. Then, I want to register some subcategories for each category, which causes the…