Possible Duplicate:
Running shell command from python and capturing the output
When I want to capture shell execution output, I do this.
declare TAGNAME=`git describe --tags`
Simple. I looked for this in Python, but most of them looks very complex. What's the simplest way to do this? Yeah I know I can make a function, but I want to know pre-defined function if it is exist.
tagname = theFunc('git describe --tags')