Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Treighton @RazorSh4rk
Hey there folks, thanks
@Treighton
Haha, well I thought I'd write the damn class, instead of a simple print. Not that it matters, but OCD kicked in, so.. -
@Madeindjs
In order to abide by the golden ruleset of "PEP8 the almighty", or some other secret reason that makes it better?
Eitherway, I don't really care much for camelcase, it looks a bit ugly in my eyes so I stick to underscores (unless it's a team project where we have a specific style guide).
Related Rants
class devRant_member:
def __init__(self, name):
self.name = name
def say_hi(self):
print( "Hello world, I'm ", self.name)
p = devRant_member("Blacksteel")
p.say_hi()
undefined
generic and overdone hello_world post
!rant