Added .. versionadded: 0.9.13 and quoted the arguments. Also added

missing true for python code generation example.

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>
This commit is contained in:
Vasudev Kamath 2014-01-05 19:55:41 +05:30
parent 1bdf0d04c3
commit 5b3f6879c6

View File

@ -34,10 +34,12 @@ Raises ``TypeError`` if ``(not (numeric? x))``.
disassemble
-----------
.. versionadded:: 0.9.13
Usage: ``(disassemble tree &optional [codegen false])``
Dump the Python AST for given Hy tree to standard output. If codegen
is true function prints Python code instead.
Dump the Python AST for given Hy ``tree`` to standard output. If *codegen*
is ``true`` function prints Python code instead.
.. code-block:: clojure
@ -46,7 +48,7 @@ is true function prints Python code instead.
body=[
Expr(value=Call(func=Name(id='print'), args=[Str(s='Hello World!')], keywords=[], starargs=None, kwargs=None))])
=> (disassemble '(print "Hello World!"))
=> (disassemble '(print "Hello World!") true)
print('Hello World!')