Getters and setters in python, common practise

Max M maxm at mxm.dk
Thu Apr 15 04:25:07 EDT 2004


Petter Holmström wrote:

> Hello,
> 
> Having a Delphi/Object Pascal-background, I'm very used to using getters 
> and setters when designing my classes. What is the common practise in 
> the Python world? Should one use them or not?

Start with simple object attributes, then convert to attribute functions 
  using get/set-ers when needed.

regards Max M



More information about the Python-list mailing list