[Python-Dev] Operator module deprecations (original) (raw)
Raymond Hettinger python at rcn.com
Sat Jan 24 23:46:52 CET 2009
- Previous message: [Python-Dev] mingw+msys port of python2.7a0 (svn #r68884)
- Next message: [Python-Dev] Operator module deprecations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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'
Raymond
- Previous message: [Python-Dev] mingw+msys port of python2.7a0 (svn #r68884)
- Next message: [Python-Dev] Operator module deprecations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]