Skip to content

Instantly share code, notes, and snippets.

@jacob-ogre
Created June 19, 2013 18:47
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 jacob-ogre/5816836 to your computer and use it in GitHub Desktop.
Save jacob-ogre/5816836 to your computer and use it in GitHub Desktop.
Python:Write file using with_open_as_out syntax
<snippet>
<content><![CDATA[
with open(${1:fil}, 'wb') as ${2:out}:
${3:code}
]]></content>
<tabTrigger>write</tabTrigger>
<scope>source.python</scope>
<description>WithOpenOut</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment