Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork81
Closed
Labels
Description
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
“生存其”应为“生存期”