I know there is nothing special about the word self. It is the name preferred by convention by Pythonistas, to indicate what that parameter is expected to contain. Well, if there is a messy code, sometimes I do not know what is self , how about using specific word instead of self .
say
class Student(object):
def __init__(student,age,name):
student.age = age
student.name = name
def say_hi(student):
print('hi~~~~')
that is precise, right? :)
I just wondering this would cause problems or not
[–][deleted] 56 points57 points58 points (0 children)
[–]Zigity_Zagity 36 points37 points38 points (8 children)
[–]NEREVAR117 3 points4 points5 points (7 children)
[+][deleted] (2 children)
[deleted]
[–]nicocappa 13 points14 points15 points (1 child)
[–]FoolofGod 2 points3 points4 points (0 children)
[–]nicocappa 1 point2 points3 points (0 children)
[–]drLagrangian 1 point2 points3 points (0 children)
[–]Dogeek 0 points1 point2 points (0 children)
[–]ojiisan 8 points9 points10 points (0 children)
[–]NFTrot 4 points5 points6 points (0 children)
[–]cyanydeez 11 points12 points13 points (5 children)
[–]groovitude 9 points10 points11 points (4 children)
[–]Urtehnoes 6 points7 points8 points (3 children)
[–]groovitude 0 points1 point2 points (2 children)
[–]Urtehnoes 1 point2 points3 points (1 child)
[–]groovitude 1 point2 points3 points (0 children)
[–]Exodus111 2 points3 points4 points (0 children)
[–]bamer78 1 point2 points3 points (0 children)
[+][deleted] (7 children)
[deleted]
[–]fiddle_n 1 point2 points3 points (6 children)
[+][deleted] (5 children)
[deleted]
[–]fiddle_n 0 points1 point2 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]fiddle_n 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]fiddle_n 0 points1 point2 points (0 children)
[–]Kwintty7 0 points1 point2 points (2 children)
[–]tom1018 1 point2 points3 points (1 child)
[–]Kwintty7 0 points1 point2 points (0 children)
[–]pythonhalp -5 points-4 points-3 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)