python/python-docs-zh-cn

[Typo]: 编程常见问题中“生存期”误译为“生存其”

Closed this issue · 1 comments

Python Version

3.13

Docs Page

https://docs.python.org/zh-cn/3/faq/programming.html#how-do-i-cache-method-calls

Original Translation

cached_property 方式仅适用于不接受任何参数的方法。 它不会创建对实例的引用。 被缓存的方法结果将仅在实例的生存其内被保留。

Original Docs Paragraph

The cached_property approach only works with methods that do not take any arguments. It does not create a reference to the instance. The cached method result will be kept only as long as the instance is alive.

Suggested Fix

“生存其”应为“生存期”

Fixed.

感谢反馈❤