Skip to content

Commit

Permalink
Add a FAQ chapter for deprecation policy
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 19, 2016
1 parent 3dc746c commit b65ecf4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _aiohttp_changes:

.. include:: ../CHANGES.rst

.. include:: ../HISTORY.rst
Expand Down
21 changes: 21 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -315,5 +315,26 @@ Note how we are using the ``side_effect`` feature for injecting the loop to the
``AioESService.__init__`` call. The use of ``**args, **kwargs`` is mandatory
in order to propagate the arguments being used by the caller.


API stability and deprecation policy
------------------------------------

aiohttp tries to not break existing users code.

Obsolete attributes and methods are marked as *deprecated* in
documentation and raises :class:`DeprecationWarning` on usage.

Deprecation period is usually a year and half.

After the period is passed out deprecated code is be removed.

Unfortunately we should break own rules if new functionality or bug
fixing forces us to do it (for example proper cookies support on
client side forced us to break backward compatibility twice).

All *backward incompatible* changes are explicitly marked in
:ref:`CHANGES <aiohttp_changes>` chapter.


.. disqus::
:title: aiohttp FAQ

0 comments on commit b65ecf4

Please sign in to comment.