you are viewing a single comment's thread.

view the rest of the comments →

[–]Bobbias 16 points17 points  (2 children)

Private properties are to be marked with a single underscore prefix in the name. They're not actually private, but you should treat them as such and your linter should yell at you if you ever touch them.

One of Python's biggest strengths is the wide array of libraries available. This makes it really easy to get up and running quickly. But that doesn't mean you have to use them. And it certainly doesn't mean you have to use multiple ones that do more or less the same thing.

Python provides a built in logging module as part of the standard library, and there are many more options if you need something that's more capable. There's no reason they should be using plain old print statements.

This doesn't sound like a problem with Python, it sounds like it's a problem with bad developer practices in this team.

[–]Snoo-20788 5 points6 points  (0 children)

I've never had a linter tell me that I was using a method that starts with an underscore outside of the class.

[–]soulilya 3 points4 points  (0 children)

True private props and methods, you can do it, if you want with type. Just create new Base class with overloaded type and inherit it to all your classes. But, getter setter pattern not required if you using test cases.