[Python-Dev] Operator module deprecations

Guido van Rossum guido at python.org
Mon Jan 26 00:55:24 CET 2009


Since 3.0.1 is going to do a couple of these already, I think that's fine.

On Sun, Jan 25, 2009 at 3:50 PM, Raymond Hettinger <python at rcn.com> wrote:
> For Py3.0.1, can we just rip these out and skip deprecation?
> I don't think they will be missed at all.
>
> Raymond
>
> ----- Original Message ----- From: "Guido van Rossum" <guido at python.org>
> To: "Nick Coghlan" <ncoghlan at gmail.com>
> Cc: <python-dev at python.org>
> Sent: Sunday, January 25, 2009 2:50 PM
> Subject: Re: [Python-Dev] Operator module deprecations
>
>
>> +1 indeedy.
>>
>> On Sat, Jan 24, 2009 at 5:22 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>>>
>>> Brett Cannon wrote:
>>>>
>>>> On Sat, Jan 24, 2009 at 14:46, Raymond Hettinger <python at rcn.com> wrote:
>>>>>
>>>>> I would like to deprecate some outdated functions in the operator
>>>>> module.
>>>>>
>>>>> The isSequenceType(), isMappingType(), and isNumberType()
>>>>> functions never worked reliably and now their
>>>>> intended purpose has been largely fulfilled by
>>>>> ABCs.
>>>>>
>>>>> The isCallable() function has long been deprecated
>>>>> and I think it's finally time to rip it out.
>>>>>
>>>>> The repeat() function never really corresponded to an
>>>>> operator.  Instead, it reflected an underlying implementation detail
>>>>> (namely
>>>>> the naming of the sq_repeat slot and the abstract C API function
>>>>> PySequence_Repeat).  That functionality is already exposed by
>>>>> operator.mul:
>>>>>
>>>>>  operator.mul('abc', 3) --> 'abcabcabc'
>>>>
>>>> +1 to all of it.
>>>
>>> What Brett said.
>>>
>>> Cheers,
>>> Nick.
>>>
>>> --
>>> Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
>>> ---------------------------------------------------------------
>>> _______________________________________________
>>> Python-Dev mailing list
>>> Python-Dev at python.org
>>> http://mail.python.org/mailman/listinfo/python-dev
>>> Unsubscribe:
>>> http://mail.python.org/mailman/options/python-dev/guido%40python.org
>>>
>>
>>
>>
>> --
>> --Guido van Rossum (home page: http://www.python.org/~guido/)
>> _______________________________________________
>> Python-Dev mailing list
>> Python-Dev at python.org
>> http://mail.python.org/mailman/listinfo/python-dev
>> Unsubscribe:
>> http://mail.python.org/mailman/options/python-dev/python%40rcn.com
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list