跳转到主要内容

将`breakpoint`移植到python<3.7

项目描述

Build Status Azure DevOps coverage

future-breakpoint

breakpoint移植到python<3.7。

安装

pip安装future-breakpoint

支持的版本

python3+, (python3.7+上无操作)

用法

安装后,您应该可以在与python3.7+相同的方式下使用breakpoint()

def rand():
    breakpoint()  # no need for `import pdb; pdb.set_trace()`
    return 4

有关完整用法,请参阅PEP 553

它是如何实现的呢?

  • 一个实现了PEP的C扩展
  • 一个在启动时执行的.pth文件(请参阅setup.py)修补sys / builtins

您可能还喜欢

项目详情


下载文件

下载适用于您的平台的文件。如果您不确定选择哪个,请了解有关安装软件包的更多信息。

源分发

future_breakpoint-2.0.0.tar.gz (4.2 kB 查看哈希值)

上传时间:

构建分发

future_breakpoint-2.0.0-cp39-cp39-manylinux2010_x86_64.whl (18.9 kB 查看哈希值)

上传时间 CPython 3.9 manylinux: glibc 2.12+ x86-64

future_breakpoint-2.0.0-cp39-cp39-manylinux1_x86_64.whl (18.9 kB 查看哈希值)

上传时间 CPython 3.9

future_breakpoint-2.0.0-cp38-cp38-manylinux1_x86_64.whl (14.4 kB 查看哈希值)

上传时间 CPython 3.8

future_breakpoint-2.0.0-cp37-cp37m-win_amd64.whl (8.6 kB 查看哈希值)

上传时间 CPython 3.7m Windows x86-64

future_breakpoint-2.0.0-cp37-cp37m-manylinux1_x86_64.whl (13.8 kB 查看哈希值)

上传时间 CPython 3.7m

future_breakpoint-2.0.0-cp36-cp36m-win_amd64.whl (8.6 kB 查看哈希值)

上传时间 CPython 3.6m Windows x86-64

future_breakpoint-2.0.0-cp36-cp36m-manylinux1_x86_64.whl (13.7 kB 查看哈希值)

上传时间 CPython 3.6m

由以下支持