Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #77330

Error reading from 'urllib.request' and iterating over lines

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <juan0christian@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'output': 0.05; "subject:' ": 0.07; 'subject:Error': 0.07; 'parsed': 0.09; 'python': 0.11; 'special.': 0.16; 'subject:skip:u 10': 0.16; 'seems': 0.21; 'code:': 0.26; '[1]': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'correctly.': 0.31; 'text': 0.33; 'subject:from': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'training': 0.77; 'subject:over': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=CwJO0S6T6OLftYv4qrLzJFtsN3B675owbJxUQBEeAUc=; b=OnhG8+oDgztELOR1YZT0CQsaCWJ+hXfzAX52GTpwAXDPSkjhwuBQ54W5+km/LHOUV+ qnDKpvxi7oEH1V5WsZPUz2taMckkicCr1sPkuQVGMlTxvKo1F43fTQ/rs4cuXOcsYILU BgeJ3ewDsTab95k1XWDMtprxsBk+WStrD9nGK8moTPt4ixUvD7EIXqHGbDRUXp9oSYrx XOniDrHBfO+FxgQIkVR2JWaq7bv2sEv7t0kMavlAk5n+lDVg5g4dEhUwZdW5yc8tuCLH 5zA/Eo0kRLliT9poESm0B8wHBtwwM64Xu91R3Ud5LFFdPbxUM1gco/n2JIWbaIKl+iEr Bjxg==
X-Received by 10.112.202.69 with SMTP id kg5mr18071613lbc.33.1409429832255; Sat, 30 Aug 2014 13:17:12 -0700 (PDT)
MIME-Version 1.0
From Juan Christian <juan0christian@gmail.com>
Date Sat, 30 Aug 2014 17:16:52 -0300
Subject Error reading from 'urllib.request' and iterating over lines
To python-list@python.org
Content-Type multipart/alternative; boundary=001a11c3712e7ccfbb0501de7443
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13651.1409429840.18130.python-list@python.org> (permalink)
Lines 41
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1409429840 news.xs4all.nl 2905 [2001:888:2000:d::a6]:56740
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:77330

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

My code: http://pastebin.com/CBgVvT4n

Line 25 returns the text correctly [1], but it seems not being parsed to
line 27-28 correctly. This is just a training program that I'm doing
following some books/tutorials/docs, nothing special.

[1] Output from line 25: http://pastebin.com/HSbAtDHQ

Python 3.4.1
PySide 1.2.2

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Error reading from 'urllib.request' and iterating over lines Juan Christian <juan0christian@gmail.com> - 2014-08-30 17:16 -0300

csiph-web