Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.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.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:file': 0.07; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'skip:" 30': 0.20; 'keyerror:': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'host': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '(most': 0.27; 'subject:end': 0.29; 'subject:some': 0.29; 'skip:& 10': 0.29; 'worked': 0.30; 'error': 0.30; 'file': 0.32; 'skip:s 30': 0.33; 'subject: .': 0.33; 'subject:data': 0.33; 'traceback': 0.33; 'received:google.com': 0.34; 'why': 0.37; 'subject:: ': 0.38; 'skip:o 20': 0.38; 'subject:-': 0.40 X-Received: by 10.49.63.164 with SMTP id h4mr3262946qes.39.1362657111802; Thu, 07 Mar 2013 03:51:51 -0800 (PST) Newsgroups: comp.lang.python Date: Thu, 7 Mar 2013 03:51:51 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.107.188; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <7e0a8562-9a48-4f5a-804d-3751733288f0@googlegroups.com> <009ab803-6269-453b-bff1-0c58a6db358d@googlegroups.com> <0d58f312-9259-407d-b47b-80b88cf9a82c@googlegroups.com> <5bfc6644-388f-4469-a591-63fb8070faa2@googlegroups.com> <78e92c1d-521b-440c-9517-84406cdc6d6a@googlegroups.com> <8dbd532b-2007-46e5-9e05-e3b2597d78d9@googlegroups.com> <74843fc3-7ecd-473a-8271-c9f9d3085475@googlegroups.com> <87ppzba68d.fsf@nautilus.nautilus> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.107.188 MIME-Version: 1.0 Subject: Re: Inserting-embedding some html data at the end of a .py file From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362657121 news.xs4all.nl 6925 [2001:888:2000:d::a6]:53661 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40752 host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] Why this line that worked in v2.6 give sme an error in v3.2.3 Traceback (most recent call last): File "files.py", line 14, in <module> host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] File "/opt/python3/lib/python3.2/os.py", line 450, in __getitem__ value = self._data[self.encodekey(key)] KeyError: b'REMOTE_ADDR' -->