发布日期: 2025-09-26
版本号: v1.75.1

这是 gRPC Core 1.75.1 (gemini) 版本的发布说明,主要包含针对 Python 的改进与修复。具体更新包括:发布支持 Python 3.14 的 grpcio 安装包;修复了 Python 解释器关闭时 gRPC 的竞争条件问题,并解决了相关的空错误信息问题;调整了在 Python 3.14 中于未运行的事件循环外使用 grpc.aio 异步方法时的行为以保持兼容性,同时指出此类用法不被推荐且将在未来版本中被弃用。完整的变更记录可通过 GitHub 比较链接查看。

更新内容 (中文)

这是 gRPC Core 1.75.1 版本(代号 gemini)的发布说明。

gRPC 文档请访问 grpc.io。历史版本请参阅 发布记录

本版本包含改进、优化和错误修复。

变更内容

Python

  • 发布支持 Python 3.14 的 grpcio 轮子包 (#40403)
  • 异步IO:修复了在 Python 解释器终止期间发生的 gRPC 关闭竞态条件问题 (#40447)
    • 此修复同时解决了此前报告的 Python 解释器退出时空错误消息问题(Error in sys.excepthook:/Original exception was: 为空):#36655、#38679、#33342
  • Python 3.14:在非运行事件循环环境中使用 grpc.aio 异步方法时保持当前行为不变 (#40750)
    • 注意:在非运行事件循环环境中使用异步方法是 Python 不推荐 的做法,未来 gRPC 版本中将弃用此功能。请使用 asyncio.run() 函数(或针对自定义循环工厂使用 asyncio.Runner)。交互模式请使用专用 asyncio REPLpython -m asyncio

完整变更日志:https://github.com/grpc/grpc/compare/v1.75.0…v1.75.1

更新内容 (原始)

This is release gRPC Core 1.75.1 (gemini).

For gRPC documentation, see grpc.io. For previous releases, see Releases.

This release contains refinements, improvements, and bug fixes.

What’s Changed

Python

  • Release grpcio wheels with Python 3.14 support (#40403)
  • Asyncio: fixes grpc shutdown race condition occurring during python interpreter finalizations. (#40447)
    • This also addresses previously reported issues with empty error message on Python interpreter exit (Error in sys.excepthook:/Original exception was: empty): #36655, #38679, #33342
  • Python 3.14: preserve current behavior when using grpc.aio async methods outside of a running event loop. (#40750)
    • Note: using async methods outside of a running event loop is discouraged by Python, and will be deprecated in future gRPC releases. Please use the asyncio.run() function (or asyncio.Runner for custom loop factories). For interactive mode, use dedicated asyncio REPL: python -m asyncio.

Full Changelog: https://github.com/grpc/grpc/compare/v1.75.0...v1.75.1

下载链接