Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'python': 0.11; 'subject:python': 0.16; 'wrote:': 0.18; 'hey': 0.18; 'written': 0.21; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'script.': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.25; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'thanks!': 0.32; 'received:google.com': 0.35; 'module.': 0.36; 'skip:& 10': 0.38; 'to:addr:gmail.com': 0.65; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=x2/0iwNo70A+46HceIKyY826KLkDaJFVijAVjXfiYeo=; b=lEhga70svtZXk2WMAvU6rBNi7+sRp2OMk+hLckiXXWP4v6Y1EphEVJ0SXzMbgma/85 qswoi8tl5UT+tWnbDbPOMXmA3a7vnfUCODBA52AgT25lLraq0U8Ap4xHeHLcSkGykghC QRI8DutKAnOHk7XJXvvdLOBvYv6wnhnhhnPVrrl9Ts2yG36W+ggvvxG7qfMQf9GXRjz1 iKxqeY1jnbhMfZNNOR1C6s+1Ub0+/uc2x9mmd8n6+TQpDqICKc6Oy+PyjKFPGCC4HKnO X4QQu3M/aUQ8ubC/H+/siCLoW4b8wCO6+Qia+Ar+C0zwsUH6/d7FjqGnx4FTK3tcT4k5 g6eA== MIME-Version: 1.0 X-Received: by 10.49.38.106 with SMTP id f10mr12510893qek.59.1368169292249; Fri, 10 May 2013 00:01:32 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 May 2013 08:01:32 +0100 Subject: Re: python call golang From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Thanatos xiao Content-Type: multipart/alternative; boundary=047d7bb044aca85dad04dc57bcf6 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1368169300 news.xs4all.nl 16006 [2001:888:2000:d::a6]:57062 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45087 --047d7bb044aca85dad04dc57bcf6 Content-Type: text/plain; charset=ISO-8859-1 On 10 May 2013 03:37, "Thanatos xiao" wrote: > > Hey ! > > Now! I have written a python script . I want to call a golang script in python script. > Who can give me some advices? > > thanks! Check out the subprocess module. You can use it to call other programs from python and get their error codes and output. --047d7bb044aca85dad04dc57bcf6 Content-Type: text/html; charset=ISO-8859-1


On 10 May 2013 03:37, "Thanatos xiao" <yanxiaopei199@gmail.com> wrote:
>
> Hey !
>
> Now! I have written a python script . I want to call a golang script in python script.
> Who can give me some advices?
>
> thanks!

Check out the subprocess module. You can use it to call other programs from python and get their error codes and output.

--047d7bb044aca85dad04dc57bcf6--