Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:text': 0.04; 'escape': 0.07; "subject:' ": 0.07; 'subject:code': 0.07; 'cc:addr :python-list': 0.09; 'subject:Getting': 0.09; 'subject:Why': 0.09; 'subject: \n ': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'string:': 0.16; 'subject:Started': 0.16; 'wrote:': 0.16; 'string': 0.17; 'subject:page': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'disable': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'raw': 0.27; 'message-id:@mail.gmail.com': 0.27; '13,': 0.29; 'received:google.com': 0.35; 'subject:: ': 0.37; 'subject:with': 0.40; 'your': 0.60; 'forward': 0.66; 'jul': 0.72; 'chrisa': 0.84; 'to:none': 0.91 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; bh=Q6vI5k6FZSIBrWzptgVahO4dJEnXUrNcdSjm4QZUZ7Y=; b=JTXkeFLIeuWX8wLeSYkj28v0WpdrGozbp1jHWAr7h+WoUGoy7JUkfbDbNzXqs16Q8u yMO+VKMjeO7GGpVj9YMayidJqQQnuh/hPKjcNFwBp6pQeZl5OAV6uEA6PKA8d/m0wtWj sJq153098cOLzNyMcHoWSJlcfmrBNuE2qpOHvkSEqAy1YJHngn3t5HnZPwDPBJcKDJO+ aSO9tdATLbAK4YfkxSXxJvH7rJ0BZeCa32Wfaah3l9kHHgtr/LFQR3XhcUl1zHPcuBk3 1rYCFJApVYjrKgz+ZQZHwUOpIZsIms5KyWFSJnHG4YiEEFWZ/FpEuIZpJAoReGWn7yFM xbIA== MIME-Version: 1.0 X-Received: by 10.50.114.9 with SMTP id jc9mr8811495igb.56.1436723916601; Sun, 12 Jul 2015 10:58:36 -0700 (PDT) In-Reply-To: <55a2a9b9$0$2970$426a74cc@news.free.fr> References: <55a2a9b9$0$2970$426a74cc@news.free.fr> Date: Mon, 13 Jul 2015 03:58:36 +1000 Subject: Re: Why doesn't input code return 'plants' as in 'Getting Started with Beautiful Soup' text (on page 30) ? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1436723920 news.xs4all.nl 2890 [2001:888:2000:d::a6]:58932 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:93739 On Mon, Jul 13, 2015 at 3:54 AM, Laurent Pointal wrote: > Double \ in your string: > "C:\\Beautiful Soup\\ecologicalpyramid.html" > > Or use a raw string by prepending a r to disable escape sequences: > r"C:\Beautiful Soup\ecologicalpyramid.html" Or use forward slashes: "C:/Beautiful Soup/ecologicalpyramid.html" ChrisA