Message281513
It should be an error for a class to define a method twice.
That is, Python should raise an exception when the following code is loaded:
class C:
def m(self):
# do something
def m(self):
# do something
I have just witnessed a beginner get very confused by this!
(Apologies if this is a duplicate of an existing issue.) |
|
Date |
User |
Action |
Args |
2016-11-22 20:49:46 | inglesp | set | recipients:
+ inglesp |
2016-11-22 20:49:46 | inglesp | set | messageid: <1479847786.59.0.434760924279.issue28776@psf.upfronthosting.co.za> |
2016-11-22 20:49:46 | inglesp | link | issue28776 messages |
2016-11-22 20:49:46 | inglesp | create | |
|