Return a value from a function result

Chris Angelico rosuav at gmail.com
Thu Apr 11 10:00:12 EDT 2013


On Thu, Apr 11, 2013 at 7:06 PM, Ombongi Moraa Fe
<moraa.lovetakes2 at gmail.com> wrote:
> My perl script "a.pl" calls python script "b.py" and passes arguments to it;
> expecting a return value;

Can you clarify this part, please? What kind of "return value" is your
Perl script expecting? Presumably you actually mean something written
to stdout; what format? How do you decode it?

Ultimately, stdout is simply a stream of bytes, though with some small
magic you can treat it as a string of characters. All its meaning is
between the sender and receiver.

ChrisA



More information about the Python-list mailing list