]> granicus.if.org Git - python/log
python
8 years agoIssue #28019: itertools.count() no longer rounds non-integer step in range
Serhiy Storchaka [Sat, 10 Sep 2016 06:53:51 +0000 (09:53 +0300)]
Issue #28019: itertools.count() no longer rounds non-integer step in range
between 1.0 and 2.0 to 1.

8 years agoIssue #28019: itertools.count() no longer rounds non-integer step in range
Serhiy Storchaka [Sat, 10 Sep 2016 06:49:24 +0000 (09:49 +0300)]
Issue #28019: itertools.count() no longer rounds non-integer step in range
between 1.0 and 2.0 to 1.

8 years agoFix Python version in pdb.rst
Berker Peksag [Sat, 10 Sep 2016 06:28:03 +0000 (09:28 +0300)]
Fix Python version in pdb.rst

8 years agoIssue #18401: Fix test_pdb on Windows
Victor Stinner [Sat, 10 Sep 2016 06:22:09 +0000 (23:22 -0700)]
Issue #18401: Fix test_pdb on Windows

* Use "with Popen" to cleanup properly the process
* Use support.temp_cwd() to properly change the working directory
* Use environ.pop() to cleanup the code

8 years agoFix check_force_ascii()
Victor Stinner [Sat, 10 Sep 2016 06:11:52 +0000 (23:11 -0700)]
Fix check_force_ascii()

Issue #27938: Normalize aliases of the ASCII encoding, because
_Py_normalize_encoding() now correctly normalize encoding names.

8 years agoIssue #18401: Fix test_pdb if $HOME is not set
Victor Stinner [Sat, 10 Sep 2016 05:56:54 +0000 (22:56 -0700)]
Issue #18401: Fix test_pdb if $HOME is not set

HOME is not set on Windows for example.

Use also textwrap.dedent() for the script.

8 years agoIssue #18401: pdb tests don't read ~/.pdbrc anymore
Łukasz Langa [Sat, 10 Sep 2016 05:21:17 +0000 (22:21 -0700)]
Issue #18401: pdb tests don't read ~/.pdbrc anymore

Patch by Martin Matusiak and Sam Kimbrel.

8 years agoTry to fix sizeof unit tests on dict
Victor Stinner [Sat, 10 Sep 2016 04:51:19 +0000 (21:51 -0700)]
Try to fix sizeof unit tests on dict

Issue #28056 and issue #26058.

8 years agoDon't run garbage collection on interpreter exit if it was explicitly disabled
Łukasz Langa [Sat, 10 Sep 2016 04:47:46 +0000 (21:47 -0700)]
Don't run garbage collection on interpreter exit if it was explicitly disabled
by the user.

8 years agoUse raw string for regexp (3.5->3.6)
Guido van Rossum [Sat, 10 Sep 2016 04:39:36 +0000 (21:39 -0700)]
Use raw string for regexp (3.5->3.6)

8 years agoUse raw string for regexp
Guido van Rossum [Sat, 10 Sep 2016 04:39:10 +0000 (21:39 -0700)]
Use raw string for regexp

8 years ago#20476: Deal with the message_factory circular import differently.
R David Murray [Sat, 10 Sep 2016 04:22:25 +0000 (00:22 -0400)]
#20476: Deal with the message_factory circular import differently.

It turns out we can't depend on email.message getting imported every place
message_factory is needed, so to avoid a circular import we need to special
case Policy.message_factory=None in the parser instead of using monkey
patching.  I had a feeling that was a bad idea when I did it.

8 years agoIssue #27810: Fix getargs.c compilation on Windows
Victor Stinner [Sat, 10 Sep 2016 03:56:52 +0000 (20:56 -0700)]
Issue #27810: Fix getargs.c compilation on Windows

8 years agofix export of size_t parse stack function
Benjamin Peterson [Sat, 10 Sep 2016 03:45:06 +0000 (20:45 -0700)]
fix export of size_t parse stack function

8 years agodictobject.c: explain why stringlib is used
Victor Stinner [Sat, 10 Sep 2016 03:22:59 +0000 (20:22 -0700)]
dictobject.c: explain why stringlib is used

8 years agoIssue #27810: Rerun Argument Clinic on all modules
Victor Stinner [Sat, 10 Sep 2016 03:00:13 +0000 (20:00 -0700)]
Issue #27810: Rerun Argument Clinic on all modules

8 years agoIssue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)
Steve Dower [Sat, 10 Sep 2016 01:38:20 +0000 (18:38 -0700)]
Issue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)

8 years agoIssue #27705: Update message in validate_ucrtbase.py
Steve Dower [Sat, 10 Sep 2016 01:21:15 +0000 (18:21 -0700)]
Issue #27705: Update message in validate_ucrtbase.py

8 years agoIssue #25969: Update the lib2to3 grammar to handle the unpacking
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) [Sat, 10 Sep 2016 01:18:52 +0000 (18:18 -0700)]
Issue #25969: Update the lib2to3 grammar to handle the unpacking
generalizations added in 3.5.

8 years agoremove fix_callable - callable() was readded many releases ago.
Gregory P. Smith [Sat, 10 Sep 2016 01:14:33 +0000 (18:14 -0700)]
remove fix_callable - callable() was readded many releases ago.

8 years agoIssue #27932: Fixes memory leak in platform.win32_ver()
Steve Dower [Sat, 10 Sep 2016 01:01:25 +0000 (18:01 -0700)]
Issue #27932: Fixes memory leak in platform.win32_ver()

8 years agoEmit METH_FASTCALL code in Argument Clinic
Victor Stinner [Sat, 10 Sep 2016 00:40:38 +0000 (17:40 -0700)]
Emit METH_FASTCALL code in Argument Clinic

Issue #27810:

* Modify vgetargskeywordsfast() to work on a C array of PyObject* rather than
  working on a tuple directly.
* Add _PyArg_ParseStack()
* Argument Clinic now emits code using the new METH_FASTCALL calling convention

8 years agoAdd METH_FASTCALL calling convention
Victor Stinner [Sat, 10 Sep 2016 00:40:22 +0000 (17:40 -0700)]
Add METH_FASTCALL calling convention

Issue #27810: Add a new calling convention for C functions:

    PyObject* func(PyObject *self, PyObject **args,
                   Py_ssize_t nargs, PyObject *kwnames);

Where args is a C array of positional arguments followed by values of keyword
arguments. nargs is the number of positional arguments, kwnames are keys of
keyword arguments. kwnames can be NULL.

8 years agoFix SystemError in compact dict
Victor Stinner [Sat, 10 Sep 2016 02:28:36 +0000 (19:28 -0700)]
Fix SystemError in compact dict

Issue #28040: Fix _PyDict_DelItem_KnownHash() and _PyDict_Pop(): convert
splitted table to combined table to be able to delete the item.

Write an unit test for the issue.

Patch by INADA Naoki.

8 years agomake invalid_comma_and_underscore a real prototype
Benjamin Peterson [Sat, 10 Sep 2016 03:14:05 +0000 (20:14 -0700)]
make invalid_comma_and_underscore a real prototype

8 years agoFurther improved ',' and '_' specification in format mini-language.
Eric V. Smith [Sat, 10 Sep 2016 03:13:01 +0000 (23:13 -0400)]
Further improved ',' and '_' specification in format mini-language.

8 years agoImproved ',' and '_' specification in format mini-language.
Eric V. Smith [Sat, 10 Sep 2016 03:12:02 +0000 (23:12 -0400)]
Improved ',' and '_' specification in format mini-language.

8 years agoIssue 27080: PEP 515: add '_' formatting option.
Eric V. Smith [Sat, 10 Sep 2016 03:06:47 +0000 (23:06 -0400)]
Issue 27080: PEP 515: add '_' formatting option.

8 years agocompile dtrace stubs
Benjamin Peterson [Sat, 10 Sep 2016 02:52:23 +0000 (19:52 -0700)]
compile dtrace stubs

8 years agoIssue #27199: TarFile expose copyfileobj bufsize to improve throughput
Łukasz Langa [Sat, 10 Sep 2016 02:48:14 +0000 (19:48 -0700)]
Issue #27199: TarFile expose copyfileobj bufsize to improve throughput

Patch by Jason Fried.

8 years agoadd dtrace inline stubs
Benjamin Peterson [Sat, 10 Sep 2016 02:48:47 +0000 (19:48 -0700)]
add dtrace inline stubs

8 years agojust start with an int rather than casting
Benjamin Peterson [Sat, 10 Sep 2016 02:31:12 +0000 (19:31 -0700)]
just start with an int rather than casting

8 years agoIssue 27948: Allow backslashes in the literal string portion of f-strings, but not...
Eric V. Smith [Sat, 10 Sep 2016 01:56:20 +0000 (21:56 -0400)]
Issue 27948: Allow backslashes in the literal string portion of f-strings, but not in the expressions. Also, require expressions to begin and end with literal curly braces.

8 years agoIssue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)
Steve Dower [Sat, 10 Sep 2016 01:41:56 +0000 (18:41 -0700)]
Issue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)

8 years agoIssue #28046: Fix distutils
Zachary Ware [Sat, 10 Sep 2016 01:29:10 +0000 (18:29 -0700)]
Issue #28046: Fix distutils

Why do we have two sysconfig modules again?

8 years agoIssue #27705: Update message in validate_ucrtbase.py
Steve Dower [Sat, 10 Sep 2016 01:25:29 +0000 (18:25 -0700)]
Issue #27705: Update message in validate_ucrtbase.py

8 years agoIssue #25969: Update the lib2to3 grammar to handle the unpacking
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) [Sat, 10 Sep 2016 01:19:51 +0000 (18:19 -0700)]
Issue #25969: Update the lib2to3 grammar to handle the unpacking
generalizations added in 3.5.

8 years agomerge (3.6 already has this)
Gregory P. Smith [Sat, 10 Sep 2016 01:14:52 +0000 (18:14 -0700)]
merge (3.6 already has this)

8 years agodummy dtrace probes are a good place to use inline functions
Benjamin Peterson [Sat, 10 Sep 2016 01:09:52 +0000 (18:09 -0700)]
dummy dtrace probes are a good place to use inline functions

8 years agoMerge from Zach
Steve Dower [Sat, 10 Sep 2016 01:05:07 +0000 (18:05 -0700)]
Merge from Zach

8 years agoIssue #27932: Fixes memory leak in platform.win32_ver()
Steve Dower [Sat, 10 Sep 2016 01:04:26 +0000 (18:04 -0700)]
Issue #27932: Fixes memory leak in platform.win32_ver()

8 years agoIssue #28046: Remove platform-specific directories from sys.path
Zachary Ware [Sat, 10 Sep 2016 00:59:49 +0000 (17:59 -0700)]
Issue #28046: Remove platform-specific directories from sys.path

8 years agoActually fix suspicious markup, I ignored it too readily
Zachary Ware [Sat, 10 Sep 2016 00:47:38 +0000 (17:47 -0700)]
Actually fix suspicious markup, I ignored it too readily

8 years agofix dummy macro
Benjamin Peterson [Sat, 10 Sep 2016 00:46:24 +0000 (17:46 -0700)]
fix dummy macro

8 years agoDTrace support: function calls, GC activity, line execution
Łukasz Langa [Sat, 10 Sep 2016 00:37:37 +0000 (17:37 -0700)]
DTrace support: function calls, GC activity, line execution

Tested on macOS 10.11 dtrace, Ubuntu 16.04 SystemTap, and libbcc.

Largely based by an initial patch by Jesús Cea Avión, with some
influence from Dave Malcolm's SystemTap patch and Nikhil Benesch's
unification patch.

Things deliberately left out for simplicity:
- ustack helpers, I have no way of testing them at this point since
they are Solaris-specific
- PyFrameObject * in function__entry/function__return, this is
SystemTap-specific
- SPARC support
- dynamic tracing
- sys module dtrace facility introspection

All of those might be added later.

8 years agoRemove line numbers from suspicious rules
Zachary Ware [Sat, 10 Sep 2016 00:38:28 +0000 (17:38 -0700)]
Remove line numbers from suspicious rules

8 years agoIssue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by...
Steve Dower [Sat, 10 Sep 2016 00:33:37 +0000 (17:33 -0700)]
Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun)

8 years agoIssue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by...
Steve Dower [Sat, 10 Sep 2016 00:27:33 +0000 (17:27 -0700)]
Issue #25758: Prevents zipimport from unnecessarily encoding a filename (patch by Eryk Sun)

8 years agoMerge: #14977: Make mailcap respect the order of the lines in the mailcap file.
R David Murray [Sat, 10 Sep 2016 00:09:43 +0000 (20:09 -0400)]
Merge: #14977: Make mailcap respect the order of the lines in the mailcap file.

8 years ago#14977: Make mailcap respect the order of the lines in the mailcap file.
R David Murray [Sat, 10 Sep 2016 00:04:23 +0000 (20:04 -0400)]
#14977: Make mailcap respect the order of the lines in the mailcap file.

This is required by RFC 1542, so despite the subtle behavior change we
are treating it as a bug.  Patch by Michael Lazar.

8 years agoRemove 2to3's fix_callable... We reintroduced the callable built-in
Gregory P. Smith [Sat, 10 Sep 2016 00:03:58 +0000 (17:03 -0700)]
Remove 2to3's fix_callable... We reintroduced the callable built-in
pretty early on in the 3.x series (3.1 or 3.2?).

8 years agoCloses #27976: Deprecate bundled full copy of libffi
Zachary Ware [Sat, 10 Sep 2016 00:01:21 +0000 (17:01 -0700)]
Closes #27976: Deprecate bundled full copy of libffi

Builds on non-OSX UNIX now default to using the system libffi, and warn if the
bundled copy is used.

8 years agoMerge
Raymond Hettinger [Fri, 9 Sep 2016 23:44:53 +0000 (16:44 -0700)]
Merge

8 years agoIssue #22450: Use "Accept: */*" in the default headers for urllib.request
Raymond Hettinger [Fri, 9 Sep 2016 23:43:48 +0000 (16:43 -0700)]
Issue #22450: Use "Accept: */*" in the default headers for urllib.request

8 years agoIssue #25144: Ensures TargetDir is set before continuing with custom install.
Steve Dower [Fri, 9 Sep 2016 23:39:36 +0000 (16:39 -0700)]
Issue #25144: Ensures TargetDir is set before continuing with custom install.

8 years agoIssue #25144: Ensures TargetDir is set before continuing with custom install.
Steve Dower [Fri, 9 Sep 2016 23:37:53 +0000 (16:37 -0700)]
Issue #25144: Ensures TargetDir is set before continuing with custom install.

8 years agoRename test_strlit -> test_string_literals
Zachary Ware [Fri, 9 Sep 2016 23:15:03 +0000 (16:15 -0700)]
Rename test_strlit -> test_string_literals

8 years agoIssue #28053: Applying refactorings, docs and other cleanup to follow.
Davin Potts [Fri, 9 Sep 2016 23:03:10 +0000 (18:03 -0500)]
Issue #28053: Applying refactorings, docs and other cleanup to follow.

8 years agomerge
Raymond Hettinger [Fri, 9 Sep 2016 22:58:00 +0000 (15:58 -0700)]
merge

8 years agoIssue 14976: Note that the queue module is not designed to protect against reentrancy
Raymond Hettinger [Fri, 9 Sep 2016 22:57:13 +0000 (15:57 -0700)]
Issue 14976:  Note that the queue module is not designed to protect against reentrancy

8 years agoFix call to PathCombineW.
Steve Dower [Fri, 9 Sep 2016 22:53:58 +0000 (15:53 -0700)]
Fix call to PathCombineW.

8 years agoWe're not that far in the future yet
Zachary Ware [Fri, 9 Sep 2016 22:47:05 +0000 (15:47 -0700)]
We're not that far in the future yet

8 years agoFix suspicious markup
Zachary Ware [Fri, 9 Sep 2016 22:46:14 +0000 (15:46 -0700)]
Fix suspicious markup

8 years agoRemove buildbot diagnostic code.
Steve Dower [Fri, 9 Sep 2016 22:45:47 +0000 (15:45 -0700)]
Remove buildbot diagnostic code.

8 years agoRemove another useless buildbot script
Zachary Ware [Fri, 9 Sep 2016 22:42:06 +0000 (15:42 -0700)]
Remove another useless buildbot script

8 years ago#20476: add a message_factory policy attribute to email.
R David Murray [Fri, 9 Sep 2016 22:39:18 +0000 (18:39 -0400)]
#20476: add a message_factory policy attribute to email.

8 years agoExpands buildbot validation code
Steve Dower [Fri, 9 Sep 2016 22:39:11 +0000 (15:39 -0700)]
Expands buildbot validation code

8 years agoRemove outdated buildbot scripts
Zachary Ware [Fri, 9 Sep 2016 22:35:38 +0000 (15:35 -0700)]
Remove outdated buildbot scripts

8 years agorepair versionadded directive
Benjamin Peterson [Fri, 9 Sep 2016 22:34:58 +0000 (15:34 -0700)]
repair versionadded directive

8 years agoAdds temporary validation code to buildbot script
Steve Dower [Fri, 9 Sep 2016 22:33:42 +0000 (15:33 -0700)]
Adds temporary validation code to buildbot script

8 years agoEnsures buildbots don't have zip files in build directory.
Steve Dower [Fri, 9 Sep 2016 22:24:11 +0000 (15:24 -0700)]
Ensures buildbots don't have zip files in build directory.

8 years agoAdd links from whatsnew to Windows docs.
Steve Dower [Fri, 9 Sep 2016 22:22:13 +0000 (15:22 -0700)]
Add links from whatsnew to Windows docs.

8 years agoIssue #28025: Convert all ssl module constants to IntEnum and IntFlags.
Christian Heimes [Fri, 9 Sep 2016 22:19:35 +0000 (00:19 +0200)]
Issue #28025: Convert all ssl module constants to IntEnum and IntFlags.

8 years agorepair reST
Benjamin Peterson [Fri, 9 Sep 2016 22:14:56 +0000 (15:14 -0700)]
repair reST

8 years agoMerge heads
Serhiy Storchaka [Fri, 9 Sep 2016 22:14:38 +0000 (01:14 +0300)]
Merge heads

8 years agoAdds search path changes to whatsnew/3.6.rst
Steve Dower [Fri, 9 Sep 2016 22:09:30 +0000 (15:09 -0700)]
Adds search path changes to whatsnew/3.6.rst

8 years agoAdds documentation for pythonXX.zip as a landmark.
Steve Dower [Fri, 9 Sep 2016 22:07:46 +0000 (15:07 -0700)]
Adds documentation for pythonXX.zip as a landmark.

8 years agoremove more READ_TIMESTAMP
Benjamin Peterson [Fri, 9 Sep 2016 22:03:18 +0000 (15:03 -0700)]
remove more READ_TIMESTAMP

8 years agoremove READ_TIMESTAMP macro
Benjamin Peterson [Fri, 9 Sep 2016 22:02:11 +0000 (15:02 -0700)]
remove READ_TIMESTAMP macro

8 years agoremove ceval timestamp support
Benjamin Peterson [Fri, 9 Sep 2016 21:57:58 +0000 (14:57 -0700)]
remove ceval timestamp support

8 years agoIssue #433028: Added support of modifier spans in regular expressions.
Serhiy Storchaka [Fri, 9 Sep 2016 21:57:55 +0000 (00:57 +0300)]
Issue #433028: Added support of modifier spans in regular expressions.

8 years agoIssue #24186: Reenable optimised OpenSSL function
Steve Dower [Fri, 9 Sep 2016 21:57:39 +0000 (14:57 -0700)]
Issue #24186: Reenable optimised OpenSSL function

8 years agoIssue #26331: Implement the parsing part of PEP 515.
Brett Cannon [Fri, 9 Sep 2016 21:57:09 +0000 (14:57 -0700)]
Issue #26331: Implement the parsing part of PEP 515.

Thanks to Georg Brandl for the patch.

8 years agoMerge heads
Serhiy Storchaka [Fri, 9 Sep 2016 21:55:01 +0000 (00:55 +0300)]
Merge heads

8 years agoIssue #25856: The __module__ attribute of extension classes and functions
Serhiy Storchaka [Fri, 9 Sep 2016 21:53:02 +0000 (00:53 +0300)]
Issue #25856: The __module__ attribute of extension classes and functions
now is interned. This leads to more compact pickle data with protocol 4.

8 years agoissue27985 - fix the incorrect duplicate class name in the lib2to3
Gregory P. Smith [Fri, 9 Sep 2016 21:48:08 +0000 (14:48 -0700)]
issue27985 - fix the incorrect duplicate class name in the lib2to3
test.  call it TestVarAnnotations instead.

8 years agoMerge asyncio upstream.
Guido van Rossum [Fri, 9 Sep 2016 21:26:31 +0000 (14:26 -0700)]
Merge asyncio upstream.

8 years agoIssue #27810: Add _PyCFunction_FastCallKeywords()
Victor Stinner [Fri, 9 Sep 2016 21:07:44 +0000 (14:07 -0700)]
Issue #27810: Add _PyCFunction_FastCallKeywords()

Use _PyCFunction_FastCallKeywords() in ceval.c: it allows to remove a lot of
code from ceval.c which was only used to call C functions.

8 years agoIssue #27874: Allows use of pythonXX.zip file as landmark on Windows
Steve Dower [Fri, 9 Sep 2016 21:22:43 +0000 (14:22 -0700)]
Issue #27874: Allows use of pythonXX.zip file as landmark on Windows

8 years agoPrevent PGO build for x86 releases.
Steve Dower [Fri, 9 Sep 2016 21:21:24 +0000 (14:21 -0700)]
Prevent PGO build for x86 releases.

8 years agoremove all usage of Py_LOCAL
Benjamin Peterson [Fri, 9 Sep 2016 20:54:34 +0000 (13:54 -0700)]
remove all usage of Py_LOCAL

8 years agoIssue #24320: Drop an old setuptools-induced hack.
Eric Snow [Fri, 9 Sep 2016 20:30:54 +0000 (13:30 -0700)]
Issue #24320: Drop an old setuptools-induced hack.

8 years agoRemove unused suspicious rules
Zachary Ware [Fri, 9 Sep 2016 20:26:47 +0000 (13:26 -0700)]
Remove unused suspicious rules

8 years agoAdd tix deprecation to whatsnew
Zachary Ware [Fri, 9 Sep 2016 20:25:44 +0000 (13:25 -0700)]
Add tix deprecation to whatsnew

8 years agoCloses #27314: Fixes launcher installer upgrade table.
Steve Dower [Fri, 9 Sep 2016 20:19:09 +0000 (13:19 -0700)]
Closes #27314: Fixes launcher installer upgrade table.

8 years agoIssue #19489: Merge with 3.5
Zachary Ware [Fri, 9 Sep 2016 20:15:47 +0000 (13:15 -0700)]
Issue #19489: Merge with 3.5

8 years agoIssue #19489: Add NEWS and ACKS
Zachary Ware [Fri, 9 Sep 2016 20:14:42 +0000 (13:14 -0700)]
Issue #19489: Add NEWS and ACKS

8 years agoCloses #19489: Merge with 3.5
Zachary Ware [Fri, 9 Sep 2016 20:11:58 +0000 (13:11 -0700)]
Closes #19489: Merge with 3.5

8 years agoIssue #19489: Move the search box from sidebar to header and footer.
Zachary Ware [Fri, 9 Sep 2016 20:11:27 +0000 (13:11 -0700)]
Issue #19489: Move the search box from sidebar to header and footer.

8 years agoRename Future._blocking to _asyncio_future_blocking.
Guido van Rossum [Fri, 9 Sep 2016 19:58:15 +0000 (12:58 -0700)]
Rename Future._blocking to _asyncio_future_blocking.

This is now an official "protected" API that can be used to write
classes that are duck-type-compatible with Future without subclassing
it.  (For that purpose I also changed isinstance(result, Future) to
check for this attribute instead.)

Hopefully Amber Brown can use this to make Twisted.Deferred compatible
with asyncio.Future.

Tests and docs are TBD. (Also there are more isinstance() checks to fix.)