summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31324: Optimize support._match_test() (#4421)Victor Stinner2017-11-214-15/+111
| | | | | | | | | | | * Rename support._match_test() to support.match_test(): make it public * Remove support.match_tests global variable. It is replaced with a new support.set_match_tests() function, so match_test() doesn't have to check each time if patterns were modified. * Rewrite match_test(): use different code paths depending on the kind of patterns for best performances. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
* bpo-32105: add asyncio.BaseEventLoop.connect_accepted_socket versionadded to ↵AraHaan2017-11-212-0/+4
| | | | documentation. (#4491)
* bpo-31672 - Add one last minor clarification for idpattern (#4483)Barry Warsaw2017-11-212-6/+11
| | | Add one last minor clarification for idpattern
* Add comment and improve variable name in roundrobin() (#4486)Raymond Hettinger2017-11-211-4/+5
|
* bpo-32043: Rephrase -X dev documentation (#4478)Victor Stinner2017-11-211-4/+5
| | | | * should not be more verbose if the code is correct * enabled checks can be "expensive"
* bpo-32030: Add more options to _PyCoreConfig (#4485)Victor Stinner2017-11-219-57/+41
| | | | | | Py_Main() now handles two more -X options: * -X showrefcount: new _PyCoreConfig.show_ref_count field * -X showalloccount: new _PyCoreConfig.show_alloc_count field
* bpo-32089: Fix warnings filters in dev mode (#4482)Victor Stinner2017-11-217-39/+97
| | | | | | | | | | The developer mode (-X dev) now creates all default warnings filters to order filters in the correct order to always show ResourceWarning and make BytesWarning depend on the -b option. Write a functional test to make sure that ResourceWarning is logged twice at the same location in the developer mode. Add a new 'dev_mode' field to _PyCoreConfig.
* bpo-32094: Update subprocess for -X dev (#4480)Victor Stinner2017-11-202-2/+79
| | | | | | | | Modify subprocess._args_from_interpreter_flags() to handle -X dev option. Add also unit tests for test.support.args_from_interpreter_flags() and test.support.optim_args_from_interpreter_flags().
* bpo-32066: Support pathlib.Path in create_unix_connection; sock arg should ↵Yury Selivanov2017-11-205-8/+31
| | | | be optional (#4447)
* bpo-32088: Display Deprecation in debug mode (#4474)Victor Stinner2017-11-204-7/+24
| | | | | | | | When Python is build is debug mode (Py_DEBUG), DeprecationWarning, PendingDeprecationWarning and ImportWarning warnings are now displayed by default. test_venv: run "-m pip" and "-m ensurepip._uninstall" with -W ignore::DeprecationWarning since pip code is not part of Python.
* bpo-32050: Fix -x option documentation (#4475)Victor Stinner2017-11-201-2/+0
| | | | The line number in correct when using the -x option: Py_Main() uses ungetc() to not skip the first newline character.
* bpo-32047: -X dev enables asyncio debug mode (#4418)Victor Stinner2017-11-206-18/+42
| | | | The new -X dev command line option now also enables asyncio debug mode.
* Remove duplicated import from datetime tests (#4444)Riccardo Magliocchetti2017-11-201-2/+0
|
* bpo-30904: Removed duplicated Host: header. (#4465)Vinay Sajip2017-11-191-1/+3
|
* Remove outdated .pyo reference from msilib docs (GH-4461)Berker Peksag2017-11-191-1/+1
| | | | | Since f299abdafa0f2b6eb7abae274861b19b361c96bc the remove_pyc() method no longer tries to remove .pyo files.
* Document parameters of BaseServer.finish_request() (GH-4445)Masayuki Yamamoto2017-11-191-1/+1
|
* [Doc] Update opcode for var-positional arguments (#4446)Moses Koledoye2017-11-181-1/+1
| | | `BUILD_MAP_UNPACK_WITH_CALL` was duplicated as the opcode for both var-positional and var-keyword arguments. The opcode for the former was updated as `BUILD_TUPLE_UNPACK_WITH_CALL`.
* bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` (GH-4441)xdegaye2017-11-181-1/+1
| | | When there is a symlink in the directory path of the standard library.
* bpo-29185: Fix `test_distutils` failures on Android (GH-4438)xdegaye2017-11-182-2/+10
| | | | * Run gzip with separate command line options (Android understands '-f9' as the name of a file). * Creation of a hard link is controled by SELinux on Android.
* bpo-29184: Skip test_socketserver tests on PermissionError raised by Android ↵xdegaye2017-11-181-5/+14
| | | | (GH-4387)
* bpo-32069: Drop legacy SSL transport (#4451)Andrew Svetlov2017-11-187-705/+5
| | | | | | | | | | * Drop legacy SSL transport * Drop unused import * Fix Windows tests * Drop never executed on Python 3.4+ code
* bpo-31867: Remove duplicates in default mimetypes. (#4388)Henk-Jaap Wagenaar2017-11-171-4/+0
|
* tokenizer: Remove unused tabs options (#4422)Victor Stinner2017-11-172-34/+11
| | | | | | | | | | Remove the following fields from tok_state structure which are now used unused: * altwarning: "Issue warning if alternate tabs don't match" * alterror: "Issue error if alternate tabs don't match" * alttabsize: "Alternate tab spacing" Replace alttabsize variable with ALTTABSIZE define.
* bpo-31691: Specify where to find build instructions for the Windows ↵native-api2017-11-161-0/+2
| | | | installer (#4426)
* Fix typo in atexit documentation. (GH-4419)Erik Bray2017-11-161-1/+1
| | | `kargs` -> `kwargs`
* bpo-31702: Allow to specify rounds for SHA-2 hashing in crypt.mksalt(). (#4110)Serhiy Storchaka2017-11-165-28/+74
| | | | The log_rounds parameter for Blowfish has been replaced with the rounds parameter.
* bpo-32043: New "developer mode": "-X dev" option (#4413)Victor Stinner2017-11-167-25/+110
| | | | | | | | | | | | | Add a new "developer mode": new "-X dev" command line option to enable debug checks at runtime. Changes: * Add unit tests for -X dev * test_cmd_line: replace test.support with support. * Fix _PyRuntimeState_Fini(): Use the same memory allocator than _PyRuntimeState_Init(). * Fix _PyMem_GetDefaultRawAllocator()
* bpo-30349: Raise FutureWarning for nested sets and set operations (#1553)Serhiy Storchaka2017-11-168-9/+106
| | | | in regular expressions.
* bpo-32037: Use the INT opcode for 32-bit integers in protocol 0 pickles. (#4407)Serhiy Storchaka2017-11-165-63/+70
|
* bpo-30143: 2to3 now generates a code that uses abstract collection classes ↵Serhiy Storchaka2017-11-164-16/+18
| | | | | | (#1262) from collections.abc rather than collections.
* bpo-32030: Enhance Py_Main() (#4412)Victor Stinner2017-11-1612-383/+467
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parse more env vars in Py_Main(): * Add more options to _PyCoreConfig: * faulthandler * tracemalloc * importtime * Move code to parse environment variables from _Py_InitializeCore() to Py_Main(). This change fixes a regression from Python 3.6: PYTHONUNBUFFERED is now read before calling pymain_init_stdio(). * _PyFaulthandler_Init() and _PyTraceMalloc_Init() now take an argument to decide if the module has to be enabled at startup. * tracemalloc_start() is now responsible to check the maximum number of frames. Other changes: * Cleanup Py_Main(): * Rename some pymain_xxx() subfunctions * Add pymain_run_python() subfunction * Cleanup Py_NewInterpreter() * _PyInterpreterState_Enable() now reports failure * init_hash_secret() now considers pyurandom() failure as an "user error": don't fail with abort(). * pymain_optlist_append() and pymain_strdup() now sets err on memory allocation failure.
* bpo-32030: Split Py_Main() into subfunctions (#4399)Victor Stinner2017-11-1518-643/+1332
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't use "Python runtime" anymore to parse command line options or to get environment variables: pymain_init() is now a strict separation. * Use an error message rather than "crashing" directly with Py_FatalError(). Limit the number of calls to Py_FatalError(). It prepares the code to handle errors more nicely later. * Warnings options (-W, PYTHONWARNINGS) and "XOptions" (-X) are now only added to the sys module once Python core is properly initialized. * _PyMain is now the well identified owner of some important strings like: warnings options, XOptions, and the "program name". The program name string is now properly freed at exit. pymain_free() is now responsible to free the "command" string. * Rename most methods in Modules/main.c to use a "pymain_" prefix to avoid conflits and ease debug. * Replace _Py_CommandLineDetails_INIT with memset(0) * Reorder a lot of code to fix the initialization ordering. For example, initializing standard streams now comes before parsing PYTHONWARNINGS. * Py_Main() now handles errors when adding warnings options and XOptions. * Add _PyMem_GetDefaultRawAllocator() private function. * Cleanup _PyMem_Initialize(): remove useless global constants: move them into _PyMem_Initialize(). * Call _PyRuntime_Initialize() as soon as possible: _PyRuntime_Initialize() now returns an error message on failure. * Add _PyInitError structure and following macros: * _Py_INIT_OK() * _Py_INIT_ERR(msg) * _Py_INIT_USER_ERR(msg): "user" error, don't abort() in that case * _Py_INIT_FAILED(err)
* bpo-32034: Make IncompleteReadError & LimitOverrunError pickleable #4409Yury Selivanov2017-11-153-0/+25
|
* bpo-32025: Add time.thread_time() (#4410)Antoine Pitrou2017-11-155-0/+206
| | | | | | | | | | | | | | * bpo-32025: Add time.thread_time() * Add missing #endif * Add NEWS blurb * Add docs and whatsnew * Address review comments * Review comments
* bpo-32018: Fix inspect.signature repr to follow PEP 8 (#4408)Dong-hee Na2017-11-154-5/+10
|
* bpo-30399: Get rid of trailing comma in the repr of BaseException. (#1650)Serhiy Storchaka2017-11-155-12/+18
|
* bpo-30950: Convert round() to Argument Clinic. (#2740)Serhiy Storchaka2017-11-152-20/+51
|
* bpo-32011: Revert "Issue #15480: Remove the deprecated and unused TYPE_INT64 ↵Serhiy Storchaka2017-11-153-0/+46
| | | | | | | code from marshal." (#4381) Simplify the reverted code. This reverts commit e9bbe8b87ba2874efba0474af5cc7d5941dbf742.
* bpo-32023: Disallow genexprs without parenthesis in class definitions. (#4400)Serhiy Storchaka2017-11-154-7/+23
|
* bpo-31949: Fixed several issues in printing tracebacks ↵Serhiy Storchaka2017-11-153-51/+93
| | | | | | | | | | | | (PyTraceBack_Print()). (#4289) * Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks. * Setting sys.tracebacklimit to None now causes using the default limit. * Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using the limit LONG_MAX rather than the default limit. * Fixed integer overflows in the case of more than 2**31 traceback items on Windows. * Fixed output errors handling.
* bpo-32032: Test both implementations of module-level pickle API. (#4401)Serhiy Storchaka2017-11-153-18/+25
|
* Changed lambda to str.strip in _strip_spaces in logging.config (#4332)sanjayp2017-11-151-2/+2
|
* bpo-32012: Disallow trailing comma after genexpr without parenthesis. (#4382)Serhiy Storchaka2017-11-154-13/+45
|
* bpo-31948: Fix broken links in msilib docs (GH-4397)Jesse-Bakker2017-11-141-33/+33
|
* bpo-15606: Improve the re.VERBOSE documentation. (#4366)Serhiy Storchaka2017-11-141-1/+2
|
* bpo-32015: Asyncio looping during simultaneously socket read/write an… (#4386)Andrey Egorov2017-11-143-38/+79
| | | | | | | | | | | | * bpo-32015: Asyncio cycling during simultaneously socket read/write and reconnection * Tests fix * Tests fix * News add * Add new unit tests
* bpo-32020: arraymodule: Correct missing Py_DECREF in failure case of ↵Mat M2017-11-141-1/+3
| | | | make_array() (#4391)
* bpo-16055: Fixes incorrect error text for int('1', base=1000) (#4376)Sanyam Khurana2017-11-131-1/+1
| | | | | | * bpo-16055: Fixes incorrect error text for int('1', base=1000) * bpo-16055: Address review comments
* bpo-31979: Simplify transforming decimals to ASCII (#4336)Serhiy Storchaka2017-11-137-139/+63
| | | | | in int(), float() and complex() parsers. This also speeds up parsing non-ASCII numbers by around 20%.
* bpo-28369: Enhance transport socket check in add_reader/writer (#4365)Yury Selivanov2017-11-134-1/+90
|