Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
12
venv/lib/python3.12/site-packages/sympy/utilities/magic.py
Normal file
12
venv/lib/python3.12/site-packages/sympy/utilities/magic.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
"""Functions that involve magic. """
|
||||
|
||||
def pollute(names, objects):
|
||||
"""Pollute the global namespace with symbols -> objects mapping. """
|
||||
from inspect import currentframe
|
||||
frame = currentframe().f_back.f_back
|
||||
|
||||
try:
|
||||
for name, obj in zip(names, objects):
|
||||
frame.f_globals[name] = obj
|
||||
finally:
|
||||
del frame # break cyclic dependencies as stated in inspect docs
|
||||
Loading…
Add table
Add a link
Reference in a new issue