On this page
Python 3.7.2rc1
Table of Contents
- Python 新增Function
- Python 3.8 的新增Function
- 摘要–发布要点
- New Features
- 其他语言变更
- New Modules
- Improved Modules
- ast
- asyncio
- builtins
- collections
- cProfile
- csv
- curses
- ctypes
- datetime
- functools
- gc
- gettext
- gzip
- 空闲和空闲库
- inspect
- io
- itertools
- json.tool
- logging
- math
- mmap
- multiprocessing
- os
- os.path
- pathlib
- pickle
- plistlib
- pprint
- py_compile
- shlex
- shutil
- socket
- ssl
- statistics
- sys
- tarfile
- threading
- tokenize
- tkinter
- time
- typing
- unicodedata
- unittest
- venv
- weakref
- xml
- xmlrpc
- Optimizations
- Build 和 C API 更改
- Deprecated
- API 和Function删除
- 移植到 Python 3.8
- Python 3.8.1 的显着变化
- Python 3.8.2 中的显着变化
- Python 3.8.3 的显着变化
- Python 3.7 的新增Function
- 摘要–发行要点
- New Features
- 其他语言变更
- New Modules
- Improved Modules
- argparse
- asyncio
- binascii
- calendar
- collections
- compileall
- concurrent.futures
- contextlib
- cProfile
- crypt
- datetime
- dbm
- decimal
- dis
- distutils
- enum
- functools
- gc
- hmac
- http.client
- http.server
- idlelib 和 IDLE
- importlib
- io
- ipaddress
- itertools
- locale
- logging
- math
- mimetypes
- msilib
- multiprocessing
- os
- pathlib
- pdb
- py_compile
- pydoc
- queue
- re
- signal
- socket
- socketserver
- sqlite3
- ssl
- string
- subprocess
- sys
- time
- tkinter
- tracemalloc
- types
- unicodedata
- unittest
- unittest.mock
- urllib.parse
- uu
- uuid
- warnings
- xml.etree
- xmlrpc.server
- zipapp
- zipfile
- C API 变更
- Build Changes
- Optimizations
- 其他 CPython 实现更改
- 不推荐使用的 Python 行为
- 不推荐使用的 Python 模块,函数和方法
- C API 弃用的Function和类型
- 平台支持删除
- API 和Function删除
- Module Removals
- Windows-only Changes
- 移植到 Python 3.7
- Python 3.7.1 的显着变化
- Python 3.7.2 的显着变化
- Python 3.7.6 的显着变化
- Python 3.6 新增Function
- 摘要–发布要点
- New Features
- PEP 498:格式化的字符串 Literals
- PEP 526:变量 Comments 的语法
- PEP 515:数字 Literals 中的下划线
- PEP 525:异步 Generator
- PEP 530:异步理解
- PEP 487:更轻松地自定义类创建
- PEP 487:Descriptors 协议增强
- PEP 519:添加文件系统路径协议
- PEP 495:本地时间消歧
- PEP 529:将 Windows 文件系统编码更改为 UTF-8
- PEP 528:将 Windows 控制台编码更改为 UTF-8
- PEP 520:保留类属性定义 Sequences
- PEP 468:保留关键字参数 Sequences
- 新的 dict 实施
- PEP 523:向 CPython 添加框架评估 API
- PYTHONMALLOC 环境变量
- DTrace 和 SystemTap 探测支持
- 其他语言变更
- New Modules
- Improved Modules
- array
- ast
- asyncio
- binascii
- cmath
- collections
- concurrent.futures
- contextlib
- datetime
- decimal
- distutils
- encodings
- enum
- faulthandler
- fileinput
- hashlib
- http.client
- idlelib 和 IDLE
- importlib
- inspect
- json
- logging
- math
- multiprocessing
- os
- pathlib
- pdb
- pickle
- pickletools
- pydoc
- random
- re
- readline
- rlcompleter
- shlex
- site
- sqlite3
- socket
- socketserver
- ssl
- statistics
- struct
- subprocess
- sys
- telnetlib
- time
- timeit
- tkinter
- traceback
- tracemalloc
- typing
- unicodedata
- unittest.mock
- urllib.request
- urllib.robotparser
- venv
- warnings
- winreg
- winsound
- xmlrpc.client
- zipfile
- zlib
- Optimizations
- Build 和 C API 更改
- Other Improvements
- Deprecated
- Removed
- 移植到 Python 3.6
- Python 3.6.2 中的显着变化
- Python 3.6.4 中的显着变化
- Python 3.6.5 的显着变化
- Python 3.6.7 中的显着变化
- Python 3.6.10 中的显着变化
- Python 3.5 新增Function
- 摘要–发布要点
- New Features
- 其他语言变更
- New Modules
- Improved Modules
- argparse
- asyncio
- bz2
- cgi
- cmath
- code
- collections
- collections.abc
- compileall
- concurrent.futures
- configparser
- contextlib
- csv
- curses
- dbm
- difflib
- distutils
- doctest
- enum
- faulthandler
- functools
- glob
- gzip
- heapq
- http
- http.client
- idlelib 和 IDLE
- imaplib
- imghdr
- importlib
- inspect
- io
- ipaddress
- json
- linecache
- locale
- logging
- lzma
- math
- multiprocessing
- operator
- os
- pathlib
- pickle
- poplib
- re
- readline
- selectors
- shutil
- signal
- smtpd
- smtplib
- sndhdr
- socket
- ssl
- sqlite3
- subprocess
- sys
- sysconfig
- tarfile
- threading
- time
- timeit
- tkinter
- traceback
- types
- unicodedata
- unittest
- unittest.mock
- urllib
- wsgiref
- xmlrpc
- xml.sax
- zipfile
- 其他模块级别的更改
- Optimizations
- Build 和 C API 更改
- Deprecated
- Removed
- 移植到 Python 3.5
- Python 3.5.4 中的显着变化
- Python 3.4 新增Function
- 摘要–发行要点
- New Features
- New Modules
- Improved Modules
- abc
- aifc
- argparse
- audioop
- base64
- collections
- colorsys
- contextlib
- dbm
- dis
- doctest
- filecmp
- functools
- gc
- glob
- hashlib
- hmac
- html
- http
- idlelib 和 IDLE
- importlib
- inspect
- ipaddress
- logging
- marshal
- mmap
- multiprocessing
- operator
- os
- pdb
- pickle
- plistlib
- poplib
- pprint
- pty
- pydoc
- re
- resource
- select
- shelve
- shutil
- smtpd
- smtplib
- socket
- sqlite3
- ssl
- stat
- struct
- subprocess
- sunau
- sys
- tarfile
- textwrap
- threading
- traceback
- types
- urllib
- unittest
- venv
- wave
- weakref
- xml.etree
- zipfile
- CPython 实现更改
- Deprecated
- Removed
- 移植到 Python 3.4
- 在 3.4.3 中更改
- Python 3.3 新增Function
- 摘要–发布要点
- PEP 405:虚拟环境
- PEP 420:隐式命名空间包
- PEP 3118:新的 memoryview 实现和缓冲区协议文档
- PEP 393:灵活的字符串表示形式
- PEP 397:适用于 Windows 的 Python 启动器
- PEP 3151:重做 OS 和 IO 异常层次结构
- PEP 380:委派给子生成器的语法
- PEP 409:禁止异常上下文
- PEP 414:显式 UnicodeLiterals
- PEP 3155:类和函数的合格名称
- PEP 412:密钥共享字典
- PEP 362:Function签名对象
- PEP 421:添加系统实现
- 使用 importlib 作为导入的实现
- 其他语言变更
- 更精细的 import 锁
- 内置Function和类型
- New Modules
- Improved Modules
- abc
- array
- base64
- binascii
- bz2
- codecs
- collections
- contextlib
- crypt
- curses
- datetime
- decimal
- ftplib
- functools
- gc
- hmac
- http
- html
- imaplib
- inspect
- io
- itertools
- logging
- math
- mmap
- multiprocessing
- nntplib
- os
- pdb
- pickle
- pydoc
- re
- sched
- select
- shlex
- shutil
- signal
- smtpd
- smtplib
- socket
- socketserver
- sqlite3
- ssl
- stat
- struct
- subprocess
- sys
- tarfile
- tempfile
- textwrap
- threading
- time
- types
- unittest
- urllib
- webbrowser
- xml.etree.ElementTree
- zlib
- Optimizations
- Build 和 C API 更改
- Deprecated
- 移植到 Python 3.3
- Python 3.2 新增Function
- PEP 384:定义稳定的 ABI
- PEP 389:Argparse 命令行解析模块
- PEP 391:基于字典的日志记录配置
- PEP 3148:current.futures 模块
- PEP 3147:PYC 存储库目录
- PEP 3149:ABI 版本标记为.so 文件
- PEP 3333:Python Web 服务器网关接口 v1.0.1
- 其他语言变更
- 新增,改进和不推荐使用的模块
- elementtree
- functools
- itertools
- collections
- threading
- 日期时间和时间
- math
- abc
- io
- reprlib
- logging
- csv
- contextlib
- 小数和小数
- ftp
- popen
- select
- gzip 和 zipfile
- tarfile
- hashlib
- ast
- os
- shutil
- sqlite3
- html
- socket
- ssl
- nntp
- certificates
- imaplib
- http.client
- unittest
- random
- poplib
- asyncore
- tempfile
- inspect
- pydoc
- dis
- dbm
- ctypes
- site
- sysconfig
- pdb
- configparser
- urllib.parse
- mailbox
- turtledemo
- Multi-threading
- Optimizations
- Unicode
- Codecs
- Documentation
- IDLE
- Code Repository
- Build 和 C API 更改
- 移植到 Python 3.2
- Python 3.1 新增Function
- Python 3.0 的新增Function
- Python 2.7 的新增Function
- Python 2.6 的新增Function
- Python 3.0
- 开发过程的变化
- PEP 343:“ with”语句
- PEP 366:从主模块的显式相对导入
- PEP 370:每个用户的站点软件包目录
- PEP 371:multiprocessing 程序包
- PEP 3101:高级字符串格式
- PEP 3105:按Function打印
- PEP 3110:异常处理更改
- PEP 3112:字节 Literals
- PEP 3116:新的 I/O 库
- PEP 3118:修订的缓冲区协议
- PEP 3119:抽象 Base Class
- PEP 3127:整数 Literals 支持和语法
- PEP 3129:类装饰器
- PEP 3141:数字的类型层次结构
- 其他语言变更
- 新增和改进的模块
- 弃用和移除
- Build 和 C API 更改
- 移植到 Python 2.6
- Acknowledgements
- Python 2.5 新增Function
- PEP 308:条件表达式
- PEP 309:部分Function应用
- PEP 314:Python 软件包 v1.1 的元数据
- PEP 328:绝对 import 和相对 import
- PEP 338:将模块作为脚本执行
- PEP 341:统一try/exception/finally
- PEP 342:Generator 的新Function
- PEP 343:“ with”语句
- PEP 352:作为新样式类的异常
- PEP 353:使用 ssize_t 作为索引类型
- PEP 357:“ __ index__”方法
- 其他语言变更
- 新增,改进和删除的模块
- Build 和 C API 更改
- 移植到 Python 2.5
- Acknowledgements
- Python 2.4 新增Function
- Python 2.3 新增Function
- PEP 218:标准集数据类型
- PEP 255:简单生成器
- PEP 263:源代码编码
- PEP 273:从 ZIP 存档导入模块
- PEP 277:Windows NT 的 Unicode 文件名支持
- PEP 278:通用换行支持
- PEP 279:enumerate()
- PEP 282:日志记录程序包
- PEP 285:布尔类型
- PEP 293:编解码器错误处理回调
- PEP 301:Distutils 的软件包索引和元数据
- PEP 302:新的 import 钩子
- PEP 305:以逗号分隔的文件
- PEP 307:pickle 增强Function
- Extended Slices
- 其他语言变更
- 新增,改进和不推荐使用的模块
- Pymalloc:专门的对象分配器
- Build 和 C API 更改
- 其他更改和修复
- 移植到 Python 2.3
- Acknowledgements
- Python 2.2 新增Function
- Python 2.1 的新增Function
- Python 2.0 新增Function
- Changelog
- Python next
- Python 3.8.5 finally版
- Python 3.8.4 finally版
- Python 3.8.4 版本候选 1
- Python 3.8.3 finally版
- Python 3.8.3 发行候选 1
- Python 3.8.2 finally版
- Python 3.8.2 版本候选 2
- Python 3.8.2 版本候选 1
- Python 3.8.1 finally版
- Python 3.8.1 发行候选 1
- Python 3.8.0 finally版
- Python 3.8.0 发行候选 1
- Python 3.8.0 beta 4
- Python 3.8.0 beta 3
- Python 3.8.0 测试版 2
- Python 3.8.0 测试版 1
- Python 3.8.0 alpha 4
- Python 3.8.0 alpha 3
- Python 3.8.0 alpha 2
- Python 3.8.0 alpha 1
- Python 3.7.0 finally版
- Python 3.7.0 发行候选 1
- Python 3.7.0 测试版 5
- Python 3.7.0 测试版 4
- Python 3.7.0 测试版 3
- Python 3.7.0 测试版 2
- Python 3.7.0 测试版 1
- Python 3.7.0 alpha 4
- Python 3.7.0 alpha 3
- Python 3.7.0 alpha 2
- Python 3.7.0 alpha 1
- Python 3.6.6 finally版
- Python 3.6.6 版本候选 1
- Python 3.6.5 finally版
- Python 3.6.5 发行候选 1
- Python 3.6.4 finally版
- Python 3.6.4 发行候选 1
- Python 3.6.3 finally版
- Python 3.6.3 版本候选 1
- Python 3.6.2 finally版
- Python 3.6.2 版本候选 2
- Python 3.6.2 发行候选版本 1
- Python 3.6.1 finally版
- Python 3.6.1 版本候选 1
- Python 3.6.0 finally版
- Python 3.6.0 发行候选 2
- Python 3.6.0 发行候选 1
- Python 3.6.0 beta 4
- Python 3.6.0 beta 3
- Python 3.6.0 测试版 2
- Python 3.6.0 测试版 1
- Python 3.6.0 alpha 4
- Python 3.6.0 alpha 3
- Python 3.6.0 alpha 2
- Python 3.6.0 alpha 1
- Python 3.5.5 finally版
- Python 3.5.5 发行候选 1
- Python 3.5.4 finally版
- Python 3.5.4 发行候选版本 1
- Python 3.5.3 finally版
- Python 3.5.3 发行候选 1
- Python 3.5.2 finally版
- Python 3.5.2 版本候选 1
- Python 3.5.1 finally版
- Python 3.5.1 发行候选版本 1
- Python 3.5.0 finally版
- Python 3.5.0 发行候选版 4
- Python 3.5.0 发行候选 3
- Python 3.5.0 发行候选 2
- Python 3.5.0 发行候选 1
- Python 3.5.0 测试版 4
- Python 3.5.0 测试版 3
- Python 3.5.0 测试版 2
- Python 3.5.0 测试版 1
- Python 3.5.0 alpha 4
- Python 3.5.0 alpha 3
- Python 3.5.0 alpha 2
- Python 3.5.0 alpha 1
- Python 3.8 的新增Function
- Python 教程
- 1.增进食欲
- 2.使用 Python 解释器
- 3. Python 的非正式介绍
- 4.更多控制流程工具
- 5.数据结构
- 6. Modules
- 7.Importing 输出
- 8.错误与异常
- 9. Classes
- 10.标准库简介
- 11.标准库简介—第二部分
- 12.虚拟环境和软件包
- 13.现在怎么办?
- 14.交互式 Importing 编辑和历史记录替换
- 15.浮点算法:问题和局限性
- 16. Appendix
- Python 设置和使用
- Python 语言参考
- 1. Introduction
- 2.词法分析
- 3.资料模型
- 4.执行模式
- 5.导入系统
- 6. Expressions
- 7.简单的 Statements
- 8.复合 Statements
- 9.顶级组件
- 10.完整语法规范
- Python 标准库
- Introduction
- Built-in Functions
- Built-in Constants
- Built-in Types
- Built-in Exceptions
- Literals 处理服务
- 二进制数据服务
- Data Types
- datetime-基本日期和时间类型
- calendar—与 calendar 相关的常规Function
- 集合—容器数据类型
- collections.abc —容器的抽象 Base Class
- heapq —堆队列算法
- bisect —数组二等分算法
- array —有效的数字数组
- weakref —弱引用
- 类型-动态类型创建和内置类型的名称
- 复制—浅复制和深复制操作
- pprint —数据漂亮打印机
- reprlib —备用 repr()实现
- 枚举—支持枚举
- 数值和 math 模块
- Function编程模块
- 文件和目录访问
- Data Persistence
- 数据压缩和存档
- File Formats
- Cryptographic Services
- 通用 os 服务
- os —其他 os 接口
- io-使用流的核心工具
- 时间-时间访问和转化
- argparse —解析器,用于命令行选项,参数和子命令
- getopt —用于命令行选项的 C 样式解析器
- logging-Python 的日志记录工具
- logging.config-日志记录配置
- logging.handlers —日志处理程序
- getpass —便携式密码 Importing
- curses —字符单元显示的终端处理
- curses.textpad — curses 程序的文本 Importing 小部件
- curses.ascii — ASCII 字符的 Util
- curses.panel — curses 的面板集扩展
- 平台—访问底层平台的标识数据
- errno —标准 errno 系统符号
- ctypes — Python 的外部函数库
- Concurrent Execution
- 线程化—基于线程的并行性
- multiprocessing—基于进程的并行性
- multiprocessing.shared_memory —提供共享内存以便跨进程直接访问
- 并发包
- current.futures —启动并行任务
- 子流程-子流程 Management
- sched —事件调度程序
- queue —同步队列类
- _thread —低级线程 API
- _dummy_thread — _thread 模块的直接替换
- dummy_threading —线程模块的直接替换
- contextvars —上下文变量
- 网络和进程间通信
- 异步—异步 I/O
- 套接字—低级网络接口
- ssl —套接字对象的 TLS/SSL 包装器
- 选择—awaitI/O 完成
- selectors—高级 I/O 多路复用
- asyncore —异步套接字处理程序
- asynchat —异步套接字命令/响应处理程序
- signal —设置异步事件的处理程序
- mmap —内存 Map 文件支持
- 互联网数据处理
- email —电子邮件和 MIME 处理包
- email.message:代表电子邮件
- email.parser:解析电子邮件
- email.generator:生成 MIME 文档
- email.policy:策略对象
- email.errors:异常和缺陷类
- email.headerregistry:自定义标题对象
- email.contentmanager:ManagementMIME 内容
- email: Examples
- email.message.Message:使用 compat32 API 表示电子邮件
- email.mime:从头开始创建电子邮件和 MIME 对象
- email.header:国际化标题
- email.charset:代表字符集
- email.encoders: Encoders
- email.utils:其他 Util
- email.iterators: Iterators
- json — JSON 编码器和解码器
- mailcap — Mailcap 文件处理
- 邮箱—处理各种格式的邮箱
- mimetypes —将文件名 Map 到 MIME 类型
- base64 — Base16,Base32,Base64,Base85 数据编码
- binhex —编码和解码 binhex4 文件
- binascii —在二进制和 ASCII 之间转换
- quopri —编码和解码 MIME 引用可打印数据
- uu —编码和解码 uuencode 文件
- email —电子邮件和 MIME 处理包
- 结构化标记处理工具
- html —超文本标记语言支持
- html.parser —简单的 HTML 和 XHTML 解析器
- html.entities — HTML 通用实体的定义
- XML 处理模块
- xml.etree.ElementTree — ElementTree XML API
- xml.dom —文档对象模型 API
- xml.dom.minidom —最小的 DOM 实现
- xml.dom.pulldom —支持构建部分 DOM 树
- xml.sax —支持 SAX2 解析器
- xml.sax.handler — SAX 处理程序的 Base Class
- xml.sax.saxutils — SAXUtil
- xml.sax.xmlreader — XML 解析器的接口
- xml.parsers.expat-使用 Expat 进行快速 XML 解析
- 互联网协议和支持
- webbrowser —方便的 Web 浏览器控制器
- cgi-通用网关接口支持
- cgitb — CGI 脚本的跟踪 Management 器
- wsgiref — WSGIUtil 和参考实现
- urllib — URL 处理模块
- urllib.request —用于打开 URL 的可扩展库
- Request Objects
- OpenerDirector Objects
- BaseHandler Objects
- HTTPRedirectHandler Objects
- HTTPCookieProcessor Objects
- ProxyHandler Objects
- HTTPPasswordMgr Objects
- HTTPPasswordMgrWithPriorAuth Objects
- AbstractBasicAuthHandler Objects
- HTTPBasicAuthHandler Objects
- ProxyBasicAuthHandler Objects
- AbstractDigestAuthHandler Objects
- HTTPDigestAuthHandler Objects
- ProxyDigestAuthHandler Objects
- HTTPHandler Objects
- HTTPSHandler Objects
- FileHandler Objects
- DataHandler Objects
- FTPHandler Objects
- CacheFTPHandler Objects
- UnknownHandler Objects
- HTTPErrorProcessor Objects
- Examples
- Legacy interface
- urllib.request Restrictions
- urllib.response — urllib 使用的响应类
- urllib.parse —将 URL 解析为组件
- urllib.error — urllib.request 引发的异常类
- urllib.robotparser — robots.txt 的解析器
- http — HTTP 模块
- http.client — HTTP 协议 Client 端
- ftplib — FTP 协议 Client 端
- poplib — POP3 协议 Client 端
- imaplib — IMAP4 协议 Client 端
- nntplib — NNTP 协议 Client 端
- smtplib — SMTP 协议 Client 端
- smtpd-SMTP 服务器
- telnetlib — TelnetClient 端
- uuid —符合 RFC 4122 的 UUID 对象
- socketserver —Web Service 器的框架
- http.server — HTTP 服务器
- http.cookies — HTTP 状态 Management
- http.cookiejar — HTTPClient 端的 Cookie 处理
- xmlrpc — XMLRPC 服务器和 Client 端模块
- xmlrpc.client — XML-RPCClient 端访问
- xmlrpc.server —基本的 XML-RPC 服务器
- ipaddress — IPv4/IPv6 操作库
- Multimedia Services
- Internationalization
- Program Frameworks
- 使用 Tk 的图形用户界面
- Development Tools
- 键入-支持类型提示
- pydoc-文档生成器和在线帮助系统
- doctest —测试交互式 Python 示例
- unittest —单元测试框架
- unittest.mock —模拟对象库
- unittest.mock-入门
- 2 to3-自动 Python 2 到 3 代码翻译
- test —用于 Python 的回归测试包
- test.support — Python 测试套件的 Util
- test.support.script_helper — Python 执行测试的 Util
- 调试和分析
- 软件打包和发行
- Python 运行时服务
- 自定义 Python 解释器
- Importing Modules
- Python 语言服务
- Miscellaneous Services
- MS Windows 特定服务
- Unix 特定服务
- Superseded Modules
- Undocumented Modules
- 扩展和嵌入 Python 解释器
- Python/C API 参考手册
- Introduction
- 稳定的应用程序二进制接口
- 高层层
- Reference Counting
- Exception Handling
- Utilities
- 抽象对象层
- 具体对象层
- 初始化,完成和线程
- Python 初始化配置
- Memory Management
- 对象实施支持
- API 和 ABI 版本控制
- 分发 Python 模块
- 安装 Python 模块
- Python HOWTOs
- 将 Python 2 代码移植到 Python 3
- 将扩展模块移植到 Python 3
- 用 Pythoncurses 编程
- Descriptors 操作指南
- 函数式编程指南
- Logging HOWTO
- Logging Cookbook
- 使用登录多个模块
- 从多个线程记录
- 多个处理程序和格式化程序
- 登录到多个目的地
- 配置服务器示例
- 处理阻塞的处理程序
- pass网络发送和接收日志事件
- 将上下文信息添加到日志输出
- 从多个进程登录到单个文件
- 使用文件旋转
- 使用替代格式样式
- Customizing LogRecord
- 子类化 QueueHandler-ZeroMQ 示例
- 子类化 QueueListener-ZeroMQ 示例
- 基于字典的示例配置
- 使用旋转器和命名器来自定义日志旋转处理
- 更详细的 multiprocessing 示例
- 将 BOM 插入到发送到 SysLogHandler 的消息中
- 实施结构化日志
- 使用 dictConfig()自定义处理程序
- 在整个应用程序中使用特定的格式样式
- 使用 dictConfig()配置过滤器
- 自定义异常格式
- 语音记录消息
- 缓冲日志消息并有条件地输出它们
- pass配置使用 UTC(GMT)格式化时间
- 使用上下文 Management 器进行选择性日志记录
- CLI 应用程序入门模板
- 用于记录的 Qt GUI
- 正则表达式操作方法
- 套接字编程方法
- 排序方式
- Unicode HOWTO
- 如何使用 urllib 程序包获取 Internet 资源
- Argparse Tutorial
- ipaddress 模块简介
- Arguments 诊所如何
- Arguments 诊所的目标
- 基本概念和用法
- 转换您的第一个函数
- Advanced Topics
- 符号默认值
- 重命名 Argument Clinic 生成的 C 函数和变量
- 使用 PyArg_UnpackTuple 转换函数
- Optional Groups
- 使用实际的 Argument Clinic 转换器,而不是“旧版转换器”
- Py_buffer
- Advanced converters
- 参数默认值
- NULL 默认值
- 指定为默认值的表达式
- 使用返回转换器
- 克隆现有Function
- 调用 Python 代码
- 使用“自我转换器”
- 编写自定义转换器
- 编写自定义返回转换器
- METH_O 和 METH_NOARGS
- tp_new 和 tp_init 函数
- 更改和重定向诊所的输出
- #ifdef 技巧
- 在 Python 文件中使用 Argument Clinic
- 使用 DTrace 和 SystemTap 检测 CPython
- Python 常见问题
- 通用 Python 常见问题解答
- Programming FAQ
- 设计和历史常见问题
- 为什么 Python 将缩进用于语句分组?
- 为什么pass简单的算术运算会得到奇怪的结果?
- 为什么浮点计算如此不准确?
- 为什么 Python 字符串是不可变的?
- 为什么必须在方法定义和调用中明确使用“自我”?
- 为什么不能在表达式中使用赋值?
- 为什么 Python 为什么将方法用于某些Function(例如 list.index()),却对其他Function(例如 len(list))使用?
- 为什么 join()是字符串方法而不是列表或 Tuples 方法?
- exception 有多快?
- 为什么在 Python 中没有 switch 或 case 语句?
- 您不能在解释器中模拟线程,而不是依赖于特定于 OS 的线程实现吗?
- 为什么 lambda 表达式不能包含语句?
- 可以将 Python 编译为机器代码,C 或其他某种语言吗?
- Python 如何 Management 内存?
- 为什么 CPython 不使用更传统的垃圾回收方案?
- 为什么在 CPython 退出时没有释放所有内存?
- 为什么会有单独的 Tuples 和列表数据类型?
- 如何在 CPython 中实现列表?
- 字典如何在 CPython 中实现?
- 为什么字典键必须是不变的?
- 为什么 list.sort()不返回排序列表?
- 您如何在 Python 中指定和执行接口规范?
- 为什么没有 goto?
- 为什么原始字符串(r-strings)不能以反斜杠结尾?
- 为什么 Python 没有属性分配的“ with”语句?
- 为什么 if/while/def/class 语句需要冒号?
- 为什么 Python 在列表和 Tuples 的末尾允许逗号?
- 库和扩展常见问题
- Extending/Embedding FAQ
- 我可以在 C 中创建自己的函数吗?
- 我可以在 C 中创建自己的函数吗?
- 写 C 很难.还有其他选择吗?
- 如何从 C 执行任意 Python 语句?
- 如何从 C 中评估任意 Python 表达式?
- 如何从 Python 对象提取 C 值?
- 如何使用 Py_BuildValue()创建任意长度的 Tuples?
- 如何从 C 调用对象的方法?
- 如何捕获 PyErr_Print()(或任何打印到 stdout/stderr 的内容)的输出?
- 如何从 C 访问用 Python 编写的模块?
- 如何从 Python 连接到 C 对象?
- 我使用安装文件添加了一个模块,但 make 失败;为什么?
- 如何调试扩展?
- 我想在 Linux 系统上编译 Python 模块,但是缺少一些文件.为什么?
- 如何从“无效 Importing”中分辨出“Importing 不完整”?
- 如何找到未定义的 g 符号__builtin_new 或__pure_virtual?
- 我可以使用在 C 中实现的某些方法和在 Python 中实现的其他方法(例如,pass继承)创建对象类吗?
- Windows 上的 Python 常见问题解答
- 图形用户界面常见问题解答
- “为什么在我的计算机上安装 Python?”常问问题
- Glossary
- 关于这些文件
- 处理错误
- Copyright
- 历史和许可证