Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'only,': 0.07; 'encode': 0.09; 'subject:method': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'stored': 0.10; '4-digit': 0.16; 'skip:1 40': 0.16; 'string': 0.17; 'integer': 0.17; 'subject:page': 0.17; 'error.': 0.21; 'displayed': 0.22; 'produces': 0.22; 'cc:2**0': 0.23; 'for?': 0.23; 'cc:no real name:2**0': 0.24; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'correctly.': 0.33; 'subject: .': 0.33; 'received:google.com': 0.34; 'table': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'thank': 0.36; 'why': 0.37; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'think': 0.40; 'visit': 0.64; 'of:': 0.65; 'pin': 0.65; 'subject:Using': 0.84 X-Received: by 10.50.150.142 with SMTP id ui14mr4127444igb.9.1358869575894; Tue, 22 Jan 2013 07:46:15 -0800 (PST) Newsgroups: comp.lang.python Date: Tue, 22 Jan 2013 07:46:14 -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> 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=ISO-8859-1 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1358870153 news.xs4all.nl 6857 [2001:888:2000:d::a6]:42568 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37293 Thank you but the number needs to be a 4-digit integer only, if its to be stored in the database table correctly. pin = int( htmlpage.encode("hex"), 16 ) I just tried whayt you gace me This produces a number of: 140530319499494727...677522822126923116L Visit http://superhost.gr to see that displayed error. I think it Why did you use "hex" for? to encode the string to hexarithmetic? what for?