Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!cs.uu.nl!news0.firedrake.org!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'algorithm': 0.03; 'rejected': 0.07; 'used.': 0.07; 'python': 0.09; 'subject:method': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; '*must*': 0.16; "file's": 0.16; 'wrote:': 0.17; 'subject:page': 0.17; 'please?': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'values': 0.26; 'am,': 0.27; 'right.': 0.27; 'run': 0.28; 'hash': 0.29; 'no,': 0.29; 'code': 0.31; 'gets': 0.32; 'file': 0.32; 'could': 0.32; 'right?': 0.33; 'subject: .': 0.33; 'received:google.com': 0.34; 'path': 0.35; 'same.': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'michael': 0.36; 'method': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'little': 0.39; "you've": 0.61; 'different': 0.63; 'wanting': 0.65; '8bit%:100': 0.70; '8bit%:92': 0.70; '2013': 0.84; 'increasingly': 0.84; 'subject:Using': 0.84 X-Received: by 10.50.151.175 with SMTP id ur15mr573243igb.0.1358956618628; Wed, 23 Jan 2013 07:56:58 -0800 (PST) Newsgroups: comp.lang.python Date: Wed, 23 Jan 2013 07:56:56 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.70.179; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 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> <8ad4a124-37a8-41fc-938d-9535b8affcbf@googlegroups.com> <2a972302-27ee-4fcb-9928-e0e67afeec36@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.70.179 MIME-Version: 1.0 Subject: Re: Using filepath method to identify an .html page From: Ferrous Cranus To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: , Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358956621 news.xs4all.nl 6895 [2001:888:2000:d::a6]:39714 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37486 =CE=A4=CE=B7 =CE=A4=CE=B5=CF=84=CE=AC=CF=81=CF=84=CE=B7, 23 =CE=99=CE=B1=CE= =BD=CE=BF=CF=85=CE=B1=CF=81=CE=AF=CE=BF=CF=85 2013 5:25:36 =CE=BC.=CE=BC. U= TC+2, =CE=BF =CF=87=CF=81=CE=AE=CF=83=CF=84=CE=B7=CF=82 Michael Torrie =CE= =AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > On 01/23/2013 12:25 AM, Ferrous Cranus wrote: >=20 > > >=20 > > Using that method ABC.html and CBA.html now have different values >=20 > > because each letter position's value gets bumped up increasingly from >=20 > > left to right. >=20 >=20 >=20 > You have run this little "hash" algorithm on a whole bunch of files, say >=20 > C:\windows\system32 right? And how many collisions did you get? >=20 >=20 >=20 > You've already rejected using the file path or url as a key because it >=20 > could change. Why are you wanting to do this hash based on the file's >=20 > path or url anyway? No, its inevitable, something must remain the same. Filepath *must* be used. Can you transliterate this code to Python code please?