![]() IMO, extra features and syntax doesn't always improve something. As soon as you start really taking advantage of the xonsh syntax and new features, I'd imagine you're going to end up with something that looks like python with inline bad perl. Something like sh.echo(x + ' ' + y) looks a lot less intimidating, and is actually easier to write and read. I really don't want to start writing python with stuff like out = $(echo + ' ' + y)), pulled straight from the xonsh tutorial. The capabilities are neat with the xonsh syntax, but it's also starting to look a little perl-ish, and not in a good way. And I can package that up and share it with anyone. Otherwise, I might have to rewrite it to run it on a server or to give to my coworker.Īnd it's not impossible to write python scripts that are shell-like with something like the sh library. I'd rather spend time doing it the long way in python than the quick way in xonsh with special syntax. I don't think xonsh would be any different. ![]() It looks very convenient in some respects for personal use, but anything more complex than "run this, pipe to this, redirect output to here" I would write a python script. Why not just write something in Python with less functionality but can be run on any server, by any coworker, without any dependencies, and allows coworkers to actually be able to edit it and run it on their workstation? It's like using some obscure fork of a python interpreter and writing scripts that only work for it, and not your coworkers. It's basically python with new shell operators. Instead of writing xonsh scripts that I can never share with my coworkers, I could just write python scripts like I do now. If your server could run xonsh out of the box, it'd be convenient to use. If a distro had all its system tools in python and xonsh, you'd have much more reason to stick to it. I think he is inferring that it's not very practical to use a different shell than what all the tools are based on in your distro, which is also going to be what your servers can use. Load_entry_point('xonsh=0.3.2', 'console_scripts', 'xonsh')()įile "/usr/lib/python3.5/site-packages/xonsh/main.py", line 254, in mainįile "/usr/lib/python3.5/site-packages/xonsh/readline_shell.py", line 325, in cmdloopįile "/usr/lib/python3.5/site-packages/xonsh/readline_shell.py", line 285, in _cmdloopįile "/usr/lib/python3.5/site-packages/xonsh/readline_shell.py", line 183, in singlelineįile "/usr/lib/python3.5/site-packages/xonsh/readline_shell.py", line 357, in promptįile "/usr/lib/python3.5/site-packages/xonsh/ansi_colors.py", line 46, in partial_color_formatįor literal, field, spec, conv in formatter.parse(template): ValueError: expected '}' before end of string Was still a problem two days ago with a pip package.Įdit: still a think w/ archlinux aur package: Thanks for using the xonsh configuration wizard! Introduction to Programming with Python (from Microsoft Virtual Academy)Įxception on first run preventing any use of she'll for instance./r/git and /r/mercurial - don't forget to put your code in a repo!. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |