9522a21 | Barry Warsaw | 27 November 2017, 19:40:10 UTC | bpo-32107 - Better merge of #4494 (#4576) Improve UUID1 MAC address calculation and related tests. There are two bits in the MAC address that are relevant to UUID1. The first is the locally administered vs. universally administered bit (second least significant of the first octet). Physical network interfaces such as ethernet ports and wireless adapters will always be universally administered, but some interfaces --such as the interface that MacBook Pros communicate with their Touch Bars-- are locally administered. The former are guaranteed to be globally unique, while the latter are demonstrably *not* globally unique and are in fact the same on every MBP with a Touch Bar. With this bit is set, the MAC is locally administered; with it unset it is universally administered. The other bit is the multicast bit (least significant bit of the first octet). When no other MAC address can be found, RFC 4122 mandates that a random 48-bit number be generated. This randomly generated number *must* have the multicast bit set. The improvements in uuid.py include: * Preferentially return a universally administered MAC address, falling back to a locally administered address if none of the former can be found. * Improve several coding style issues, such as adding explicit returns of None, using a more readable bitmask pattern, and assuming that the ultimate fallback, random MAC generation will not fail (and propagating any exception there instead of swallowing them). Improvements in test_uuid.py include: * Always testing the calculated MAC for universal administration, unless explicitly disabled (i.e. for the random case), or implicitly disabled due to running in the Travis environment. Travis test machines have *no* universally administered MAC address at the time of this writing. | 27 November 2017, 19:40:10 UTC |
c975878 | Victor Stinner | 27 November 2017, 15:57:07 UTC | bpo-27535: Fix memory leak with warnings ignore (#4489) The warnings module doesn't leak memory anymore in the hidden warnings registry for the "ignore" action of warnings filters. The warn_explicit() function doesn't add the warning key to the registry anymore for the "ignore" action. | 27 November 2017, 15:57:07 UTC |
21c7730 | Victor Stinner | 27 November 2017, 11:11:55 UTC | bpo-32089: Use default action for ResourceWarning (#4584) In development and debug mode, use the "default" action, rather than the "always" action, for ResourceWarning in the default warnings filters. | 27 November 2017, 11:11:55 UTC |
c172fc5 | Jason Yang | 27 November 2017, 01:18:33 UTC | bpo-32051: Fix name shadowing in multiprocessing docs (GH-4469) | 27 November 2017, 01:18:33 UTC |
ede2ac9 | Mandeep Singh | 26 November 2017, 22:31:27 UTC | bpo-23033: Improve SSL Certificate handling (GH-937) Wildcard is now supported in hostname when it is one and only character in the leftmost segment. | 26 November 2017, 22:31:27 UTC |
0cd2e81 | Ivan Levkivskyi | 26 November 2017, 22:23:02 UTC | bpo-29879: Update typing documentation. (GH-4573) - Add "version added: 3.5.2" note where it was missing. - Remove the mention that Reversible is new in 3.5.2 | 26 November 2017, 22:23:02 UTC |
d8d6b91 | Caleb Hattingh | 26 November 2017, 21:18:30 UTC | bpo-30487: automatically create a venv and install Sphinx when running make (GH-4346) | 26 November 2017, 21:18:30 UTC |
a6fba9b | xdegaye | 26 November 2017, 09:31:44 UTC | bpo-32126: Skip asyncio test when sem_open() is not functional (GH-4559) | 26 November 2017, 09:31:44 UTC |
4274609 | Nick Coghlan | 26 November 2017, 04:19:13 UTC | bpo-32096: Ensure new embedding test can find the encodings module (GH-4566) | 26 November 2017, 04:19:13 UTC |
53efbf3 | Nick Coghlan | 26 November 2017, 03:04:46 UTC | bpo-11063: Handle uuid.h being in default include path (GH-4565) find_file() returns an empty list if it finds the requested header on the standard include path, so header existence checks need to be explicitly against "is not None". | 26 November 2017, 03:04:46 UTC |
cef88b9 | Benjamin Peterson | 25 November 2017, 21:02:55 UTC | mark fatal_error as noreturn (#4563) clang can't figure out that fatal_error is noreturn itself and emits warnings: ../cpython/Python/pylifecycle.c:2116:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn] } ^ ../cpython/Python/pylifecycle.c:2125:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn] } ^ | 25 November 2017, 21:02:55 UTC |
76fdac4 | xdegaye | 25 November 2017, 16:32:27 UTC | bpo-26856: Skip test_pwd on Android until issue 32033 is fixed (GH-4561) | 25 November 2017, 16:32:27 UTC |
77f5139 | xdegaye | 25 November 2017, 16:25:30 UTC | bpo-32059: setup.py now also searches the sysroot paths (GH-4452) detect_modules() in setup.py now also searches the sysroot paths when cross-compiling. | 25 November 2017, 16:25:30 UTC |
cfa797c | Serhiy Storchaka | 25 November 2017, 15:38:20 UTC | bpo-24641: Improved error message for JSON unserializible keys. (#4364) Also updated an example for default() in the module docstring. Removed quotes around type name in other error messages. | 25 November 2017, 15:38:20 UTC |
5b48dc6 | Jonas Haag | 25 November 2017, 15:23:52 UTC | bpo-32071: Add unittest -k option (#4496) * bpo-32071: Add unittest -k option | 25 November 2017, 15:23:52 UTC |
8d9bb11 | Berker Peksag | 25 November 2017, 10:37:22 UTC | bpo-28334: netrc() now uses expanduser() to find .netrc file (GH-4537) Previously, netrc.netrc() was raised an exception if $HOME is not set. Authored-By: Dimitri Merejkowsky <dimitri.merejkowsky@tanker.io> | 25 November 2017, 10:37:22 UTC |
9d5ec80 | Mariatta | 25 November 2017, 05:43:01 UTC | Improve Scheduler Objects documentation. (GH-4556) Mention that the lower the priority number, the higher priority it represents. | 25 November 2017, 05:43:01 UTC |
610e5af | Mandeep Bhutani | 25 November 2017, 04:56:00 UTC | bpo-30004: Fix the code example of using group in Regex Howto Docs (GH-4443) The provided code example was supposed to find repeated words, however it returned false results. | 25 November 2017, 04:56:00 UTC |
9316ee4 | Victor Stinner | 25 November 2017, 02:17:57 UTC | bpo-32030: Add _PyPathConfig_Init() (#4551) * Add _PyPathConfig_Init() and _PyPathConfig_Fini() * Remove _Py_GetPathWithConfig() * _PyPathConfig_Init() returns _PyInitError to allow to handle errors properly * Add pathconfig_clear() * Windows calculate_path_impl(): replace Py_FatalError() with _PyInitError * Py_FinalizeEx() now calls _PyPathConfig_Fini() to release memory * Fix _Py_InitializeMainInterpreter() regression: don't initialize path config if _disable_importlib is false * PyPathConfig now uses dynamically allocated memory | 25 November 2017, 02:17:57 UTC |
706cb31 | Victor Stinner | 25 November 2017, 01:42:18 UTC | bpo-32128: Skip test_nntplib.test_article_head_body() (#4552) The NNTP server currently has troubles with SSL, whereas we don't have the control on this server. This test blocks all CIs, so disable it until a fix can be found. | 25 November 2017, 01:42:18 UTC |
f8802d8 | Ashley Camba | 24 November 2017, 23:39:39 UTC | Asyncion-Dev docs: Fix the reference to sys.excepthook (GH-4414) | 24 November 2017, 23:39:39 UTC |
f04ebe2 | Victor Stinner | 24 November 2017, 23:01:23 UTC | bpo-32030: Add _PyMainInterpreterConfig.program_name (#4548) * Py_Main() now calls Py_SetProgramName() earlier to be able to get the program name in _PyMainInterpreterConfig_ReadEnv(). * Rename prog to program_name * Rename progpath to program_name | 24 November 2017, 23:01:23 UTC |
46972b7 | Victor Stinner | 24 November 2017, 21:55:40 UTC | bpo-32030: Add _PyMainInterpreterConfig_ReadEnv() (#4542) Py_GetPath() and Py_Main() now call _PyMainInterpreterConfig_ReadEnv() to share the same code to get environment variables. Changes: * Add _PyMainInterpreterConfig_ReadEnv() * Add _PyMainInterpreterConfig_Clear() * Add _PyMem_RawWcsdup() * _PyMainInterpreterConfig: rename pythonhome to home * Rename _Py_ReadMainInterpreterConfig() to _PyMainInterpreterConfig_Read() * Use _Py_INIT_USER_ERR(), instead of _Py_INIT_ERR(), for decoding errors: the user is able to fix the issue, it's not a bug in Python. Same change was made in _Py_INIT_NO_MEMORY(). * Remove _Py_GetPythonHomeWithConfig() | 24 November 2017, 21:55:40 UTC |
84c4b19 | Victor Stinner | 24 November 2017, 21:30:27 UTC | bpo-32124: Document C functions safe before init (#4540) Explicitly document C functions and C variables that can be set before Py_Initialize(). | 24 November 2017, 21:30:27 UTC |
da9c8c3 | Victor Stinner | 24 November 2017, 21:06:38 UTC | bpo-32125: Remove Py_UseClassExceptionsFlag flag (#4544) This flag was deprecated and wasn't used anymore since Python 2.0. | 24 November 2017, 21:06:38 UTC |
5742f67 | xdegaye | 24 November 2017, 17:56:22 UTC | bpo-28684: Remove useless import added by the previous commit (GH-4547) | 24 November 2017, 17:56:22 UTC |
78a5722 | Will White | 24 November 2017, 17:28:12 UTC | Improve the String tutorial docs (GH-4541) The paragraph that contains example of string literal concatenation was placed after the section about concatenation using the '+' sign. Moved the paragraph to the appropriate section. | 24 November 2017, 17:28:12 UTC |
0f86cd3 | xdegaye | 24 November 2017, 16:35:55 UTC | bpo-28684: asyncio tests handle PermissionError raised on binding unix sockets (GH-4503) The test.support.skip_unless_bind_unix_socket() decorator is used to skip asyncio tests that fail because the platform lacks a functional bind() function for unix domain sockets (as it is the case for non root users on the recent Android versions that run now SELinux in enforcing mode). | 24 November 2017, 16:35:55 UTC |
19fb134 | Berker Peksag | 24 November 2017, 15:11:18 UTC | bpo-12239: Make GetProperty() return None for VT_EMPTY (GH-4539) The previous behavior was to raise an exception NotImplementedError: result of type 0 when the value of the property is VT_EMPTY. | 24 November 2017, 15:11:18 UTC |
9e87e77 | Victor Stinner | 24 November 2017, 11:09:24 UTC | bpo-32096: Remove obj and mem from _PyRuntime (#4532) bpo-32096, bpo-30860: Partially revert the commit 2ebc5ce42a8a9e047e790aefbf9a94811569b2b6: * Move structures back from Include/internal/mem.h to Objects/obmalloc.c * Remove _PyObject_Initialize() and _PyMem_Initialize() * Remove Include/internal/pymalloc.h * Add test_capi.test_pre_initialization_api(): Make sure that it's possible to call Py_DecodeLocale(), and then call Py_SetProgramName() with the decoded string, before Py_Initialize(). PyMem_RawMalloc() and Py_DecodeLocale() can be called again before _PyRuntimeState_Init(). Co-Authored-By: Eric Snow <ericsnowcurrently@gmail.com> | 24 November 2017, 11:09:24 UTC |
4864a61 | Berker Peksag | 24 November 2017, 09:53:58 UTC | bpo-12382: Make OpenDatabase() raise better exception messages (GH-4528) Previously, 'msilib.OpenDatabase()' function raised a cryptical exception message when it couldn't open or create an MSI file. For example: Traceback (most recent call last): File "<stdin>", line 1, in <module> _msi.MSIError: unknown error 6e | 24 November 2017, 09:53:58 UTC |
cdfe910 | Emanuele Gaifas | 24 November 2017, 08:49:57 UTC | Extending Python Doc minor updates (GH-4518) Move footnote markers to be closer to the related terminology: before the end of the sentence, instead of after. | 24 November 2017, 08:49:57 UTC |
3df02db | Berker Peksag | 23 November 2017, 23:40:26 UTC | bpo-31325: Fix usage of namedtuple in RobotFileParser.parse() (#4529) | 23 November 2017, 23:40:26 UTC |
0858495 | Raymond Hettinger | 23 November 2017, 21:32:23 UTC | bpo-32099 Add deque variant of roundrobin() recipe (#4497) * Minor wording tweaks | 23 November 2017, 21:32:23 UTC |
dcaed6b | Berker Peksag | 23 November 2017, 18:34:20 UTC | bpo-19610: setup() now raises TypeError for invalid types (GH-4519) The Distribution class now explicitly raises an exception when 'classifiers', 'keywords' and 'platforms' fields are not specified as a list. | 23 November 2017, 18:34:20 UTC |
6a54c67 | Victor Stinner | 23 November 2017, 18:02:23 UTC | bpo-31979: Remove unused align_maxchar() function (#4527) | 23 November 2017, 18:02:23 UTC |
b919795 | Victor Stinner | 23 November 2017, 18:02:04 UTC | bpo-32030: Fix calculate_path() on macOS (#4526) | 23 November 2017, 18:02:04 UTC |
b98f171 | Victor Stinner | 23 November 2017, 16:13:44 UTC | bpo-27535: Cleanup create_filter() (#4516) create_filter() now expects the action as a _Py_Identifier which avoids string comparison, and more important, to avoid handling the "unknown action" annoying case. | 23 November 2017, 16:13:44 UTC |
0327bde | Victor Stinner | 23 November 2017, 16:03:20 UTC | bpo-32030: Rewrite calculate_path() (#4521) * calculate_path() rewritten in Modules/getpath.c and PC/getpathp.c * Move global variables into a new PyPathConfig structure. * calculate_path(): * Split the huge calculate_path() function into subfunctions. * Add PyCalculatePath structure to pass data between subfunctions. * Document PyCalculatePath fields. * Move cleanup code into a new calculate_free() subfunction * calculate_init() now handles Py_DecodeLocale() failures properly * calculate_path() is now atomic: only replace PyPathConfig (path_config) at once on success. * _Py_GetPythonHomeWithConfig() now returns an error on failure * Add _Py_INIT_NO_MEMORY() helper: report a memory allocation failure * Coding style fixes (PEP 7) | 23 November 2017, 16:03:20 UTC |
bdb8315 | Berker Peksag | 23 November 2017, 12:47:30 UTC | bpo-1102: View.Fetch() now returns None when it's exhausted (GH-4459) | 23 November 2017, 12:47:30 UTC |
5ce1069 | xdegaye | 23 November 2017, 11:01:36 UTC | bpo-28762: Revert last commit (now using Android Unified Headers) (GH-4488) | 23 November 2017, 11:01:36 UTC |
c06c22e | xdegaye | 23 November 2017, 10:44:38 UTC | bpo-29040: Support building Android with Unified Headers (GH-4492) | 23 November 2017, 10:44:38 UTC |
5ad7ef8 | xdegaye | 23 November 2017, 10:13:22 UTC | bpo-28538: Revert all the changes (now using Android Unified Headers) (GH-4479) | 23 November 2017, 10:13:22 UTC |
1f15111 | Victor Stinner | 23 November 2017, 09:43:14 UTC | bpo-32030: Add _PyMainInterpreterConfig.pythonhome (#4513) * Py_Main() now reads the PYTHONHOME environment variable * Add _Py_GetPythonHomeWithConfig() private function * Add _PyWarnings_InitWithConfig() * init_filters() doesn't get the current core configuration from the current interpreter or Python thread anymore. Pass explicitly the configuration to _PyWarnings_InitWithConfig(). * _Py_InitializeCore() now fails on _PyWarnings_InitWithConfig() failure. * Pass configuration as constant | 23 November 2017, 09:43:14 UTC |
e32e79f | Victor Stinner | 23 November 2017, 00:49:45 UTC | bpo-32030: Move PYTHONPATH to _PyMainInterpreterConfig (#4511) Move _PyCoreConfig.module_search_path_env to _PyMainInterpreterConfig structure. | 23 November 2017, 00:49:45 UTC |
0784a2e | Jesse-Bakker | 23 November 2017, 00:23:28 UTC | bpo-10049: Add a "no-op" (null) context manager to contextlib (GH-4464) Adds a simpler and faster alternative to ExitStack for handling single optional context managers without having to change the lexical structure of your code. | 23 November 2017, 00:23:28 UTC |
20d48a4 | Cheryl Sabella | 23 November 2017, 00:05:25 UTC | bpo-32100: IDLE: Fix pathbrowser errors; improve tests. (#4484) Patch mostly by Cheryl Sabella | 23 November 2017, 00:05:25 UTC |
d434110 | Victor Stinner | 22 November 2017, 23:12:09 UTC | bpo-32030: Add _PyCoreConfig.module_search_path_env (#4504) Changes: * Py_Main() initializes _PyCoreConfig.module_search_path_env from the PYTHONPATH environment variable. * PyInterpreterState_New() now initializes core_config and config fields * Compute sys.path a little bit ealier in _Py_InitializeMainInterpreter() and new_interpreter() * Add _Py_GetPathWithConfig() private function. | 22 November 2017, 23:12:09 UTC |
8265627 | Victor Stinner | 22 November 2017, 22:51:42 UTC | bpo-27535: Optimize warnings.warn() (#4508) * Optimize warnings.filterwarnings(). Replace re.compile('') with None to avoid the cost of calling a regex.match() method, whereas it always matchs. * Optimize get_warnings_attr(): replace PyObject_GetAttrString() with _PyObject_GetAttrId(). Cleanup also create_filter(): * Use _Py_IDENTIFIER() to allow to cleanup strings at Python finalization * Replace Py_FatalError() with a regular exceptions | 22 November 2017, 22:51:42 UTC |
bb11c3c | Victor Stinner | 22 November 2017, 19:58:59 UTC | bpo-31324: Fix test.support.set_match_tests(None) (#4505) | 22 November 2017, 19:58:59 UTC |
803ddd8 | Victor Stinner | 21 November 2017, 23:34:02 UTC | bpo-31324: Optimize support._match_test() (#4421) * 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> | 21 November 2017, 23:34:02 UTC |
431665b | AraHaan | 21 November 2017, 16:06:26 UTC | bpo-32105: add asyncio.BaseEventLoop.connect_accepted_socket versionadded to documentation. (#4491) | 21 November 2017, 16:06:26 UTC |
e256b40 | Barry Warsaw | 21 November 2017, 15:28:13 UTC | bpo-31672 - Add one last minor clarification for idpattern (#4483) Add one last minor clarification for idpattern | 21 November 2017, 15:28:13 UTC |
337cbba | Raymond Hettinger | 21 November 2017, 08:23:34 UTC | Add comment and improve variable name in roundrobin() (#4486) | 21 November 2017, 08:23:34 UTC |
bc9b6e2 | Victor Stinner | 21 November 2017, 02:59:50 UTC | bpo-32043: Rephrase -X dev documentation (#4478) * should not be more verbose if the code is correct * enabled checks can be "expensive" | 21 November 2017, 02:59:50 UTC |
25420fe | Victor Stinner | 21 November 2017, 02:12:22 UTC | bpo-32030: Add more options to _PyCoreConfig (#4485) Py_Main() now handles two more -X options: * -X showrefcount: new _PyCoreConfig.show_ref_count field * -X showalloccount: new _PyCoreConfig.show_alloc_count field | 21 November 2017, 02:12:22 UTC |
09f3a8a | Victor Stinner | 21 November 2017, 01:32:40 UTC | bpo-32089: Fix warnings filters in dev mode (#4482) 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. | 21 November 2017, 01:32:40 UTC |
f39b674 | Victor Stinner | 20 November 2017, 23:24:56 UTC | bpo-32094: Update subprocess for -X dev (#4480) 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(). | 20 November 2017, 23:24:56 UTC |
423fd36 | Yury Selivanov | 20 November 2017, 22:26:28 UTC | bpo-32066: Support pathlib.Path in create_unix_connection; sock arg should be optional (#4447) | 20 November 2017, 22:26:28 UTC |
895862a | Victor Stinner | 20 November 2017, 17:47:03 UTC | bpo-32088: Display Deprecation in debug mode (#4474) 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. | 20 November 2017, 17:47:03 UTC |
c5a2071 | Victor Stinner | 20 November 2017, 16:08:03 UTC | bpo-32050: Fix -x option documentation (#4475) The line number in correct when using the -x option: Py_Main() uses ungetc() to not skip the first newline character. | 20 November 2017, 16:08:03 UTC |
44862df | Victor Stinner | 20 November 2017, 15:14:07 UTC | bpo-32047: -X dev enables asyncio debug mode (#4418) The new -X dev command line option now also enables asyncio debug mode. | 20 November 2017, 15:14:07 UTC |
04dee27 | Riccardo Magliocchetti | 20 November 2017, 08:48:56 UTC | Remove duplicated import from datetime tests (#4444) | 20 November 2017, 08:48:56 UTC |
e96ba18 | Vinay Sajip | 19 November 2017, 18:36:17 UTC | bpo-30904: Removed duplicated Host: header. (#4465) | 19 November 2017, 18:36:17 UTC |
b56becb | Berker Peksag | 19 November 2017, 10:04:25 UTC | Remove outdated .pyo reference from msilib docs (GH-4461) Since f299abdafa0f2b6eb7abae274861b19b361c96bc the remove_pyc() method no longer tries to remove .pyo files. | 19 November 2017, 10:04:25 UTC |
7750bde | Masayuki Yamamoto | 19 November 2017, 07:33:37 UTC | Document parameters of BaseServer.finish_request() (GH-4445) | 19 November 2017, 07:33:37 UTC |
0c71653 | Moses Koledoye | 18 November 2017, 22:49:15 UTC | [Doc] Update opcode for var-positional arguments (#4446) `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`. | 18 November 2017, 22:49:15 UTC |
ebfaa71 | xdegaye | 18 November 2017, 17:20:21 UTC | bpo-32031: Fix pydoc `test_mixed_case_module_names_are_lower_cased` (GH-4441) When there is a symlink in the directory path of the standard library. | 18 November 2017, 17:20:21 UTC |
d34d8fc | xdegaye | 18 November 2017, 17:17:16 UTC | bpo-29185: Fix `test_distutils` failures on Android (GH-4438) * 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. | 18 November 2017, 17:17:16 UTC |
9001d1f | xdegaye | 18 November 2017, 17:10:53 UTC | bpo-29184: Skip test_socketserver tests on PermissionError raised by Android (GH-4387) | 18 November 2017, 17:10:53 UTC |
51d546a | Andrew Svetlov | 18 November 2017, 16:54:05 UTC | bpo-32069: Drop legacy SSL transport (#4451) * Drop legacy SSL transport * Drop unused import * Fix Windows tests * Drop never executed on Python 3.4+ code | 18 November 2017, 16:54:05 UTC |
f02f5e5 | Henk-Jaap Wagenaar | 17 November 2017, 10:10:19 UTC | bpo-31867: Remove duplicates in default mimetypes. (#4388) | 17 November 2017, 10:10:19 UTC |
f2ddc6a | Victor Stinner | 17 November 2017, 09:25:47 UTC | tokenizer: Remove unused tabs options (#4422) 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. | 17 November 2017, 09:25:47 UTC |
fd0fa67 | native-api | 16 November 2017, 23:56:27 UTC | bpo-31691: Specify where to find build instructions for the Windows installer (#4426) | 16 November 2017, 23:56:27 UTC |
d505a29 | Erik Bray | 16 November 2017, 16:48:52 UTC | Fix typo in atexit documentation. (GH-4419) `kargs` -> `kwargs` | 16 November 2017, 16:48:52 UTC |
cede8c9 | Serhiy Storchaka | 16 November 2017, 11:22:51 UTC | bpo-31702: Allow to specify rounds for SHA-2 hashing in crypt.mksalt(). (#4110) The log_rounds parameter for Blowfish has been replaced with the rounds parameter. | 16 November 2017, 11:22:51 UTC |
ccb0442 | Victor Stinner | 16 November 2017, 11:20:31 UTC | bpo-32043: New "developer mode": "-X dev" option (#4413) 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() | 16 November 2017, 11:20:31 UTC |
05cb728 | Serhiy Storchaka | 16 November 2017, 10:38:26 UTC | bpo-30349: Raise FutureWarning for nested sets and set operations (#1553) in regular expressions. | 16 November 2017, 10:38:26 UTC |
3daaafb | Serhiy Storchaka | 16 November 2017, 07:44:43 UTC | bpo-32037: Use the INT opcode for 32-bit integers in protocol 0 pickles. (#4407) | 16 November 2017, 07:44:43 UTC |
0a2abdf | Serhiy Storchaka | 16 November 2017, 07:16:24 UTC | bpo-30143: 2to3 now generates a code that uses abstract collection classes (#1262) from collections.abc rather than collections. | 16 November 2017, 07:16:24 UTC |
a7368ac | Victor Stinner | 16 November 2017, 02:11:45 UTC | bpo-32030: Enhance Py_Main() (#4412) 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. | 16 November 2017, 02:11:45 UTC |
f7e5b56 | Victor Stinner | 15 November 2017, 23:48:08 UTC | bpo-32030: Split Py_Main() into subfunctions (#4399) * 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) | 15 November 2017, 23:48:08 UTC |
43605e6 | Yury Selivanov | 15 November 2017, 22:14:28 UTC | bpo-32034: Make IncompleteReadError & LimitOverrunError pickleable #4409 | 15 November 2017, 22:14:28 UTC |
4bd41c9 | Antoine Pitrou | 15 November 2017, 21:52:21 UTC | bpo-32025: Add time.thread_time() (#4410) * bpo-32025: Add time.thread_time() * Add missing #endif * Add NEWS blurb * Add docs and whatsnew * Address review comments * Review comments | 15 November 2017, 21:52:21 UTC |
762b957 | Dong-hee Na | 15 November 2017, 18:30:59 UTC | bpo-32018: Fix inspect.signature repr to follow PEP 8 (#4408) | 15 November 2017, 18:30:59 UTC |
f8a4c03 | Serhiy Storchaka | 15 November 2017, 15:53:28 UTC | bpo-30399: Get rid of trailing comma in the repr of BaseException. (#1650) | 15 November 2017, 15:53:28 UTC |
aca7f57 | Serhiy Storchaka | 15 November 2017, 15:51:14 UTC | bpo-30950: Convert round() to Argument Clinic. (#2740) | 15 November 2017, 15:51:14 UTC |
00987f6 | Serhiy Storchaka | 15 November 2017, 15:41:05 UTC | bpo-32011: Revert "Issue #15480: Remove the deprecated and unused TYPE_INT64 code from marshal." (#4381) Simplify the reverted code. This reverts commit e9bbe8b87ba2874efba0474af5cc7d5941dbf742. | 15 November 2017, 15:41:05 UTC |
ddbce13 | Serhiy Storchaka | 15 November 2017, 15:39:37 UTC | bpo-32023: Disallow genexprs without parenthesis in class definitions. (#4400) | 15 November 2017, 15:39:37 UTC |
edad8ee | Serhiy Storchaka | 15 November 2017, 15:38:52 UTC | bpo-31949: Fixed several issues in printing tracebacks (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. | 15 November 2017, 15:38:52 UTC |
6545256 | Serhiy Storchaka | 15 November 2017, 12:01:08 UTC | bpo-32032: Test both implementations of module-level pickle API. (#4401) | 15 November 2017, 12:01:08 UTC |
2ae4ad7 | sanjayp | 15 November 2017, 09:28:11 UTC | Changed lambda to str.strip in _strip_spaces in logging.config (#4332) | 15 November 2017, 09:28:11 UTC |
9165f77 | Serhiy Storchaka | 15 November 2017, 06:49:40 UTC | bpo-32012: Disallow trailing comma after genexpr without parenthesis. (#4382) | 15 November 2017, 06:49:40 UTC |
3bda022 | Jesse-Bakker | 14 November 2017, 23:06:15 UTC | bpo-31948: Fix broken links in msilib docs (GH-4397) | 14 November 2017, 23:06:15 UTC |
b0b44b4 | Serhiy Storchaka | 14 November 2017, 15:21:26 UTC | bpo-15606: Improve the re.VERBOSE documentation. (#4366) | 14 November 2017, 15:21:26 UTC |
e1d62e0 | Andrey Egorov | 14 November 2017, 09:18:59 UTC | bpo-32015: Asyncio looping during simultaneously socket read/write an… (#4386) * bpo-32015: Asyncio cycling during simultaneously socket read/write and reconnection * Tests fix * Tests fix * News add * Add new unit tests | 14 November 2017, 09:18:59 UTC |
56935a5 | Mat M | 14 November 2017, 06:00:54 UTC | bpo-32020: arraymodule: Correct missing Py_DECREF in failure case of make_array() (#4391) | 14 November 2017, 06:00:54 UTC |
28b6248 | Sanyam Khurana | 13 November 2017, 21:49:26 UTC | bpo-16055: Fixes incorrect error text for int('1', base=1000) (#4376) * bpo-16055: Fixes incorrect error text for int('1', base=1000) * bpo-16055: Address review comments | 13 November 2017, 21:49:26 UTC |
9b6c60c | Serhiy Storchaka | 13 November 2017, 19:23:48 UTC | bpo-31979: Simplify transforming decimals to ASCII (#4336) in int(), float() and complex() parsers. This also speeds up parsing non-ASCII numbers by around 20%. | 13 November 2017, 19:23:48 UTC |
ce12629 | Yury Selivanov | 13 November 2017, 18:38:22 UTC | bpo-28369: Enhance transport socket check in add_reader/writer (#4365) | 13 November 2017, 18:38:22 UTC |