A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2010-November/105414.html below:

[Python-Dev] Breaking undocumented API

[Python-Dev] Breaking undocumented API [Python-Dev] Breaking undocumented APIexarkun at twistedmatrix.com exarkun at twistedmatrix.com
Mon Nov 8 22:45:12 CET 2010
On 09:25 pm, brett at python.org wrote:
>On Mon, Nov 8, 2010 at 13:03,  <exarkun at twistedmatrix.com> wrote:
>>On 07:58 pm, brett at python.org wrote:
>>>>
>>>>I don't think a strict don't remove without deprecation policy is
>>>>workable.  For example, is trace.rx_blank constant part of the trace
>>>>module API that needs to be preserved indefinitely?  I don't even 
>>>>know
>>>>if it is possible to add a deprecation warning to it, but
>>>>CoverageResults._blank_re would certainly be a better place for it.
>>>
>>>The deprecation policy obviously cannot apply to module-level 
>>>attributes.
>>
>>I'm not sure why this is.  Can you elaborate?
>
>There is no way to directly trigger a DeprecationWarning for an
>attribute. We can still document it, but there is just no way to
>programmatically enforce it.

What about `deprecatedModuleAttribute` 
(<http://twistedmatrix.com/documents/current/api/twisted.python.deprecate.html>) 
or zope.deprecation 
(<http://docs.zope.org/zope3/Book/deprecation/show.html>) which inspired 
it?

Jean-Paul
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