mirror of
https://github.com/python/cpython.git
synced 2026-04-15 08:11:10 +00:00
9 lines
225 B
Python
9 lines
225 B
Python
# Test that globals() returns lazy proxy objects without reifying
|
|
lazy import test.test_lazy_import.data.basic2 as basic2
|
|
|
|
def get_from_globals():
|
|
g = globals()
|
|
return g['basic2']
|
|
|
|
def get_direct():
|
|
return basic2
|