Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #+NAME: int
  2. #+BEGIN_SRC python :results value
  3. return [1, 2, 3]
  4. #+END_SRC
  5.  
  6. #+NAME: print_table_info
  7. #+BEGIN_SRC python :var table=[]
  8. print "type = {}".format(type(table))
  9. print "table = {}".format(table)
  10. #+END_SRC
  11.  
  12. #+CALL: print_table_info(table=int) :results output
  13.  
  14. #+RESULTS:
  15. : type = <type 'list'>
  16. : table = [1, 2, 3]
  17.  
  18. #+BEGIN_SRC emacs-lisp :results output
  19. (org-sbe print_table_info ":results output" (table (org-sbe int)))
  20. #+END_SRC
  21.  
  22. #+RESULTS:
  23. :
  24. : (results (quote (1 2 3)))
  25. :
  26. : (results (type = <type 'str'>
  27. : table = (1 2 3)
  28. : "))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement