Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'path)': 0.09; 'subject:method': 0.09; '4-digit': 0.16; 'decimal.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sense,': 0.16; 'thread.': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'subject:page': 0.17; 'jan': 0.18; 'header:In-Reply-To:1': 0.25; '[1]': 0.27; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'convert': 0.29; 'read,': 0.29; 'asking': 0.32; 'problem.': 0.32; 'could': 0.32; 'subject: .': 0.33; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'offered': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'anything': 0.36; 'enough': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; "you've": 0.61; 'free': 0.61; 'back': 0.62; '2013': 0.84; 'remarks': 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=osVfxhCWuudCRRroxznfg5MGWBXMh8p/Mc/egHGQBls=; b=sHirR/LkVUgar5Kmhfj1eAGgk7HePT+87pw/L66jeaN+/bXCkR16QSM2ZVEUC831qM xhPiayehPUzR7JiAcNjkaEu7WYG1E91teXftVZSLsxeZHQAHJ65rZ2rAc7HDQhmBiloR q0iq8KsCad3u04tRn8diOeDm1ZSndJmdma817Hh4VqeCqj2j6ivj91E6rGA0MaTWSfOg 4wt03xjta60cZ7sh6CbQIZRyqnXAJgsFx7hm93aQuQ1K20s3OacCTf8t4cjkF944vIZH ckGCs4ZYpHk9AAwW9ymWKi5bfZoDKb/qmq31xgfffQymjjS1/+j7VKiTYhyduBsjkJQF Vg4g== MIME-Version: 1.0 X-Received: by 10.220.150.136 with SMTP id y8mr23779542vcv.34.1358871080501; Tue, 22 Jan 2013 08:11:20 -0800 (PST) In-Reply-To: <12a22c5b-88a9-4577-a642-abe1e56cce5e@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> <12a22c5b-88a9-4577-a642-abe1e56cce5e@googlegroups.com> Date: Wed, 23 Jan 2013 03:11:20 +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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358871083 news.xs4all.nl 6870 [2001:888:2000:d::a6]:59478 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37297 On Wed, Jan 23, 2013 at 2:59 AM, Ferrous Cranus wrote: > I just need a way to CONVERT a string(absolute path) to a 4-digit unique number with INT!!! That's all i want!! But i cannot make it work :( Either you are deliberately trolling, or you have a major comprehension problem. Please go back and read, carefully, all the remarks you've been offered in this thread. Feel free to ask for clarification of anything that doesn't make sense, but be sure to read all of it. You are asking something that is fundamentally impossible[1]. There simply are not enough numbers to go around. ChrisA [1] Well, impossible in decimal. If you work in base 4294967296, you could do what you want in four "digits".