A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-January/085433.html below:

[Python-Dev] Operator module deprecations

[Python-Dev] Operator module deprecations [Python-Dev] Operator module deprecationsNick Coghlan ncoghlan at gmail.com
Sun Jan 25 02:22:28 CET 2009
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
---------------------------------------------------------------
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4