This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients ethan.furman, lukasz.langa, ncoghlan, pitrou, r.david.murray, rhettinger
Date 2015-07-09.18:30:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436466656.92.0.576441954682.issue24597@psf.upfronthosting.co.za>
In-reply-to
Content
Ah, I see.

So you say up-front if you are willing to have redefinition occur later.

That doesn't feel like a consenting-adults attitude, and could also make testing harder.

I prefer adding an option to the register method, and move towards making the default be "don't allow".

If we don't want to go that route, would having singledispatch issue a warning on redefinition be sufficient?
History
Date User Action Args
2015-07-09 18:30:56ethan.furmansetrecipients: + ethan.furman, rhettinger, ncoghlan, pitrou, r.david.murray, lukasz.langa
2015-07-09 18:30:56ethan.furmansetmessageid: <1436466656.92.0.576441954682.issue24597@psf.upfronthosting.co.za>
2015-07-09 18:30:56ethan.furmanlinkissue24597 messages
2015-07-09 18:30:56ethan.furmancreate