You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
“生存其”应为“生存期”
The text was updated successfully, but these errors were encountered:
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
“生存其”应为“生存期”
The text was updated successfully, but these errors were encountered: