Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'things.': 0.05; 'python': 0.09; 'subject:method': 0.09; 'url:faqs': 0.09; 'read.': 0.13; "skip:' 30": 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'saying.': 0.16; 'slashes': 0.16; 'url:catb': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'subject:page': 0.17; 'jan': 0.18; 'work.': 0.23; 'sets': 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'received:209.85.212': 0.28; 'figure': 0.30; 'expect': 0.31; 'int': 0.33; 'subject: .': 0.33; 'to:addr:python-list': 0.33; 'knowledge': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'url:org': 0.36; 'why': 0.37; 'received:209': 0.37; 'far': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'your': 0.60; 'skip:u 10': 0.60; "you'll": 0.62; 'back': 0.62; 'is.': 0.62; 'between': 0.63; 'pin': 0.65; '2013': 0.84; 'subject:Using': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=FnxPWDplPrwycsosFNj3uu6vgS1a8HzQbqj6kHZ+Mck=; b=MHrf+F6ltDzffjWNGrIIU6Lamj1vJxEJQoU0HZppXDDVPaaxB8lfGXSLjB9BogR66r 2DV/KyjL5uVdiuw7tYpq0BA+KIYq8jG8PElXrDagnisro+2haqKWVSRLVZA+ddz/1yyl /AMEK3UyCnGTBN0YkNn5bScAzeJiiQD++oI1EQalXZWZPMrb7kq1g8W1JJGuDK3cc0w5 diaRjvqmgUpTf92MF/26pQ6CBEaPgWP952ERiWM0joo1WgwU8V5Ml6ywDfv99ykMg3iT 0K08DMsRo4wvGP0Mp+PCXmbD1hYgHBmYrnQp7N2tvIGxUoBpv3pt4Ind566jAlLWIUSB mjBA== MIME-Version: 1.0 X-Received: by 10.52.178.225 with SMTP id db1mr794241vdc.10.1358868466050; Tue, 22 Jan 2013 07:27:46 -0800 (PST) In-Reply-To: <71c5445b-8100-42fb-bcfd-6b0a0886b46e@googlegroups.com> References: <50fe787e$0$30003$c3e8da3$5496439d@news.astraweb.com> <50fe8e69$0$30003$c3e8da3$5496439d@news.astraweb.com> <0459659d-4ec2-4c7d-bee3-b4e363c916dd@googlegroups.com> <71c5445b-8100-42fb-bcfd-6b0a0886b46e@googlegroups.com> Date: Wed, 23 Jan 2013 02:27:45 +1100 Subject: Re: Using filepath method to identify an .html page From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358868474 news.xs4all.nl 6944 [2001:888:2000:d::a6]:48714 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37285 On Wed, Jan 23, 2013 at 2:21 AM, Ferrous Cranus wrote: > Why the hell > > pin = int ( '/home/nikos/public_html/index.html' ) > > fails? because it has slashes in it? What do you expect it to return? 141592653589793? Go through the Python tutorial. Better yet, find a book that distinguishes between technology and magic, and sets out clearly what each one's field is. Then go here, and read. http://www.catb.org/esr/faqs/smart-questions.html Then go back to your project. Have another shot at things. Put your new-found knowledge and understanding to work. You'll be far better able to figure things out, and better able to understand what we've all been saying. ChrisA