跳转到主要内容

从Python 3.9向后移植pprint到Python 3.6-3.8

项目描述

从Python 3.9向后移植pprint到Python 3.6-3.8

有关示例和使用信息,请参阅Python文档

从Python 3.6到Python 3.9的相关更改包括

  • pprint现在可以格式化打印types.SimpleNamespace。由Carl Bordum Hansen在Python 3.9中贡献。

  • pprint.pp已添加,默认情况下按插入顺序对字典键进行排序以格式化对象。已向pprint.pprintpprint.pformatpprint.PrettyPrinter中添加了参数sort_dicts。由Rémi Lapeyre在Python 3.8中贡献。

测试

Linux Test Status Windows Test Status macOS Test Status Coverage

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

活动

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status

其他

License GitHub top language Requirements Status


安装

pprint36可以从PyPI安装。

使用

pip

安装

$ python -m pip install pprint36

项目详情


下载文件

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

源分发

pprint36-3.9.16.0.tar.gz (12.3 kB 查看哈希值)

上传时间 源代码

构建发行版

pprint36-3.9.16.0-py3-none-any.whl (42.7 kB 查看哈希值)

上传时间 Python 3

支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面