Added:
- Callable aliases may now accept a
stack
argument. If they do, then the
stack, as computed from the aliases call site, is provided as a list of
FrameInfo
objects (as detailed in the standard libraryinspect
module). Otherwise, thestack
parameter isNone
. SubprocSpec
now has astack
attribute, for passing the call stack
to callable aliases. This defaults toNone
if the spec does not
need the stack. Theresolve_stack()
method computes thestack
attribute.
Changed:
- xonsh/environ.py
Exceptions are caught in the code executed under Env.swap()
Fixed:
- Scripts are now cached by their realpath, not just abspath.
- Fixed a potential crash (
AssertionError: wrong color format
) on Python 3.5 and prompt_toolkit 1. - The
completer
command now correctly finds completion functions
when nested inside of other functions. - Fixed a crash when using the
$XONSH_STDERR_PREFIX/POSTFIX
with
prompt_toolkit and Pygments 2.2.