Skip to main content

All Questions

Tagged with
2 votes
7 answers
796 views

Exposing members or make them private in Python?

Is there a general convention about exposing members in Python classes? I know that this is a case of "it depends", but maybe there is a rule of thumb. Private member: class Node: def __init__(...
deamon's user avatar
  • 91.3k