xonsh/news/inline_import.rst
Andy Kipp d08248f6aa
builtin: added `__xonsh__.imp` to have an ability to import and use modules immediately in one line (#5595)
* imp

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* imp

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* imp

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: a <1@1.1>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-12 02:21:21 +02:00

25 lines
428 B
ReStructuredText

**Added:**
* builtin: added ``__xonsh__.imp`` to have an ability to import and use modules immediately in one line
e.g. ``__xonsh__.json.loads('{}')``.
In the future ``__xonsh__`` will have short notation ``@`` and the line will looks more elegant ``@.imp.json.loads('{}')``.
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* <news item>
**Security:**
* <news item>