octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pytave: adding exec and eval commands


From: Colin Macdonald
Subject: pytave: adding exec and eval commands
Date: Wed, 9 Mar 2016 23:19:00 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Hi Mike Miller (and others interested in Pytave),

I played around a bit with Pytave and Symbolic:

1.  I added `pyexec` and `pyeval` commands which mirror the
`exec`/`eval` commands in Python.  See the "execeval" branch here:

https://bitbucket.org/macdonald/pytave/branch/execeval


2.  It was then straightforward to get Symbolic to use these instead of
popen2:

https://github.com/cbm755/octsympy/pull/374

(preliminary!)


3.  Mike: here's a small commit adds "help py":

https://bitbucket.org/macdonald/pytave/commits/2d9db88da67a92401133fec302f9bda3f7aa587e

One could probably do better examples: its just some of the test cases I
used when I was debugging/learning how the `py` command was supposed to
work.  Later, we'll need a way for those commands using `__builtin__.`
to work without that!

best,
Colin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]