Skip to content
Sections
>> Trisquel >> 软件包 >> etiona >> python >> python3-deprecation
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: python-deprecation  ]

软件包: python3-deprecation (1.0.1-0ubuntu1)

A library to handle automated deprecations

The deprecation library provides a deprecated decorator and a fail_if_not_removed decorator for your tests. Together, the two enable the automation of several things:

 1. The docstring of a deprecated method gets the deprecation details
    appended to the end of it. If you generate your API docs direct
    from your source, you don't need to worry about writing your own
    notification. You also don't need to worry about forgetting to
    write it. It's done for you.
 2. Rather than having code live on forever because you only deprecated
    it but never actually moved on from it, you can have your tests
    tell you when it's time to remove the code. The '@deprecated'
    decorator can be told when it's time to entirely remove the code,
    which causes '@fail_if_not_removed' to raise an 'AssertionError',
    causing either your unittest or py.test tests to fail.

This package provides the Python 3 module.

其他与 python3-deprecation 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: python3
    interactive high-level object-oriented language (default python3 version)

下载 python3-deprecation

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 6.9 kB31 kB [文件列表]