Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'great.': 0.07; 'modified': 0.07; 'subject:Questions': 0.07; 'utf-8': 0.07; 'gnuplot': 0.09; 'typed': 0.09; 'uses.': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'posted': 0.15; 'windows': 0.15; '.py': 0.16; 'basic.': 0.16; 'capability.': 0.16; 'combinations': 0.16; 'dislike': 0.16; 'old-style': 0.16; 'pressing': 0.16; 'wsgi': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'drawing': 0.19; 'possible,': 0.19; "python's": 0.19; 'thu,': 0.19; 'example': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; '31,': 0.24; 'comparing': 0.24; 'instead.': 0.24; 'proxy': 0.24; 'connected': 0.24; 'math': 0.24; 'versions': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'compared': 0.30; 'programming.': 0.30; 'message- id:@mail.gmail.com': 0.30; 'that.': 0.31; 'adequate': 0.31; 'cgi': 0.31; 'libraries': 0.31; 'perl': 0.31; 'yes.': 0.31; 'probably': 0.32; 'languages': 0.32; 'run': 0.32; 'community': 0.33; 'running': 0.33; 'moment': 0.34; 'sense': 0.34; 'knowledge': 0.35; 'basic': 0.35; 'display': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'programming,': 0.36; 'doing': 0.36; 'entry': 0.36; 'possible': 0.36; 'example,': 0.37; 'operating': 0.37; 'server': 0.38; 'depends': 0.38; 'presently': 0.38; 'files': 0.38; 'does': 0.39; 'use.': 0.39; 'how': 0.40; 'liked': 0.60; 'most': 0.60; 'from:charset:utf-8': 0.61; 'simply': 0.61; 'act': 0.63; 'information': 0.63; 'such': 0.63; 'myself': 0.63; 'our': 0.64; 'different': 0.65; 'relatively': 0.65; 'skip:\xe2 10': 0.65; 'subject:. ': 0.67; 'believe': 0.68; 'internet': 0.71; 'computers': 0.72; '8bit%:43': 0.74; 'calculations': 0.84; 'charts': 0.84; 'expose': 0.84; 'site?': 0.84; 'imagine': 0.93; 'subject:2013': 0.95; 'url:tk': 0.95; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=zAO++zLbamNhPmsYJeI1bdvLk/v7SPUlb0h9AdhZWBs=; b=IYjJD7ywtw/Ul1wzdb0HSfWsLeKao9m5dJSHd2jdnCVTps9pTiiFHhAqvMF4DQolBF UFnQxohYTNPCycuW9J0o/01e6B303Txse4CXnj+G7uFTimonjuBqlgHTxISxY9umhcn5 o+fSVzxDLNg3A91Q9VC7UDT78obtwGWRb8QaRvdf5AePc36OQBlzEjQ9ii/TSkzOLQtc AMkSTsQpnb/XxptUaMc5lQOL/Jxs50WErtGwv+jw9iYlXb47EaqjJz5f6N60c/0ck5rU 5mPQtgpsMTGmpXoM4Z8HhCT/DJDa06N5DCVqxsjLD9ym277Tbf6qc2xD9PwPQZ2bq3r7 4O1w== MIME-Version: 1.0 X-Received: by 10.50.153.50 with SMTP id vd18mr6097669igb.6.1383213781566; Thu, 31 Oct 2013 03:03:01 -0700 (PDT) In-Reply-To: References: Date: Thu, 31 Oct 2013 11:03:01 +0100 Subject: Re: Basic Python Questions - Oct. 31, 2013 From: =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= To: "E.D.G." Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 61 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383213790 news.xs4all.nl 15868 [2001:888:2000:d::a6]:59927 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58159 On Thu, Oct 31, 2013 at 10:31 AM, E.D.G. wrote: > Posted by E.D.G. on October 31, 2013 > > The following are several relatively basic questions regarding > Python's capabilities. I am not presently using it myself. At the momen= t a > number of people including myself are comparing it with other programs su= ch > as XBasic for possible use. > > 1. How fast can Python do math calculations compared with other language= s > such as Fortran and fast versions of Basic. I would have to believe that= it > is much faster than Perl for doing math calculations. Depends on what do you want to calculate. Also, note that Python is liked by the scientific community to use for calculations. This might be a hint. > 2. Can Python be used to create CGI programs? These are the ones that r= un > on Internet server computers and process data submitted through Web site > data entry screens etc. I know that Perl CGI programs will do that. Yes. Although most people in the Python community dislike the old-style =E2=80=9CCGI=E2=80=9D and use =E2=80=9Cweb apps=E2=80=9D instead.= They are also connected with a different philosophy, for example we do not store .py files in /cgi-bin/, we never expose our .py files and put it somewhere else on the system and let the web server act as a proxy to a WSGI server (gunicorn/uwsgi). > 3. If Python can be used for CGI programming, can it draw charts such as > .png files that will then display on Web pages at a Web site? Yes, but you need to install additional libraries for that. > 4. How well does Python work for interactive programming. For example, = if > a Python program is running on a PC and is drawing a chart, can that char= t > be modified by simply pressing a key while the Python program is running.= I > have Perl and Gnuplot program combinations that can do that. Their > interactive speed is not that great. But it is adequate for my own uses. Doable, but I cannot give you any information on the speed. > 5. Can a running Python program send information to the Windows operatin= g > system as if it were typed in from the keyboard? Perl can do that and I > would imagine that Python probably has that same capability. Definitely possible, but might take you a bit of work and knowledge of Windows internals (go ask Google). --=20 Chris =E2=80=9CKwpolska=E2=80=9D Warrick PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense