You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing a line containing a dict that has a list (or tuple) as a value, xonsh crashes.
bollmann@underberg ~/repositories/xonsh master >>> {'foo': ['a', 'b']}
Traceback (most recent call last):
File "/usr/local/bin/xonsh", line 12, in <module>
exec(compile(open(__file__).read(), __file__, 'exec'))
File "/home/bollmann/repositories/xonsh/scripts/xonsh", line 3, in <module>
main()
File "/home/bollmann/repositories/xonsh/xonsh/main.py", line 25, in main
shell.cmdloop()
File "/home/bollmann/repositories/xonsh/xonsh/shell.py", line 152, in cmdloop
super(Shell, self).cmdloop(intro=intro)
File "/usr/lib/python3.4/cmd.py", line 138, in cmdloop
stop = self.onecmd(line)
File "/usr/lib/python3.4/cmd.py", line 211, in onecmd
return self.default(line)
File "/home/bollmann/repositories/xonsh/xonsh/shell.py", line 105, in default
code = self.push(line)
File "/home/bollmann/repositories/xonsh/xonsh/shell.py", line 126, in push
locs=self.ctx)
File "/home/bollmann/repositories/xonsh/xonsh/execer.py", line 87, in compile
code = compile(tree, self.filename, mode)
ValueError: Dict doesn't have the same number of keys as values
bollmann@underberg ~/repositories/xonsh (master) $
Other nested structures seem to work fine. Putting the list in a variable first and then constructing the dict also works fine.
When parsing a line containing a dict that has a list (or tuple) as a value, xonsh crashes.
Other nested structures seem to work fine. Putting the list in a variable first and then constructing the dict also works fine.
The text was updated successfully, but these errors were encountered: