Skip to content

Commit a103890

Browse files
committed
Note that resolve() doesn't cache
1 parent 0fbd075 commit a103890

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Doc/library/types.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ Standard names are defined for the following types:
373373
lazy import json
374374
json = globals()["json"].resolve()
375375

376+
Each call to :func:`!resolve` call does a fresh import.
377+
The proxy itself does not store :func:`!resolve`'s result,
378+
relying on the import mechanism to use :attr:`sys.modules`
379+
to reuse modules that have already been imported.
376380

377381
.. class:: GetSetDescriptorType
378382

0 commit comments

Comments
 (0)