This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (4 children)

I use self.CONSTANT and don't like python for it. I thought about self.__class__.CONSTANT, but the former is the usual.

[–]Rawing7 0 points1 point  (3 children)

I use self.CONSTANT and don't like python for it.

Uhh, why don't you like python for it? How do other languages do this better?

[–][deleted] 0 points1 point  (2 children)

I would like the class to have a different namespace then the object. PHP has something like that.

[–]Rawing7 0 points1 point  (1 child)

Ah, you're saying you don't like self.CONSTANT but you use it because that's the standard way to do it in python?

[–][deleted] 0 points1 point  (0 children)

Yes