Skip to content Skip to sidebar Skip to footer
Showing posts with the label Self

Python Dictionary Not Returning New Value Like I Wanted

So clearly Im doing something wrong. Im a new python/noob coder so it may be obvious for many of yo… Read more Python Dictionary Not Returning New Value Like I Wanted

Pygame, Self Is Not Defined

So I'm getting this error when I compile, I don't understand though because I've got 2 … Read more Pygame, Self Is Not Defined

Class Constructor Able To Init With An Instance Of The Same Class Object

Can python create a class that can be initialised with an instance of the same class object? I'… Read more Class Constructor Able To Init With An Instance Of The Same Class Object

Python Self-less

this works in the desired way: class d: def __init__(self,arg): self.a = arg def p(… Read more Python Self-less

Takes Exactly 2 Arguments (1 Given) When Including Self

Everytime I call my function def hello(self,value) I get an error : takes exactly 2 arguments (1 gi… Read more Takes Exactly 2 Arguments (1 Given) When Including Self