[Python-ideas] Deprecate dunder functions from operator module
Nick Coghlan
ncoghlan at gmail.com
Fri Oct 31 10:54:07 CET 2014
On 30 October 2014 11:38, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 10/29/2014 05:53 PM, Steven D'Aprano wrote:
>>
>>
>> I propose a few things:
>>
>> * institute a policy that, in the event of a new function being added
>> to the operator module, only the dunderless version will be added;
>>
>> * change the documentation to make it clear that the dunderless
>> versions should be used, rather than merely being "convenience"
>> functions;
>>
>> * add a prominent note that the dunder versions exist for backwards
>> compatibility only and should not be used in new code.
>
>
> +1
+0 from me (I agree the dunder versions are likely pointless, but I
also think they're pretty harmless).
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list