Skip to content

Instantly share code, notes, and snippets.

@Flameeyes
Created June 16, 2015 00:00
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 Flameeyes/109f9cfb803c4c562bac to your computer and use it in GitHub Desktop.
Save Flameeyes/109f9cfb803c4c562bac to your computer and use it in GitHub Desktop.
Python 2.7.9 (default, Dec 25 2014, 11:17:50)
[GCC 4.8.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> class Foo(object):
... pass
...
>>> yaml.dump(Foo())
'!!python/object:__main__.Foo {}\n'
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment