Commit graph

2281 commits

Author SHA1 Message Date
Martin v. Löwis
7252a6e81e Issue #20179: Apply Argument Clinic to bytes and bytearray.
Patch by Tal Einat.
2014-07-27 16:25:09 +02:00
Antoine Pitrou
1eee8e5207 Issue #21803: remove macro indirections in complexobject.h 2014-07-07 18:49:30 -04:00
Victor Stinner
40ee30181f 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.
2014-06-16 15:59:28 +02:00
Victor Stinner
d8f0d922d5 Issue #21233: Rename the C structure "PyMemAllocator" to "PyMemAllocatorEx" to
make sure that the code using it will be adapted for the new "calloc" field
(instead of crashing).
2014-06-02 21:57:10 +02:00
Benjamin Peterson
c12318a7fd merge 3.4 (#21587) 2014-05-26 15:12:43 -07:00
Benjamin Peterson
1a2cf9aba7 remove tab (closes #21587) 2014-05-26 15:12:28 -07:00
Larry Hastings
5c26a8afbb Version bump for 3.4.1. 2014-05-17 21:46:35 -07:00
Larry Hastings
2110603344 Post-release version bump for 3.4.1rc1. Sorry it's late! 2014-05-17 20:54:44 -07:00
Victor Stinner
45e8e2f218 Issue #21490: Add new C macros: Py_ABS() and Py_STRINGIFY()
Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between
pyconfig.h and pymacros.h.
2014-05-14 17:24:35 +02:00
Larry Hastings
95e0b0d1d0 Version bump for 3.4.1rc1. 2014-05-04 05:06:24 -07:00
Benjamin Peterson
39992d3043 do not expose known hash api in stable API 2014-05-03 19:39:15 -04:00
Raymond Hettinger
4b74fba62f Issue 21101: Internal API for dict getitem and setitem where the hash value is known. 2014-05-03 16:32:11 -07:00
Victor Stinner
db067af12a Issue #21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),
PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) and bytearray(int) are now
using ``calloc()`` instead of ``malloc()`` for large objects which is faster
and use less memory (until the bytearray buffer is filled with data).
2014-05-02 22:31:14 +02:00
Benjamin Peterson
8bdeb1672c support setting fpu precision on m68k (closes #20904)
Patch from Andreas Schwab.
2014-04-17 00:00:31 -04:00
Kushal Das
02d23a212a Closes Issue 17861: Autogenerate Include/opcode.h from opcode.py.
It includes required changes in Makefile.pre.in and configure.ac
among other files.
2014-04-15 23:50:06 +05:30
Andrew Kuchling
6283691d46 #11983: update comment to describe which fields are used and why.
Original patch by Caelyn McAulay; modified after discussion w/ her at
the PyCon 2014 sprints.
2014-04-14 14:19:52 -04:00
Benjamin Peterson
d51374ed78 PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) 2014-04-09 23:55:56 -04:00
Benjamin Peterson
1d1d95bf83 merge 3.4 2014-04-08 10:51:37 -04:00
Benjamin Peterson
7ddf3eba90 use imperative 2014-04-08 10:51:20 -04:00
Antoine Pitrou
08eae43e2a Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas Schwab. 2014-03-23 22:55:40 +01:00
Antoine Pitrou
8c6f8dc527 Issue #19537: Fix PyUnicode_DATA() alignment under m68k. Patch by Andreas Schwab. 2014-03-23 22:55:03 +01:00
Larry Hastings
f5002bd6ac Version bump to 3.5, step 2. 2014-03-16 23:05:59 -07:00
Larry Hastings
3c5c56f3c0 Merged default into 3.4 branch. 3.4 branch is now effectively 3.4.1rc1. 2014-03-16 22:54:05 -07:00
Larry Hastings
e41b73caca Post-release verion bump for 3.4.0(+). 2014-03-16 20:13:07 -07:00
Larry Hastings
cf1a3cd2c7 Release bump for 3.4.0 final. 2014-03-15 22:34:24 -07:00
Benjamin Peterson
bdc4b02985 cast negative numbers to size_t before shifting them (#20929) 2014-03-14 20:15:29 -05:00
Larry Hastings
6b5284fd4e Mark branch as being after Python 3.4.0rc3. 2014-03-15 20:57:42 -07:00
Larry Hastings
d5c59763ad Version bump for 3.4.0rc3. 2014-03-09 04:13:05 -07:00
Victor Stinner
3c1b379ebd Issue #20320: select.select() and select.kqueue.control() now round the timeout
aways from zero, instead of rounding towards zero.

It should make test_asyncio more reliable, especially test_timeout_rounding() test.
2014-02-17 00:02:43 +01:00
Larry Hastings
3f99504c08 Merge Python 3.4.0rc1 release branch. 2014-02-11 00:15:46 -08:00
Larry Hastings
4cce8f2f40 Python 3.4.0rc1: Post-release updates. 2014-02-11 00:14:16 -08:00
Larry Hastings
e9f73ac1fd Python 3.4.0rc1: Version bump. 2014-02-10 14:45:05 -08:00
Serhiy Storchaka
013bb91aa3 Issue #19255: The builtins module is restored to initial value before
cleaning other modules.  The sys and builtins modules are cleaned last.
2014-02-10 18:21:34 +02:00
Larry Hastings
f34177a6f9 Version bump for Python 3.4.0rc2. 2014-02-23 02:18:24 -06:00
Serhiy Storchaka
87a5c515d0 Issue #19255: The builtins module is restored to initial value before
cleaning other modules.  The sys and builtins modules are cleaned last.
2014-02-10 18:21:34 +02:00
Larry Hastings
8f9f0f12e8 Issue #20517: Removed unnecessary new (short-lived) functions from PyErr. 2014-02-10 03:43:57 -08:00
Larry Hastings
b082731fbb Issue #20517: Functions in the os module that accept two filenames
now register both filenames in the exception on failure.
This required adding new C API functions allowing OSError exceptions
to reference two filenames instead of one.
2014-02-09 22:05:19 -08:00
Larry Hastings
2623c8c23c Issue #20530: Argument Clinic's signature format has been revised again.
The new syntax is highly human readable while still preventing false
positives.  The syntax also extends Python syntax to denote "self" and
positional-only parameters, allowing inspect.Signature objects to be
totally accurate for all supported builtins in Python 3.4.
2014-02-08 22:15:29 -08:00
Nick Coghlan
a9b15241c6 Close #20404: blacklist non-text encodings in io.TextIOWrapper
- io.TextIOWrapper (and hence the open() builtin) now use the
  internal codec marking system added for issue #19619
- also tweaked the C code to only look up the encoding once,
  rather than multiple times
- the existing output type checks remain in place to deal with
  unmarked third party codecs.
2014-02-04 22:11:18 +10:00
Martin v. Löwis
ca7b04644c Issue #17162: Add PyType_GetSlot. 2014-02-04 09:33:05 +01:00
Larry Hastings
581ee3618c Issue #20326: Argument Clinic now uses a simple, unique signature to
annotate text signatures in docstrings, resulting in fewer false
positives.  "self" parameters are also explicitly marked, allowing
inspect.Signature() to authoritatively detect (and skip) said parameters.

Issue #20326: Argument Clinic now generates separate checksums for the
input and output sections of the block, allowing external tools to verify
that the input has not changed (and thus the output is not out-of-date).
2014-01-28 05:00:08 -08:00
Larry Hastings
ee4cca6e33 Post-release bump for 3.4.0 beta 3. 2014-01-26 22:27:20 -08:00
Larry Hastings
2d8e1e4f07 Version bump for 3.4.0b3. 2014-01-26 00:48:23 -08:00
Larry Hastings
c20472640c Issue #20390: Small fixes and improvements for Argument Clinic. 2014-01-25 20:43:29 -08:00
Larry Hastings
5c66189e88 Issue #20189: Four additional builtin types (PyTypeObject,
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
2014-01-24 06:17:25 -08:00
Larry Hastings
b7ccb20423 Issue #20294: Argument Clinic now supports argument parsing for __new__ and
__init__ functions.
2014-01-18 23:50:21 -08:00
Larry Hastings
e7ee44e9ba Post-release engineering; updated NEWS and version string. 2014-01-06 07:17:47 -08:00
Larry Hastings
a6c55232ab Bump version number for 3.4.0b2. 2014-01-05 04:40:25 -08:00
Larry Hastings
3cceb38486 Issue #19976: Argument Clinic METH_NOARGS functions now always
take two parameters.
2014-01-04 11:09:09 -08:00
Martin v. Löwis
1c0689c613 Issue #19526: Exclude all new API from the stable ABI. 2014-01-03 21:36:49 +01:00