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


Groups > comp.lang.python > #110038

Re - Contradictory error messages in Python 3.4 - standard library issue!

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Harrison Chudleigh <harrison.chudleigh1@education.nsw.gov.au>
Newsgroups comp.lang.python
Subject Re - Contradictory error messages in Python 3.4 - standard library issue!
Date Fri, 17 Jun 2016 08:31:46 +1000
Lines 19
Message-ID <mailman.97.1466116754.2288.python-list@python.org> (permalink)
References <CACMigy3kHPbh1hb=wAF1-YjLqYMvQF1hJsP6vL0-7oNpmfOaAA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
X-Trace news.uni-berlin.de MVE7bKbdQwP6ap8DjWrDewKbY2YFN/6q0ZyaMh6B9SlQ==
Return-Path <harrison.chudleigh1@education.nsw.gov.au>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'messages.': 0.04; 'subject:Python': 0.05; 'arg': 0.09; 'bytes,': 0.09; 'subject:library': 0.09; 'subject:messages': 0.09; 'tuple': 0.09; 'typeerror:': 0.09; 'python': 0.10; 'subject:error': 0.11; 'interpreter': 0.15; 'received:io': 0.16; 'received:psf.io': 0.16; 'skip:" 70': 0.16; 'subject:issue': 0.16; 'bytes': 0.18; 'library': 0.20; 'trying': 0.22; 'module': 0.25; 'error': 0.27; 'message-id:@mail.gmail.com': 0.27; 'accidentally': 0.29; 'doing?': 0.29; 'strings,': 0.29; 'another': 0.32; 'says': 0.32; 'addressee': 0.32; 'changed': 0.33; 'message.': 0.33; 'received:com.au': 0.33; 'open': 0.33; 'file': 0.34; 'received:google.com': 0.35; 'so,': 0.35; 'received:74.125.82': 0.35; 'should': 0.36; 'lines': 0.36; 'to:addr:python-list': 0.36; 'received:10': 0.37; 'mac': 0.37; 'delete': 0.38; 'takes': 0.39; 'to:addr:python.org': 0.40; 'received:58': 0.61; 'information': 0.63; 'skip:* 70': 0.70; 'skip:& 80': 0.91; 'str.': 0.91
X-FW-MsgID <06/17/16-08:31:47-5194668@obesa2.dec.local>
IronPort-PHdr 9a23:LXopFh+TUmGeFf9uRHKM819IXTAuvvDOBiVQ1KB91e0cTK2v8tzYMVDF4r011RmSDdSdu6MP0rSempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lS8iC3o/uiaibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0799cUaL8OqA5VqBwFCU6M2czosrxukrtVwyKs1sVSH8XiR1OSyPF8R3+U5b+smOutuNnwiiBOsuwRrApVTCv7qhrETflhDoMPiI492eRjNdvyq1cvlSoukoskMbvfIiJOa8mLevmdtQASD8ZUw==
X-IronPort-Anti-Spam-Filtered true
X-IronPort-Anti-Spam-Result A2BaBQCMJ2NX/0ZSfUpeHoMgHjh9BqliAYtyhQGBehIIhyIHOBQBAQEBAQEBAWQnQRIBgV2CMxF1AQY3AiQSAQUBV4gOoDuBRwE/gTE+MYs7kQEQimSFDII1gloFmG8ChgWIJII3jGuONhIegQ8eNoE3DEIfgV4qMoQmhVUBAQE
X-IPAS-Result A2BaBQCMJ2NX/0ZSfUpeHoMgHjh9BqliAYtyhQGBehIIhyIHOBQBAQEBAQEBAWQnQRIBgV2CMxF1AQY3AiQSAQUBV4gOoDuBRwE/gTE+MYs7kQEQimSFDII1gloFmG8ChgWIJII3jGuONhIegQ8eNoE3DEIfgV4qMoQmhVUBAQE
X-IronPort-AV E=Sophos;i="5.26,481,1459778400"; d="scan'208,217";a="5194668"
X-DET-UID obesa2.dec.local-5-5194668
X-Original-Envelope-From harrison.chudleigh1@education.nsw.gov.au
X-Original-Envelope-To python-list@python.org
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=4NqTWgGpcd7CnjM4dQXZBluisJDRB3Gh60YgWWXFLrU=; b=m1opmwWniC1Dh12L6WEyF9LE1HQQFS1Bc79j2bkfXcbyjaGRWAeiazuFEd1y5sM4Xx /bHjRDZXo+rLNubULpL3826/6v3YWz5A+aqo2/mUvi6pf4KzNBWeN8g3vdBMUNcebEhb wMgvXuCeqICOGOu4Z2/n5xa2vA4VwyiI/y7EWpfE/mBbnWRrRL68vpggGy365bF2k+Cv G8L5JOE9T/9usfufjCyZrwT6Ke+D/SuwfrxG0SFY0LyD8jLSBCVwTxAryqaFg2UrV/1e BB+6AFNKJU41KyEYGhtZhVQ3x4tmcMv7bp+sC6MZIjCqNpQB6232G/4HHZL/TiMILugE DACA==
X-Gm-Message-State ALyK8tL17L0i/hpkkcHS9IzP/sUPnjI/ScxCeViFTzBblqzOBAhisiyoUjmWO2u3EmO9dsTDF6P8QP7Tzrq0DQDl0lmZ7bhW2f+OUx8fmKLSYe07WxSl4tkdHv3ta4zuSWqyyU9zlHvcPHMrnlzZdcAek3pcZWWmxlwLThNiskwchctB
X-Received by 10.28.223.8 with SMTP id w8mr7230819wmg.22.1466116306627; Thu, 16 Jun 2016 15:31:46 -0700 (PDT)
X-Received by 10.28.223.8 with SMTP id w8mr7230815wmg.22.1466116306474; Thu, 16 Jun 2016 15:31:46 -0700 (PDT)
X-Content-Filtered-By Mailman/MimeDel 2.1.22
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <CACMigy3kHPbh1hb=wAF1-YjLqYMvQF1hJsP6vL0-7oNpmfOaAA@mail.gmail.com>
Xref csiph.com comp.lang.python:110038

Show key headers only | View raw


Sorry! I was trying to indent a line and accidentally sent only half of the
message.

As I was saying, I changed the line and reran the program. However, this
produced another group of error messages. One was -
File
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tokenize.py",
line 438, in open
    encoding, lines = detect_encoding(buffer.readline)
  File
"/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/tokenize.py",
line 409, in detect_encoding
    if first.startswith('BOM_UTF8'):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str.
So, first the interpreter says startswith() takes strings, now it says it
takes bytes? What should the module be doing?
This is an error with the standard library of Python 3.4.1, Mac OS X.
*******************************************************************************
This message is intended for the addressee named and may contain privileged information or confidential information or both. If you are not the intended recipient please delete it and notify the sender.

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


Thread

Re - Contradictory error messages in Python 3.4 - standard library issue! Harrison Chudleigh <harrison.chudleigh1@education.nsw.gov.au> - 2016-06-17 08:31 +1000
  Re: Re - Contradictory error messages in Python 3.4 - standard library issue! Ned Batchelder <ned@nedbatchelder.com> - 2016-06-16 16:03 -0700

csiph-web