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


Groups > comp.lang.python > #62961

Re: Python 2.x and 3.x usage survey

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'languages,': 0.04; 'syntax': 0.04; 'subject:Python': 0.06; 'steve': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'jan': 0.12; '.py': 0.16; 'hayes': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:usage': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; '>>>': 0.22; 'shell': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'dos': 0.30; '"",': 0.31; 'file': 0.32; 'worked': 0.33; '+0200,': 0.36; 'two': 0.37; 'to:addr:python-list': 0.38; 'previous': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'more': 0.64; 'different': 0.65; 'world': 0.66; 'prompt': 0.68; 'hey,': 0.75; 'received:myvzw.com': 0.84; 'subject:survey': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dave Angel <davea@davea.name>
Subject Re: Python 2.x and 3.x usage survey
Date Wed, 01 Jan 2014 09:32:37 -0500
References <mailman.4731.1388440598.18130.python-list@python.org> <hqr7c9dce9krvt7rm49ujptl4dl9mr68gl@4ax.com> <52c3fe0b$0$29984$c3e8da3$5496439d@news.astraweb.com> <th28c95ouhqmicaerkor4sf1l9vv4gv4ub@4ax.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host 195.sub-70-208-158.myvzw.com
In-Reply-To <th28c95ouhqmicaerkor4sf1l9vv4gv4ub@4ax.com>
User-Agent Groundhog Newsreader for Android
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4780.1388586674.18130.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388586674 news.xs4all.nl 2951 [2001:888:2000:d::a6]:42408
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62961

Show key headers only | View raw


On Wed, 01 Jan 2014 14:38:59 +0200, Steve Hayes 
<hayesstw@telkomsa.net> wrote:
> >>> python g:\work\module1.py
>   File "<stdin>", line 1
>     python g:\work\module1.py
>            ^


> Which gave a different error the previous time I did it. 


> But, hey, it worked from the DOS prompt


> C:\Python32>python g:\work\module1.py
> Hello Module World

You need to understand that you are using two VERY different 
languages,  one at the DOS prompt,  the other at the python prompt 
and in .py files. You cannot use shell syntax at the python prompt, 
any more than you can do the reverse.

-- 
DaveA

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


Thread

Python 2.x and 3.x usage survey Dan Stromberg <drsalists@gmail.com> - 2013-12-30 13:56 -0800
  Re: Python 2.x and 3.x usage survey Steve Hayes <hayesstw@telkomsa.net> - 2014-01-01 12:41 +0200
    Re: Python 2.x and 3.x usage survey Chris Angelico <rosuav@gmail.com> - 2014-01-01 21:52 +1100
    Re: Python 2.x and 3.x usage survey Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-01 22:37 +1100
      Re: Python 2.x and 3.x usage survey Steve Hayes <hayesstw@telkomsa.net> - 2014-01-01 14:38 +0200
        Re: Python 2.x and 3.x usage survey Chris Angelico <rosuav@gmail.com> - 2014-01-01 23:39 +1100
        Re: Python 2.x and 3.x usage survey Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-01 12:44 +0000
        Re: Python 2.x and 3.x usage survey David <bouncingcats@gmail.com> - 2014-01-02 01:07 +1100
          Re: Python 2.x and 3.x usage survey Steve Hayes <hayesstw@telkomsa.net> - 2014-01-01 19:55 +0200
        Re: Python 2.x and 3.x usage survey Dave Angel <davea@davea.name> - 2014-01-01 09:32 -0500
    Re: Python 2.x and 3.x usage survey Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-01 12:54 -0500
  Re: Python 2.x and 3.x usage survey John Ladasky <john_ladasky@sbcglobal.net> - 2014-01-10 09:36 -0800
    Re: Python 2.x and 3.x usage survey Ned Batchelder <ned@nedbatchelder.com> - 2014-01-10 12:48 -0500
      Re: Python 2.x and 3.x usage survey John Ladasky <john_ladasky@sbcglobal.net> - 2014-01-10 11:43 -0800
        Re: Python 2.x and 3.x usage survey MRAB <python@mrabarnett.plus.com> - 2014-01-10 19:53 +0000
        Re: Python 2.x and 3.x usage survey Ned Batchelder <ned@nedbatchelder.com> - 2014-01-10 14:50 -0500
    Re: Python 2.x and 3.x usage survey Ethan Furman <ethan@stoneleaf.us> - 2014-01-10 10:02 -0800

csiph-web