RE: simplified Python parsing question

2012-07-30 Thread Paul van der Linden
Another possibility is to use the ast module of python: http://docs.python.org/library/ast.html The only problem with that module, is that everything you parse must be correct, otherwise it throws an exception, I don't know if that's a problem for your project?   -Original message- From

RE: Linux shell to python

2012-07-30 Thread Paul van der Linden
You can do this with one subprocess.Popen and some python commands. The alternative is to pipe some subprocess.Popen commands together. Or for the quick way out (but I think you better stick with bash scripting then): http://pypi.python.org/pypi/sarge/ Don't know about it's stability/ubs/etc, n

Re: Is Python a commercial proposition ?

2012-07-29 Thread Paul van der Linden
Scripting is one of the strong sides of python. I use it al the time to quickly write a script to analyze something or automate. That is probably the reason it is used to glue (script) things together and is embedded in some programs (like Maya and such). At the company we're using python and d