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'

References <4a9fc357-d743-471b-87e1-ef3573221816@googlegroups.com> <e2a4b5d4-2fd5-4877-95ab-42b0af9cc8d1@googlegroups.com>
Date 2014-12-15 06:41 +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>
Newsgroups comp.lang.python
Message-ID <mailman.16954.1418586083.18130.python-list@python.org> (permalink)

Show all headers | 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