- 23 Ock, 2019 1 kayıt (commit)
-
-
Manjusaka yazdı
QueueHandler.prepare() now makes a copy of the record before modifying and enqueueing it, to avoid affecting other handlers in the chain.
-
- 22 Ock, 2019 5 kayıt (commit)
-
-
Victor Stinner yazdı
* Split _Py_InitializeCore_impl() into subfunctions: add multiple pycore_init_xxx() functions * Preliminary sys.stderr is now set earlier to get an usable sys.stderr ealier. * Move code into _Py_Initialize_ReconfigureCore() to be able to call it from _Py_InitializeCore(). * Split _PyExc_Init(): create a new _PyBuiltins_AddExceptions() function. * Call _PyExc_Init() earlier in _Py_InitializeCore_impl() and new_interpreter() to get working exceptions earlier. * _Py_ReadyTypes() now returns _PyInitError rather than calling Py_FatalError(). * Misc code cleanup
-
Steve Dower yazdı
-
Victor Stinner yazdı
* The PyByteArray_Init() and PyByteArray_Fini() functions have been removed. They did nothing since Python 2.7.4 and Python 3.2.0, were excluded from the limited API (stable ABI), and were not documented. * Move "_PyXXX_Init()" and "_PyXXX_Fini()" declarations from Include/cpython/pylifecycle.h to Include/internal/pycore_pylifecycle.h. Replace "PyAPI_FUNC(TYPE)" with "extern TYPE". * _PyExc_Init() now returns an error on failure rather than calling Py_FatalError(). Move macros inside _PyExc_Init() and undefine them when done. Rewrite macros to make them look more like statement: add ";" when using them, add "do { ... } while (0)". * _PyUnicode_Init() now returns a _PyInitError error rather than call Py_FatalError(). * Move stdin check from _PySys_BeginInit() to init_sys_streams(). * _Py_ReadyTypes() now returns a _PyInitError error rather than calling Py_FatalError().
-
Lucas Cimon yazdı
When the loop in the pymain_read_conf function in this same file calls pymain_init_cmdline_argv() a 2nd time, the pymain->command buffer of wchar_t is overriden and the previously allocated memory is never freed.
-
Ivan Levkivskyi yazdı
The majority of this PR is tediously passing `end_lineno` and `end_col_offset` everywhere. Here are non-trivial points: * It is not possible to reconstruct end positions in AST "on the fly", some information is lost after an AST node is constructed, so we need two more attributes for every AST node `end_lineno` and `end_col_offset`. * I add end position information to both CST and AST. Although it may be technically possible to avoid adding end positions to CST, the code becomes more cumbersome and less efficient. * Since the end position is not known for non-leaf CST nodes while the next token is added, this requires a bit of extra care (see `_PyNode_FinalizeEndPos`). Unless I made some mistake, the algorithm should be linear. * For statements, I "trim" the end position of suites to not include the terminal newlines and dedent (this seems to be what people would expect), for example in ```python class C: pass pass ``` the end line and end column for the class definition is (2, 8). * For `end_col_offset` I use the common Python convention for indexing, for example for `pass` the `end_col_offset` is 4 (not 3), so that `[0:4]` gives one the source code that corresponds to the node. * I added a helper function `ast.get_source_segment()`, to get source text segment corresponding to a given AST node. It is also useful for testing. An (inevitable) downside of this PR is that AST now takes almost 25% more memory. I think however it is probably justified by the benefits.
-
- 21 Ock, 2019 5 kayıt (commit)
-
-
Minmin Gong yazdı
* Disable x87 control word for non-x86 targets On msvc, x87 control word is only available on x86 target. Need to disable it for other targets to prevent compiling problems. * Include immintrin.h on x86 and x64 only Immintrin.h is only available on x86 and x64. Need to disable it for other targets to prevent compiling problems.
-
-
Pablo Galindo yazdı
PermissionError can be raised if there are directories in the $PATH that are not accessible when using posix_spawnp.
-
Victor Stinner yazdı
Fix sparse file tests of test_tarfile on ppc64le with the tmpfs filesystem. Fix the function testing if the filesystem supports sparse files: create a file which contains data and "holes", instead of creating a file which contains no data. tmpfs effective block size is a page size (tmpfs lives in the page cache). RHEL uses 64 KiB pages on aarch64, ppc64 and ppc64le, only s390x and x86_64 use 4 KiB pages, whereas the test punch holes of 4 KiB. test.pythoninfo: Add resource.getpagesize().
-
Pablo Galindo yazdı
* Allow repeated deletion of unittest.mock.Mock attributes * fixup! Allow repeated deletion of unittest.mock.Mock attributes * fixup! fixup! Allow repeated deletion of unittest.mock.Mock attributes
-
- 20 Ock, 2019 2 kayıt (commit)
-
-
Pablo Galindo yazdı
-
Marc Schlaich yazdı
-
- 18 Ock, 2019 10 kayıt (commit)
-
-
Terry Jan Reedy yazdı
-
Anthony Sottile yazdı
-
Terry Jan Reedy yazdı
It previously deleted Window => Zoom Height by mistake. (Zoom Height is now on the Options menu). On Mac, the settings dialog is accessed via Preferences on the IDLE menu.
-
Ashwin Ramaswami yazdı
Document http.client.parse_headers
-
Christian Heimes yazdı
Make ssl tests less strict and also accept TLSv1 as system default. The changes unbreaks test_min_max_version on Fedora 29. Signed-off-by: Christian Heimes <christian@python.org>
-
Dong-hee Na yazdı
-
Terry Jan Reedy yazdı
'Untitled' violates the PEP 8 standard for .py files
-
Serhiy Storchaka yazdı
-
Tal Einat yazdı
-
Terry Jan Reedy yazdı
Tix was deprecated in 3.6 and the doc is wrong. New users should use ttk.
-
- 17 Ock, 2019 6 kayıt (commit)
-
-
Terry Jan Reedy yazdı
-
Timo Furrer yazdı
-
David H yazdı
Added test for weakreferencing a uuid.UUID object.
-
Dong-hee Na yazdı
Add a deprecated warning for the threading.Thread.isAlive() method.
-
Slam yazdı
Typo fix for method doc, I'm pretty sure coro is meant, because there's no consumer threads for thread-unsafe queue. Most probably this piece of doc was copied from `queue.Queue` There's not BPO bug for this, afaik.
-
Nick Coghlan yazdı
While the introduction of ModuleNotFoundError was fully backwards compatible on the import API consumer side, folks providing alternative implementations of `__import__` need to make an update to be forward compatible with clients that start relying on the new subclass. https://bugs.python.org/issue35486
-
- 16 Ock, 2019 3 kayıt (commit)
-
-
Victor Stinner yazdı
This reverts commit 07858894.
-
Victor Stinner yazdı
The subprocess module can now use the os.posix_spawnp() function, if it is available, to locate the program in the PATH.
-
Joannah Nanjekye yazdı
Add a new os.posix_spawnp() function.
-
- 15 Ock, 2019 8 kayıt (commit)
-
-
Victor Stinner yazdı
The subprocess module can now use the os.posix_spawn() function in some cases for better performance. Currently, it is only used on macOS and Linux (using glibc 2.24 or newer) if all these conditions are met: * executable path contains a directory * close_fds=False * preexec_fn, pass_fds, cwd, stdin, stdout, stderr and start_new_session parameters are not set Co-authored-by: Joannah Nanjekye <nanjekyejoannah@gmail.com>
-
Christian Heimes yazdı
Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL distribution points with empty DP or URI correctly. A malicious or buggy certificate can result into segfault. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue35746
-
Victor Stinner yazdı
asyncio.ProactorEventLoop now catchs and logs send errors when the self-pipe is full: BaseProactorEventLoop._write_to_self() now catchs and logs OSError exceptions, as done by BaseSelectorEventLoop._write_to_self().
-
Serhiy Storchaka yazdı
Handle the case of an empty module name in PYTHONBREAKPOINT. Fixes a regression introduced in bpo-34756.
-
Victor Stinner yazdı
Add repr(self) to the log to display the number of pending overlapped in the log.
-
Victor Stinner yazdı
IocpProactor.close() now uses time to decide when to log: wait 1 second before the first log, then log every second. Log also the number of seconds since close() was called.
-
Henry Chen yazdı
Show correct number of repeats.
-
Serhiy Storchaka yazdı
-