[issue42836] docs: struct: clarify struct caching behaviour

2021-01-07 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +22992 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24164 ___ Python tracker

[issue42836] docs: struct: clarify struct caching behaviour

2021-01-06 Thread Sandeep Subramanian
New submission from Sandeep Subramanian : As per docs in :https://docs.python.org/3.7/library/struct.html#struct.Struct > The compiled versions of the most recent format strings passed to Struct and > the module-level functions are cached, so programs that use only a few format > strings