<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Try this:</div><div><br></div><a href="https://github.com/rongarret/ergolib">https://github.com/rongarret/ergolib</a><div><br></div><div>(load “init”)</div><div>(require :pylink)</div><div>(py “print 123”)</div><div><br></div><div><div><div>On Oct 1, 2014, at 3:50 PM, Mark Klein <m_klein@MIT.EDU> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div><br>
</div>
Hi,
<div><br>
</div>
<div>I’d like to create input and output streams that connect with the python interpreter that comes included with Mac OS X so I can invoke python subroutines from lisp and get the results. Does anyone have any suggestions about how that can be done? I see
that Clozure allows running other programs as subprocesses (<a href="http://ccl.clozure.com/ccl-documentation.html#Running-Other-Programs-as-Subprocesses">http://ccl.clozure.com/ccl-documentation.html#Running-Other-Programs-as-Subprocesses</a>) but it’s not
clear to me if I can use that to interact with a program like python, as oppose to simply invoking a program like “cat” and getting the results it returns when it completes.</div>
<div><br>
</div>
<div>Thanks for your help!</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Mark</div>
<div><br>
<div apple-content-edited="true">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="orphans: 2; widows: 2;">-------------------------------<br>
Mark Klein<br>
<a href="http://cci.mit.edu/klein">http://cci.mit.edu/klein</a></div>
<div style="orphans: 2; widows: 2;"><br>
Principal Research Scientist<br>
Center for Collective Intelligence<br>
Massachusetts Institute of Technology<br>
<br>
Visiting Researcher<br>
Dynamic and Distributed Information Systems Group<br>
University of Zurich</div>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<br>Openmcl-devel mailing list<br>Openmcl-devel@clozure.com<br>http://lists.clozure.com/mailman/listinfo/openmcl-devel<br></blockquote></div><br></div></body></html>