Skip to content

Instantly share code, notes, and snippets.

@bassdread
Created September 8, 2011 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bassdread/1204542 to your computer and use it in GitHub Desktop.
Save bassdread/1204542 to your computer and use it in GitHub Desktop.
>>> f = open('tmp.ls', 'w')
>>> f
<open file 'tmp.ls', mode 'w' at 0x1a899c0>
>>> p = Popen(args,stdout=f)
>>> p
<subprocess.Popen object at 0x1af5190>
>>> f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment