On Sun, Jan 14, 2018 at 11:10:33AM +0300, joannah nanjekye wrote:

[...]
> Is this sort of method name duplication important in any cases?

Yes. For example, inside a class:

class MyClass(object):
    @property
    def something(self):
        pass

    @something.setter
    def something(self):
        pass


> Not aimed at criticism, just to understand.

This mailing list is not really for general discussions about Python, 
this is for the development of the Python interpreter. For questions 
about how Python works and the reasons for design choices such as 
allowing duplicate function or method definitions, please try 
python-l...@python.org, or a forum such as Reddit /r/python.


Thank you.



-- 
Steve
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to