Skip to content

Instantly share code, notes, and snippets.

@paultag
Created December 19, 2012 02:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paultag/4333969 to your computer and use it in GitHub Desktop.
Save paultag/4333969 to your computer and use it in GitHub Desktop.
Python in lisp
; vim: tabstop=2 expandtab shiftwidth=2 softtabstop=2 filetype=lisp
; Copyright (c) Paul Tagliamonte, in sofar as any of this is at all
; copyrightable.
(puts "Hello, World!")
; "Hello, World!"
(import ["os"
"sys"])
(puts (os.path.abspath "."))
; None (but "/home/tag/tmp" is written)
(puts sys.argv)
; ['/home/tag/.virtualenvs/hy/bin/hython', 'test.hy']
(sys.stdout.write "Fuggn' test\n")
; None (but "Fuggn' test" is written)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment