Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43371

Re: Return a value from a function result

References <CAM6w3npKeR8=A807TbW=YeTcRW-tg4fUPMEh_vAegTg3WijEWA@mail.gmail.com>
Date 2013-04-12 00:00 +1000
Subject Re: Return a value from a function result
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.475.1365688815.3114.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Apr 11, 2013 at 7:06 PM, Ombongi Moraa Fe
<moraa.lovetakes2@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Return a value from a function result Chris Angelico <rosuav@gmail.com> - 2013-04-12 00:00 +1000

csiph-web