]> granicus.if.org Git - python/commitdiff
merge 3.4 (#23165)
authorBenjamin Peterson <benjamin@python.org>
Sun, 4 Jan 2015 22:06:14 +0000 (16:06 -0600)
committerBenjamin Peterson <benjamin@python.org>
Sun, 4 Jan 2015 22:06:14 +0000 (16:06 -0600)
1  2 
Misc/NEWS
Python/fileutils.c

diff --cc Misc/NEWS
index d937e27f2152e810954e6085f30b6c829c94cb47,f634b59a942069e21f257d4c28bf46506d8c0aab..3797b78054c57c65b74fef28ac9e9efdb5809b3b
+++ b/Misc/NEWS
@@@ -61,138 -38,9 +61,141 @@@ Core and Builtin
  
  - Issue #22518: Fix integer overflow issues in latin-1 encoding.
  
 +- Issue #16324: _charset parameter of MIMEText now also accepts
 +  email.charset.Charset instances. Initial patch by Claude Paroz.
 +
 +- Issue #1764286: Fix inspect.getsource() to support decorated functions.
 +  Patch by Claudiu Popa.
 +
 +- Issue #18554: os.__all__ includes posix functions.
 +
 +- Issue #21391: Use os.path.abspath in the shutil module.
 +
 +- Issue #11471: avoid generating a JUMP_FORWARD instruction at the end of
 +  an if-block if there is no else-clause.  Original patch by Eugene Toder.
 +
 +- Issue #22215: Now ValueError is raised instead of TypeError when str or bytes
 +  argument contains not permitted null character or byte.
 +
 +- Issue #22258: Fix the internal function set_inheritable() on Illumos.
 +  This platform exposes the function ``ioctl(FIOCLEX)``, but calling it fails
 +  with errno is ENOTTY: "Inappropriate ioctl for device". set_inheritable()
 +  now falls back to the slower ``fcntl()`` (``F_GETFD`` and then ``F_SETFD``).
 +
 +- Issue #21389: Displaying the __qualname__ of the underlying function in the
 +  repr of a bound method.
 +
 +- Issue #22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM
 +  and returns -1 (error) on integer overflow.
 +
 +- Issue #20184: Argument Clinic based signature introspection added for
 +  30 of the builtin functions.
 +
 +- Issue #22116: C functions and methods (of the 'builtin_function_or_method'
 +  type) can now be weakref'ed.  Patch by Wei Wu.
 +
 +- Issue #22077: Improve index error messages for bytearrays, bytes, lists,
 +  and tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
 +  Original patch by Claudiu Popa.
 +
 +- Issue #20179: Apply Argument Clinic to bytes and bytearray.
 +  Patch by Tal Einat.
 +
 +- Issue #22082: Clear interned strings in slotdefs.
 +
 +- Upgrade Unicode database to Unicode 7.0.0.
 +
 +- Issue #21897: Fix a crash with the f_locals attribute with closure
 +  variables when frame.clear() has been called.
 +
 +- Issue #21205: Add a new ``__qualname__`` attribute to generator, the
 +  qualified name, and use it in the representation of a generator
 +  (``repr(gen)``). The default name of the generator (``__name__`` attribute)
 +  is now get from the function instead of the code. Use ``gen.gi_code.co_name``
 +  to get the name of the code.
 +
 +- Issue #21669: With the aid of heuristics in SyntaxError.__init__, the
 +  parser now attempts to generate more meaningful (or at least more search
 +  engine friendly) error messages when "exec" and "print" are used as
 +  statements.
 +
 +- Issue #21642: If the conditional if-else expression, allow an integer written
 +  with no space between itself and the ``else`` keyword (e.g. ``True if 42else
 +  False``) to be valid syntax.
 +
 +- Issue #21523: Fix over-pessimistic computation of the stack effect of
 +  some opcodes in the compiler.  This also fixes a quadratic compilation
 +  time issue noticeable when compiling code with a large number of "and"
 +  and "or" operators.
 +
 +- Issue #21418: Fix a crash in the builtin function super() when called without
 +  argument and without current frame (ex: embedded Python).
 +
 +- Issue #21425: Fix flushing of standard streams in the interactive
 +  interpreter.
 +
 +- Issue #21435: In rare cases, when running finalizers on objects in cyclic
 +  trash a bad pointer dereference could occur due to a subtle flaw in
 +  internal iteration logic.
 +
 +- Issue #21377: PyBytes_Concat() now tries to concatenate in-place when the
 +  first argument has a reference count of 1.  Patch by Nikolaus Rath.
 +
 +- Issue #20355: -W command line options now have higher priority than the
 +  PYTHONWARNINGS environment variable.  Patch by Arfrever.
 +
 +- Issue #21274: Define PATH_MAX for GNU/Hurd in Python/pythonrun.c.
 +
 +- Issue #20904: Support setting FPU precision on m68k.
 +
 +- Issue #21209: Fix sending tuples to custom generator objects with the yield
 +  from syntax.
 +
 +- Issue #21193: pow(a, b, c) now raises ValueError rather than TypeError when b
 +  is negative.  Patch by Josh Rosenberg.
 +
 +- PEP 465 and Issue #21176: Add the '@' operator for matrix multiplication.
 +
 +- Issue #21134: Fix segfault when str is called on an uninitialized
 +  UnicodeEncodeError, UnicodeDecodeError, or UnicodeTranslateError object.
 +
 +- Issue #19537: Fix PyUnicode_DATA() alignment under m68k.  Patch by
 +  Andreas Schwab.
 +
 +- Issue #20929: Add a type cast to avoid shifting a negative number.
 +
 +- Issue #20731: Properly position in source code files even if they
 +  are opened in text mode. Patch by Serhiy Storchaka.
 +
 +- Issue #20637: Key-sharing now also works for instance dictionaries of
 +  subclasses.  Patch by Peter Ingebretson.
 +
 +- Issue #8297: Attributes missing from modules now include the module name
 +  in the error text.  Original patch by ysj.ray.
 +
 +- Issue #19995: %c, %o, %x, and %X now raise TypeError on non-integer input.
 +
 +- Issue #19655: The ASDL parser - used by the build process to generate code for
 +  managing the Python AST in C - was rewritten. The new parser is self contained
 +  and does not require to carry long the spark.py parser-generator library;
 +  spark.py was removed from the source base.
 +
 +- Issue #12546: Allow \x00 to be used as a fill character when using str, int,
 +  float, and complex __format__ methods.
 +
 +- Issue #20480: Add ipaddress.reverse_pointer. Patch by Leon Weber.
 +
 +- Issue #13598: Modify string.Formatter to support auto-numbering of
 +  replacement fields. It now matches the behavior of str.format() in
 +  this regard. Patches by Phil Elson and Ramchandra Apte.
 +
 +- Issue #8931: Make alternate formatting ('#') for type 'c' raise an
 +  exception. In versions prior to 3.5, '#' with 'c' had no effect. Now
 +  specifying it is an error.  Patch by Torsten Landschoff.
 +
+ - Issue #23165: Perform overflow checks before allocating memory in the
+   _Py_char2wchar function.
  Library
  -------
  
Simple merge