Re: Where is the 5th argument?

2020-01-01 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector


  


Re: Where is the 5th argument?

It is within the dev room already.

URL: https://forum.audiogames.net/post/489875/#p489875




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Where is the 5th argument?

2019-12-31 Thread AudioGames . net Forum — Developers room : adel . spence via Audiogames-reflector


  


Re: Where is the 5th argument?

maybe put this in the dev room?

URL: https://forum.audiogames.net/post/489822/#p489822




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Where is the 5th argument?

2019-12-31 Thread AudioGames . net Forum — Developers room : Hijacker via Audiogames-reflector


  


Re: Where is the 5th argument?

Either you do:  User.__init__(self, name, surname, number)or you do:  super().__init__(name, surname, number)mixing both variants together doesn't work.

URL: https://forum.audiogames.net/post/489778/#p489778




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Where is the 5th argument?

2019-12-30 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: Where is the 5th argument?

Hi there,when you call a method on object in Python, like:john.say("Hello")it's automatically converted into form:Student.say(john, "Hello")assuming that john is an instance of class Student.The same thing goes for super(), which returns the parent class to generate.the self is added automatically, you don't need to write it yourself.Correct form is:super().__init__(name,surname,number)The fifth argument was the autogenerated self.Best regardsRastislav

URL: https://forum.audiogames.net/post/489588/#p489588




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Where is the 5th argument?

2019-12-30 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector


  


Re: Where is the 5th argument?

Hi there,when you call a method on object in Python, like:john.say("Hello")it's automatically converted into form:Student.say(john, "Hello")assuming that john is an instance of class Student.The same thing goes for super(), which returns the parent class to generate.the self is generated automatically, you don't need to write it yourself.Correct form is:super().__init__(name,surname,number)The fifth argument was the autogenerated self.Best regardsRastislav

URL: https://forum.audiogames.net/post/489588/#p489588




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Where is the 5th argument?

2019-12-30 Thread AudioGames . net Forum — Developers room : Turkce_Rap via Audiogames-reflector


  


Where is the 5th argument?

Ok guys this error message popping up and i see no fifth arg at all."Traceback (most recent call last):  File "test.py", line 12, in     john = Student("John","Chunky","146","12.12.1989")  File "test.py", line 9, in __init__    super().__init__(self,name,surname,number)TypeError: __init__() takes 4 positional arguments but 5 were given"My code is belowclass User:    def __init__(self,name,surname,number):        self.name = name        self.surname = surname        self.number = numberclass Student(User):    def __init__(self,name,surname,number,dt):        super().__init__(self,name,surname,number)        self.birthday =birthjohn = Student("John","Chunky","146","12.12.1989")print(john.name,john.surname,john.number,john.dt)

URL: https://forum.audiogames.net/post/489570/#p489570




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector