Advertisement
chemoelectric

Pure and Python embedded in Guile

Jan 16th, 2013
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. (import (sortsmillff pure)
  2. (sortsmillff python))
  3.  
  4. (pure-eval
  5. using system;
  6. fprintf stderr "This is a test\nof embedded Pure code.\n" ();
  7. »#)
  8.  
  9. (PyRun_SimpleString
  10. (string->pointer
  11. import sys
  12. print "This is a test\nof embedded Python code."
  13. print globals ()
  14. »#
  15. ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement