summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36673: Implement comment/PI parsing support for the TreeBuilder in ↵Stefan Behnel2019-05-016-54/+630
| | | | | | | | ElementTree. (#12883) * bpo-36673: Implement comment/PI parsing support for the TreeBuilder in ElementTree. * bpo-36673: Rewrite the comment/PI factory handling for the TreeBuilder in "_elementtree" to make it use the same factories as the ElementTree module, and to make it explicit when the comments/PIs are inserted into the tree and when they are not (which is the default).
* bpo-27682: Handle client connection terminations in wsgiref (GH-9713)Petter Strandmark2019-05-013-0/+24
|
* MNT: set stacklevel in the getfullargspec deprecation warning to 2 (GH-13029)Thomas A Caswell2019-05-011-1/+1
| | | | | | This is consistent with the rest of the `warnings.warn` usage in the inspect.py module and aids identifying code that needs to be fixed. This warning came in via d5d2b4546939b98244708e5bb0cfccd55b99d244
* bpo-36763: Add _PyCoreConfig_SetString() (GH-13035)Victor Stinner2019-05-013-168/+251
| | | | | | | | | | | | Add 3 new config methods: * _PyCoreConfig_SetString() * _PyCoreConfig_SetWideString() * _PyCoreConfig_SetWideStringFromString() Changes: * _PyCoreConfig_Copy() returns _PyInitError. * Add CONFIG_GET_ENV_DUP().
* bpo-30458: Disable https related urllib tests on a build without ssl (GH-13032)Xtreak2019-05-011-0/+2
| | | | | | These tests require an SSL enabled build. Skip these tests when python is built without SSL to fix test failures. https://bugs.python.org/issue30458
* remove jython support from unittest.mock (GH#13033)Chris Withers2019-05-013-25/+2
|
* bpo-36763: Rework _PyInitError API (GH-13031)Victor Stinner2019-05-018-45/+57
| | | | | | | | | * Remove _PyInitError.user_err field and _Py_INIT_USER_ERR() macro: use _Py_INIT_ERR() instead. _Py_ExitInitError() now longer calls abort() on error: exit with exit code 1 instead. * Add _PyInitError._type private field. * exitcode field type is now unsigned int on Windows. * Rename prefix field to _func. * Rename msg field to err_msg.
* bpo-30458: Disallow control chars in http URLs. (GH-12755)Gregory P. Smith2019-05-014-2/+71
| | | Disallow control chars in http URLs in urllib.urlopen. This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.
* bpo-36763: Add _PyCoreConfig_SetArgv() (GH-13030)Victor Stinner2019-05-015-17/+58
| | | | | | | | | * Add 2 new config methods: * _PyCoreConfig_SetArgv() * _PyCoreConfig_SetWideArgv() * Add also an internal _PyCoreConfig_SetPyArgv() method. * Remove 'args' parameter from _PyCoreConfig_Read().
* bpo-36763: Fix Py_SetStandardStreamEncoding() (GH-13028)Victor Stinner2019-04-302-3/+6
| | | | Fix memory leak in Py_SetStandardStreamEncoding(): release memory if the function is called twice.
* Don't report deleted attributes in __dir__ (GH#10148)Mario Corchero2019-04-303-2/+15
| | | | | | When an attribute is deleted from a Mock, a sentinel is added rather than just deleting the attribute. This commit checks for such sentinels when returning the child mocks in the __dir__ method as users won't expect deleted attributes to appear when performing dir(mock).
* bpo-36742: Fixes handling of pre-normalization characters in urlsplit() ↵Steve Dower2019-04-303-4/+14
| | | | (GH-13017)
* bpo-36734: Fix compilation of faulthandler.c on HP-UX (GH-12970)Victor Stinner2019-04-302-1/+4
| | | Initialize "stack_t current_stack" to zero using memset().
* bpo-25430: improve performance of IPNetwork.__contains__ (GH-1785)gescheit2019-04-302-2/+2
| | | make a compare in bit-operation manner.
* bpo-36018: Test idempotence. Test two methods against one-another. (GH-13021)Raymond Hettinger2019-04-301-0/+23
|
* closes bpo-35329: Change 'Package' to 'package' in accordance with PEP8. ↵Utkarsh Gupta2019-04-301-1/+1
| | | | (GH-13008)
* bpo-36751: Deprecate getfullargspec and report positional-only args as ↵Pablo Galindo2019-04-306-61/+74
| | | | | | | | regular args (GH-13016) * bpo-36751: Deprecate getfullargspec and report positional-only args as regular args * Use inspect.signature in testhelpers
* bpo-36232: Improve error message on dbm.open() when the db doesn't exist ↵Marco Rougeth2019-04-293-2/+5
| | | | (GH-12060)
* Prevent macOS installer build failure if ABIFLAGS is empty. (GH-13012)Ned Deily2019-04-291-2/+4
|
* bpo-34602: Avoid failures setting macOS stack resource limit (GH-13011)Ned Deily2019-04-293-12/+3
| | | | | | | | | | | | Under some conditions the earlier fix for bpo-18075, "Infinite recursion tests triggering a segfault on Mac OS X", now causes failures on macOS when attempting to change stack limit with resource.setrlimit resource.RLIMIT_STACK, like regrtest does when running the test suite. The reverted change had specified a non-default stack size when linking the python executable on macOS. As of macOS 10.14.4, the previous code causes a hard failure when running tests, although similar failures had been seen under some conditions under some earlier systems. For now, revert the original change and resume using the default stack size when linking the interpreter.
* bpo-1613500: Don't hardcode output file mode in fileinput.FileInput (GH-12986)Berker Peksag2019-04-293-2/+16
|
* bpo-36004: Add date.fromisocalendar (GH-11888)Paul Ganssle2019-04-296-0/+209
| | | | This commit implements the first version of date.fromisocalendar, the inverse function for date.isocalendar.
* bpo-35952: Fix test.pythoninfo when the compiler is missing (GH-13007)xdegaye2019-04-292-4/+12
|
* Add initial 'whatsnew' section for PEP 570 (GH-12942)Guido van Rossum2019-04-291-0/+25
|
* bpo-36540: PEP 570 -- Implementation (GH-12701)Pablo Galindo2019-04-2938-4706/+5767
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit contains the implementation of PEP570: Python positional-only parameters. * Update Grammar/Grammar with new typedarglist and varargslist * Regenerate grammar files * Update and regenerate AST related files * Update code object * Update marshal.c * Update compiler and symtable * Regenerate importlib files * Update callable objects * Implement positional-only args logic in ceval.c * Regenerate frozen data * Update standard library to account for positional-only args * Add test file for positional-only args * Update other test files to account for positional-only args * Add News entry * Update inspect module and related tests
* Revert "bpo-36356: Destroy the GIL at exit (GH-12453)" (GH613006)Victor Stinner2019-04-295-26/+18
| | | This reverts commit b36e5d627d4232a01850707eb78a5067f3fd77f4.
* bpo-36356: Destroy the GIL at exit (GH-12453)Victor Stinner2019-04-295-18/+26
| | | | | | * Add _PyEval_FiniThreads2(). _PyEval_FiniThreads() now only clears the pending lock, whereas _PyEval_FiniThreads2() destroys the GIL. * pymain_free() now calls _PyEval_FiniThreads2(). * Py_FinalizeEx() now calls _PyEval_FiniThreads().
* bpo-36747: Remove the stale scriptsinstall Makefile target (GH-13003)xdegaye2019-04-292-8/+1
|
* bpo-36475: Finalize PyEval_AcquireLock() and PyEval_AcquireThread() properly ↵Joannah Nanjekye2019-04-294-12/+51
| | | | | | | | (GH-12667) PyEval_AcquireLock() and PyEval_AcquireThread() now terminate the current thread if called while the interpreter is finalizing, making them consistent with PyEval_RestoreThread(), Py_END_ALLOW_THREADS, and PyGILState_Ensure().
* bpo-21536: On Android, C extensions are linked to libpython (GH-12989)xdegaye2019-04-299-10/+47
|
* Fix typo in 'tandem' word (GH-12998) (GH-12998)Andrey2019-04-291-1/+1
|
* bpo-36546: More tests: type preservation and equal inputs (#13000)Raymond Hettinger2019-04-291-12/+18
|
* bpo-36729: Delete unused text variable on tests. (GH-12959)Emmanuel Arias2019-04-291-4/+0
|
* bpo-36745: Fix a possible reference leak in PyObject_SetAttr() (GH-12993)Zackery Spytz2019-04-281-1/+3
| | | https://bugs.python.org/issue36745
* bpo-36715: Add usage note for dict.fromkeys() (GH-12974)Raymond Hettinger2019-04-281-1/+4
|
* bpo-32424: Improve test coverage for xml.etree.ElementTree (GH-12891)Gordon P. Hemsley2019-04-284-2/+89
| | | | * Fix typo in test_cyclic_gc subtest * Improve test coverage for xml.etree.ElementTree
* bpo-2091: Fix typo in exception message (GH-12987)Berker Peksag2019-04-271-1/+1
|
* bpo-36025: Fix PyDate_FromTimestamp API (GH-11922)Paul Ganssle2019-04-274-2/+126
| | | | | | | | | | | | | In the process of converting the date.fromtimestamp function to use argument clinic in GH-8535, the C API for PyDate_FromTimestamp was inadvertently changed to expect a timestamp object rather than an argument tuple. This PR fixes this backwards-incompatible change by adding a new wrapper function for the C API function that unwraps the argument tuple and passes it to the underlying function. This PR also adds tests for both PyDate_FromTimestamp and PyDateTime_FromTimestamp to prevent any further regressions.
* bpo-36722: Style and grammar edits for ABI news entries (GH-12979)Paul Ganssle2019-04-274-22/+24
|
* Syntax highlight IDLE html doc code example. (GH-12981)Terry Jan Reedy2019-04-272-29/+25
| | | The new markup is currently ignored by IDLE's tk doc display.
* bpo-36722: Don't define ALT_SOABI for Py_TRACE_REFS build (GH-12973)Victor Stinner2019-04-263-6/+14
| | | | Py_TRACE_REFS ABI is incompatible with release and debug (Py_DEBUG) ABI.
* bpo-36722: Add What's New entry for debug ABI (GH-12957)Victor Stinner2019-04-261-0/+24
|
* bpo-21536: Revert Makefile change on python-config (GH-12971)Victor Stinner2019-04-261-1/+3
| | | | Misc/python-config.sh lives in the build directory, not in the source directory.
* bpo-31525: Increase minimum sqlite version number check (GH-12923)Charles Pigott2019-04-261-3/+3
|
* bpo-36733: Fix PYTHONPATH for make regen-add (GH-12969)Victor Stinner2019-04-261-2/+2
| | | | Add PYTHONPATH=$(srcdir) to run $(PYTHON_FOR_REGEN) -m Parser.pgen, so it's possible to build Python from a different directory.
* bpo-36356: pymain_exit_error() only call pymain_free() for exit (GH-12968)Victor Stinner2019-04-263-3/+10
| | | Add _Py_INIT_HAS_EXITCODE() macro.
* bpo-36719: regrtest closes explicitly WindowsLoadTracker (GH-12965)Victor Stinner2019-04-262-14/+29
| | | | Regrtest.finalize() now closes explicitly the WindowsLoadTracker instance.
* bpo-36719: Fix regrtest re-run (GH-12964)Victor Stinner2019-04-263-14/+35
| | | | | Properly handle a test which fail but then pass. Add test_rerun_success() unit test.
* bpo-36719: regrtest always detect uncollectable objects (GH-12951)Victor Stinner2019-04-265-69/+66
| | | | | | | regrtest now always detects uncollectable objects. Previously, the check was only enabled by --findleaks. The check now also works with -jN/--multiprocess N. --findleaks becomes a deprecated alias to --fail-env-changed.
* bpo-36669: add matmul support to weakref.proxy (GH-12932)Mark Dickinson2019-04-265-0/+31
|