[Python-ideas] Deprecate str.find

Masklinn masklinn at masklinn.net
Sat Jul 16 21:43:10 CEST 2011


On 2011-07-16, at 21:26 , Terry Reedy wrote:
> On 7/16/2011 2:43 PM, Ronny Pfannschmidt wrote:
>> 
>> Since a DeprecationWarning seems rather intrusive,
>> what would be a less intrusive way to cause code-enhancement in such
>> places?
> 
> A PendingDeprecationWarning, which I believe would be off by default, and which could be left as such for several versions.

DeprecationWarning is already silent (since Python 3.2). PDW is of little use nowadays, and DeprecationWarning can already be left on for several versions.


More information about the Python-ideas mailing list