- 09 Ara, 2018 2 kayıt (commit)
-
-
Andre Delfino yazdı
-
Ned Deily yazdı
-
- 08 Ara, 2018 2 kayıt (commit)
-
-
Zackery Spytz yazdı
In _localemodule.c and selectmodule.c, remove dead code that would cause double decrefs if run. In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases where a new list is populated and there is no possibility of an error. In addition, check if the list changed size in the loop in array_array_fromlist().
-
Mario Corchero yazdı
* tests: Further validate `wraps` functionality in `unittest.mock.Mock` Add more tests to validate how `wraps` interacts with other features of mocks. * Don't call the wrapped object if `side_effect` is set When a object is wrapped using `Mock(wraps=...)`, if an user sets a `side_effect` in one of their methods, return the value of `side_effect` and don't call the original object. * Refactor what to be called on `mock_call` When a `Mock` is called, it should return looking up in the following order: `side_effect`, `return_value`, `wraps`. If any of the first two return `mock.DEFAULT`, lookup in the next option. It makes no sense to check for `wraps` returning default, as it is supposed to be the original implementation and there is nothing to fallback to.
-
- 07 Ara, 2018 10 kayıt (commit)
-
-
Anirudha Bose yazdı
-
Victor Stinner yazdı
-
Serhiy Storchaka yazdı
-
Victor Stinner yazdı
This reverts commit 468a15aa.
-
Serhiy Storchaka yazdı
encoding='latin1' should be used for successful decoding.
-
Zackery Spytz yazdı
Set MemoryError when appropriate, add missing failure checks, and fix some potential leaks.
-
Victor Stinner yazdı
Replace os.popen() with subprocess.check_output() in the platform module: * platform.uname() (its _syscmd_ver() helper function) now redirects stderr to DEVNULL. * Remove platform.DEV_NULL. * _syscmd_uname() and _syscmd_file() no longer catch AttributeError. The "except AttributeError:" was only needed in Python 2, when os.popen() was not always available. In Python 3, subprocess.check_output() is always available.
-
Tal Einat yazdı
* bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" * add NEWS entry * address code review comments * address second code review comments * Add entry for idlelib/NEWS.txt.
-
-
Steve Dower yazdı
-
- 06 Ara, 2018 10 kayıt (commit)
-
-
Andre Delfino yazdı
-
Gregory P. Smith yazdı
-
Serhiy Storchaka yazdı
-
Mario Corchero yazdı
The function is never imported and the implementation is actually buggy. As `warnings.catch_warnings` is not imported here.
-
Victor Stinner yazdı
-
Victor Stinner yazdı
Join 3 pools in these tests: * test.test_multiprocessing_spawn.WithProcessesTestPool.test_context * test.test_multiprocessing_spawn.WithProcessesTestPool.test_traceback
-
Serhiy Storchaka yazdı
-
Victor Stinner yazdı
This reverts commit 97bfe8d3.
-
native-api yazdı
-
Terry Jan Reedy yazdı
-
- 05 Ara, 2018 16 kayıt (commit)
-
-
Victor Stinner yazdı
Moreover, "python3 -m test test_eintr -v" now avoids redirecting stdout/stderr to a pipe, the child process inherits stdout/stderr from the parent.
-
Victor Stinner yazdı
-
E Kawashima yazdı
Escape the \t and \n. Follow up from https://github.com/python/cpython/pull/10814.
-
Victor Stinner yazdı
On macOS, platform.platform() now uses mac_ver(), if it returns a non-empty release string, to get the macOS version rather than darwin version.
-
Matt Wheeler yazdı
Add a missing word `as` in `as well as an`. Linkify `threading.Thread`.
-
Oran Avraham yazdı
select() calls are retried on EINTR (per PEP 475). However, if a timeout was provided and the deadline has passed after running the signal handlers, rlist, wlist and xlist should be cleared since select(2) left them unmodified.
-
Serhiy Storchaka yazdı
-
Andre Delfino yazdı
-
Andre Delfino yazdı
-
Alex H yazdı
When running test_bdb.py as a script, `import test_module` would be importing the existing Lib/test/test_modules.py instead of the tempcwd/test_module.py module which was dynamically created by test_bdb.py itself.
-
William Grzybowski yazdı
-
Zackery Spytz yazdı
-
Sergey Fedoseev yazdı
-
Victor Stinner yazdı
* posixpath.expanduser() now returns the input path unchanged if the HOME environment variable is not set and pwd.getpwuid() raises KeyError (the current user identifier doesn't exist in the password database). * Add test_no_home_directory() to test_site.
-
Serhiy Storchaka yazdı
* bpo-31572: Get rid of PyObject_HasAttrString() in ctypes. * Fix error handling for _pack_. * Don't silence errors when look up in a dict. * Use _PyObject_LookupAttrId(). * More changes.
-
Victor Stinner yazdı
platform.libc_ver() now uses os.confstr('CS_GNU_LIBC_VERSION') if available and the *executable* parameter is not set. The default value of the libc_ver() *executable* parameter becomes None. Quick benchmark on Fedora 29: python3 -m perf command ./python -S -c 'import platform; platform.libc_ver()' 94.9 ms +- 4.3 ms -> 33.2 ms +- 1.4 ms: 2.86x faster (-65%)
-