From: Martin v. Löwis Date: Fri, 28 Feb 2014 14:43:36 +0000 (+0100) Subject: Merge with 3.3 X-Git-Tag: v3.4.1rc1~233^2~175^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78f1e4c865a08e5dc0afe105954b763e3c7b65eb;p=thirdparty%2FPython%2Fcpython.git Merge with 3.3 --- 78f1e4c865a08e5dc0afe105954b763e3c7b65eb diff --cc Lib/test/coding20731.py index 000000000000,ca4962ee8efa..b0e227ad110e mode 000000,100644..100644 --- a/Lib/test/coding20731.py +++ b/Lib/test/coding20731.py @@@ -1,0 -1,4 +1,4 @@@ -#coding:latin1 - - - ++#coding:latin1 ++ ++ ++ diff --cc Lib/test/test_source_encoding.py index cd9d2b374c73,324ae3861965..39b623e637fe --- a/Lib/test/test_source_encoding.py +++ b/Lib/test/test_source_encoding.py @@@ -1,12 -1,9 +1,13 @@@ # -*- coding: koi8-r -*- import unittest -from test import support +from test.support import TESTFN, unlink, unload +import importlib +import os +import sys ++import subprocess -class PEP263Test(unittest.TestCase): +class SourceEncodingTest(unittest.TestCase): def test_pep263(self): self.assertEqual( @@@ -58,6 -55,6 +59,14 @@@ # two bytes in common with the UTF-8 BOM self.assertRaises(SyntaxError, eval, b'\xef\xbb\x20') ++ def test_20731(self): ++ sub = subprocess.Popen([sys.executable, ++ os.path.join(os.path.dirname(__file__), ++ 'coding20731.py')], ++ stderr=subprocess.PIPE) ++ err = sub.communicate()[1] ++ self.assertEquals(err, b'') ++ def test_error_message(self): compile(b'# -*- coding: iso-8859-15 -*-\n', 'dummy', 'exec') compile(b'\xef\xbb\xbf\n', 'dummy', 'exec') diff --cc Misc/NEWS index 77b969cecfb1,3b707839e2ba..80c8913f1330 --- a/Misc/NEWS +++ b/Misc/NEWS @@@ -8,58 -10,21 +8,61 @@@ What's New in Python 3.4.1 Core and Builtins ----------------- + - Issue #20731: Properly position in source code files even if they + are opened in text mode. Patch by Serhiy Storchaka. + -- Issue #19619: str.encode, bytes.decode and bytearray.decode now use an - internal API to throw LookupError for known non-text encodings, rather - than attempting the encoding or decoding operation and then throwing a - TypeError for an unexpected output type. (The latter mechanism remains - in place for third party non-text encodings) +- Issue #20637: Key-sharing now also works for instance dictionaries of + subclasses. Patch by Peter Ingebretson. -- Issue #20588: Make Python-ast.c C89 compliant. +Library +------- + +- Issue #20791: copy.copy() now doesn't make a copy when the input is + a bytes object. Initial patch by Peter Otten. -- Issue #20437: Fixed 21 potential bugs when deleting objects references. +- Issue #19748: On AIX, time.mktime() now raises an OverflowError for year + outsize range [1902; 2037]. -- Issue #20538: UTF-7 incremental decoder produced inconsistant string when - input was truncated in BASE64 section. +Documentation +------------- + +- Issue #20765: Add missing documentation for PurePath.with_name() and + PurePath.with_suffix(). + +Tests +----- + +- Issue #20743: Fix a reference leak in test_tcl. + +Tools/Demos +----------- + +- Issue #20535: PYTHONWARNING no longer affects the run_tests.py script. + Patch by Arfrever Frehtes Taifersar Arahesis. + + +What's New in Python 3.4.0 release candidate 2? +=============================================== + +Release date: 2014-02-23 + +Core and Builtins +----------------- + +- Issue #20261: In pickle, lookup __getnewargs__ and __getnewargs_ex__ on the + type of the object. + +- Issue #20619: Give the AST nodes of keyword-only arguments a column and line + number. + +- Issue #20526: Revert changes of issue #19466 which introduces a regression: + don't clear anymore the state of Python threads early during the Python + shutdown. + +- Issue #20595: Make getargs.c C89 compliant. + +- Issue #20625: Parameter names in __annotations__ were not mangled properly. + Discovered by Jonas Wielicki, patch by Yury Selivanov. Library -------