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


Groups > comp.lang.python > #82524

Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; "subject:' ": 0.07; 'subject:Error': 0.07; 'subject:Getting': 0.07; 'arguments': 0.09; 'convention,': 0.09; 'subject:Started': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'thread': 0.14; 'windows': 0.15; '1:48': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'separated': 0.16; 'subject:Text': 0.16; 'symbols': 0.16; 'syntactic': 0.16; 'followed': 0.16; 'wrote:': 0.18; "python's": 0.19; 'command': 0.22; 'otherwise,': 0.22; 'cc:addr:python.org': 0.22; 'recognize': 0.24; 'subject:Code': 0.24; 'guys': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'related': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'getting': 0.31; 'probably': 0.32; 'figure': 0.32; "we're": 0.32; 'not.': 0.33; 'subject:from': 0.34; 'basic': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'thanks': 0.36; 'should': 0.36; 'easily': 0.37; 'problems': 0.38; 'structure': 0.39; 'enough': 0.39; 'commands': 0.60; 'most': 0.60; 'new': 0.61; 'telling': 0.64; 'more': 0.64; 'different': 0.65; 'line,': 0.68; 'prompt': 0.68; 'yours': 0.88; 'to:none': 0.92
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:cc :content-type:content-transfer-encoding; bh=uxmT3/rqj3r8+H5sCpW58DMd1cMnr+BL8qIo9n6Tr6I=; b=FgTaJQSE6grl/Z7R/k8HwgIlg1Kg7uODEbm9Q/m8g3VpRIseVO7RvIBs5bROqutOkr nqA6L0eMdimW+ITslwzUSpU2airKJAAUTYLTZpCwtb2cDpKb/nrtqa5rifH8nmAYCdTo nSACVwF1EGUgZUPVD+xyBoP8q6ifc1DkegjFotjqssYdTd1kbDyD+CUySmjqXlXo6xAO BTL1qc2/2QVuuxkMZa/lx2bHSZkIaytGeP2DgQxNzO2BuaGkJBc6WA79jPoRcuSsL7AB lRiCrgLJS7PyT/5PqYfsVTiTjkpDD4uhLPh0ZtbhPrUA5ry3uef4E73XgPI2FVuPnnVm jKRQ==
MIME-Version 1.0
X-Received by 10.50.82.97 with SMTP id h1mr14615829igy.14.1418586074283; Sun, 14 Dec 2014 11:41:14 -0800 (PST)
In-Reply-To <e2a4b5d4-2fd5-4877-95ab-42b0af9cc8d1@googlegroups.com>
References <4a9fc357-d743-471b-87e1-ef3573221816@googlegroups.com> <e2a4b5d4-2fd5-4877-95ab-42b0af9cc8d1@googlegroups.com>
Date Mon, 15 Dec 2014 06:41:14 +1100
Subject Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax'
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
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.16954.1418586083.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418586083 news.xs4all.nl 2877 [2001:888:2000:d::a6]:34496
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82524

Show key headers only | View raw


On Mon, Dec 15, 2014 at 1:48 AM, Simon Evans <musicalhacksaw@yahoo.co.uk> wrote:
> Thanks Guys
> This book keeps swapping from the Python console to the Windows - without telling you, but it is the only book out there on 'Beautiful Soup' so I have got to put up with it. There's more problems with it, but I will start a new thread in regard of, I don't know if its related to the above or not.
> Yours

You may be able to recognize the consoles by their prompts. Python's
console is probably marked with ">>>" or "ipy>" or something, and the
Windows prompt most likely would have a path followed by ">"  (eg
"C:\>"). If the book's followed this convention, then you should be
able to figure things out easily enough once you get used to it.
Otherwise, look at the syntactic style: Windows command line, like
most command shells, uses a basic structure of command and arguments
separated by spaces, while Python uses a lot more symbols and
structural layout characters. But now we're getting into heuristics,
and there are some commands that work equally in Python and in Windows
(and do different things).

ChrisA

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


Thread

Text Code(from 'Getting Started in Beautiful Soup'  re: cd Soup   , returns 'Syntax Error, invalid syntax' Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-12-11 11:21 -0800
  Re: Text Code(from 'Getting Started in Beautiful Soup'  re: cd Soup   , returns 'Syntax Error, invalid syntax' sohcahtoa82@gmail.com - 2014-12-11 11:26 -0800
  Re: Text Code(from 'Getting Started in Beautiful Soup'  re: cd Soup , returns 'Syntax Error, invalid syntax' Dave Angel <davea@davea.name> - 2014-12-11 14:34 -0500
  Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup ,  returns 'Syntax Error, invalid syntax' Chris Angelico <rosuav@gmail.com> - 2014-12-12 06:40 +1100
  Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax' Dave Angel <davea@davea.name> - 2014-12-11 14:46 -0500
  Re: Text Code(from 'Getting Started in Beautiful Soup'  re: cd Soup   , returns 'Syntax Error, invalid syntax' Simon Evans <musicalhacksaw@yahoo.co.uk> - 2014-12-14 06:48 -0800
    Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup ,  returns 'Syntax Error, invalid syntax' Chris Angelico <rosuav@gmail.com> - 2014-12-15 06:41 +1100

csiph-web