On Sat, Nov 21, 2015 at 3:31 AM, Marko Rauhamaa <ma...@pacujo.net> wrote:
> Consider the mutator pattern:
>
>     def name(self, value=omitted):
>         if value is omitted:
>             return self._name
>         self._name = value
>
>     <URL: https://en.wikipedia.org/wiki/Mutator_method#C.2B.2B_example>

That should DEFINITELY be two functions.

Or just an attribute.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to