]>
granicus.if.org Git - python/log
Victor Stinner [Fri, 14 Dec 2018 12:37:26 +0000 (13:37 +0100)]
bpo-35471: Remove the macpath module (GH-11129)
Python 2.4 dropped MacOS 9 support. The macpath module was deprecated
in Python 3.7. This change removes it.
Victor Stinner [Fri, 14 Dec 2018 12:14:10 +0000 (13:14 +0100)]
bpo-35346: Cleanup platform.architecture() (GH-11130)
struct.calcsize('P') now always works.
Victor Stinner [Fri, 14 Dec 2018 12:06:50 +0000 (13:06 +0100)]
bpo-34279: regrtest consider that skipped tests are ran (GH-11132)
bpo-34279, bpo-35412: support.run_unittest() no longer raises
TestDidNotRun if a test result contains skipped tests. The
exception is now only raised if no test have been run and no test
have been skipped.
Victor Stinner [Fri, 14 Dec 2018 11:58:52 +0000 (12:58 +0100)]
bpo-35491: Enhance multiprocessing.BaseProcess.__repr__() (GH-11138)
* Add the pid and parent pid to multiprocessing.BaseProcess.__repr__().
* Add negative sign (ex: "-SIGTERM") to exitcode (process killed
by a signal)
* Only call _popen.poll() once.
Example:
<ForkProcess(ForkPoolWorker-1, started daemon)>
becomes:
<ForkProcess name='ForkPoolWorker-1' pid=12449 parent=12448 started daemon>
Example:
<ForkProcess(ForkPoolWorker-1, stopped[SIGTERM] daemon)>
becomes:
<ForkProcess name='ForkPoolWorker-1' pid=12960 parent=12959 stopped exitcode=-SIGTERM daemon>
Jules Lasne (jlasne) [Fri, 14 Dec 2018 11:28:44 +0000 (12:28 +0100)]
Fixed missing colun in library/sys.po (GH-11153)
# Fixed missing colun in library/sys.po
[bpo-35492](https://bugs.python.org/issue35492): Fixed missing colun in library/sys.po
Victor Stinner [Fri, 14 Dec 2018 10:13:18 +0000 (11:13 +0100)]
Add multiprocessing.Pool.__repr__() (GH-11137)
* Add multiprocessing.Pool.__repr__() to ease debug
* RUN, CLOSE and TERMINATE constants values are now strings rather
than integer to ease debug
Serhiy Storchaka [Fri, 14 Dec 2018 09:19:51 +0000 (11:19 +0200)]
bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150)
Vladimir Matveev [Fri, 14 Dec 2018 08:30:51 +0000 (00:30 -0800)]
bpo-31446: Copy command line that should be passed to CreateProcessW(). (GH-11141)
Victor Stinner [Thu, 13 Dec 2018 01:15:30 +0000 (02:15 +0100)]
bpo-35477: multiprocessing.Pool.__enter__() fails if called twice (GH-11134)
multiprocessing.Pool.__enter__() now fails if the pool is not
running: "with pool:" fails if used more than once.
Victor Stinner [Wed, 12 Dec 2018 17:38:34 +0000 (18:38 +0100)]
bpo-35412: Add testcase to test_future4 (GH-11131)
Add testcase to test_future4: check unicode literal.
Victor Stinner [Wed, 12 Dec 2018 16:48:08 +0000 (17:48 +0100)]
bpo-35346: Drop Mac OS 9 support from platform (GH-10959)
Drop Mac OS 9 and Rhapsody support from the platform module:
* Rhapsody: last release in 2000
* Mac OS 9: last release in 2001
Xiang Zhang [Wed, 12 Dec 2018 12:46:55 +0000 (20:46 +0800)]
bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error (#6295)
Anthony Sottile [Wed, 12 Dec 2018 07:56:35 +0000 (23:56 -0800)]
Add test for double patching instance methods (#11085)
Xtreak [Wed, 12 Dec 2018 07:54:54 +0000 (13:24 +0530)]
bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11048)
* Fix partial and partial method signatures in mock
* Add more calls
* Add NEWS entry
* Use assertEquals and fix markup in NEWS
* Refactor branching and add markup reference for functools
* Revert partial object related changes and fix pr comments
Andrew Svetlov [Tue, 11 Dec 2018 17:07:05 +0000 (19:07 +0200)]
bpo-35394: Add empty slots to abstract asyncio protocols (#10889)
* bpo-35394: Add empty slots to abstract asyncio protocols
* Add missing test file
Serhiy Storchaka [Tue, 11 Dec 2018 13:14:12 +0000 (15:14 +0200)]
Remove an unused variable after bpo-35444. (GH-11117)
Pablo Galindo [Tue, 11 Dec 2018 11:32:12 +0000 (11:32 +0000)]
bpo-35426: Eliminate race condition in test_interprocess_signal (GH-11087)
The test only except SIGUSR1Exception inside wait_signal(), but the signal can be sent during subprocess_send_signal() call.
Pablo Galindo [Tue, 11 Dec 2018 11:31:16 +0000 (11:31 +0000)]
bpo-35412: Skip test_multiprocessing_fork and test_multiprocessing_forkserver on Windows (GH-11086)
Forkserver and fork are not available on Windows and therefore these test must be skipped.
Victor Stinner [Tue, 11 Dec 2018 11:05:21 +0000 (12:05 +0100)]
bpo-35458: Fix test_shutil.test_disk_usage() (GH-11111)
The following test fails if a different process creates or removes
a file on the same disk partition between the two lines:
usage = shutil.disk_usage(os.path.dirname(__file__))
self.assertEqual(usage, shutil.disk_usage(__file__))
Only test that disk_usage() succeed on a filename, but don't check
the result. Add also tests on the fields type (must be int).
Serhiy Storchaka [Tue, 11 Dec 2018 06:38:03 +0000 (08:38 +0200)]
bpo-35454: Fix miscellaneous minor issues in error handling. (#11077)
* bpo-35454: Fix miscellaneous minor issues in error handling.
* Fix a null pointer dereference.
Serhiy Storchaka [Tue, 11 Dec 2018 06:28:18 +0000 (08:28 +0200)]
bpo-35444: Unify and optimize the helper for getting a builtin object. (GH-11047)
This speeds up pickling of some iterators.
This fixes also error handling in pickling methods when fail to
look up builtin "getattr".
Ned Deily [Tue, 11 Dec 2018 06:06:57 +0000 (01:06 -0500)]
bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)
Ned Deily [Tue, 11 Dec 2018 05:24:06 +0000 (00:24 -0500)]
bpo-35401: Update macOS installer to OpenSSL 1.1.0j (GH-11094)
https://bugs.python.org/issue35401
Steve Dower [Tue, 11 Dec 2018 04:56:09 +0000 (20:56 -0800)]
bpo-34977: Remove unused preprocessor definition (GH-11092)
Steve Dower [Tue, 11 Dec 2018 03:52:36 +0000 (19:52 -0800)]
bpo-35401: Update Windows build to OpenSSL 1.1.0j (GH-11088)
Steve Dower [Tue, 11 Dec 2018 02:52:57 +0000 (18:52 -0800)]
bpo-34977: Add Windows App Store package (GH-11027)
Also adds the PC/layout script for generating layouts on Windows.
Steve Dower [Mon, 10 Dec 2018 16:11:21 +0000 (08:11 -0800)]
bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029)
Victor Stinner [Mon, 10 Dec 2018 15:06:18 +0000 (16:06 +0100)]
bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
Serhiy Storchaka [Mon, 10 Dec 2018 14:06:08 +0000 (16:06 +0200)]
bpo-32788: Better error handling in sqlite3. (GH-3723)
Propagate unexpected errors (like MemoryError and KeyboardInterrupt) to user.
Serhiy Storchaka [Mon, 10 Dec 2018 11:50:22 +0000 (13:50 +0200)]
bpo-35452: Make PySys_HasWarnOptions() never raising an exception. (GH-11075)
Victor Stinner [Mon, 10 Dec 2018 10:30:21 +0000 (11:30 +0100)]
bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define
properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L,
whereas <features.h> (included indirectly by <string.h>) defines
_POSIX_C_SOURCE as 199506L.
Christian Heimes [Mon, 10 Dec 2018 10:22:37 +0000 (11:22 +0100)]
bpo-35050: AF_ALG length check off-by-one error (GH-10058)
The length check for AF_ALG salg_name and salg_type had a off-by-one
error. The code assumed that both values are not necessarily NULL
terminated. However the Kernel code for alg_bind() ensures that the last
byte of both strings are NULL terminated.
Signed-off-by: Christian Heimes <christian@python.org>
Victor Stinner [Mon, 10 Dec 2018 10:12:53 +0000 (11:12 +0100)]
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061)
Fix xml.dom.minidom cloneNode() on a document with an entity: pass
the correct arguments to the user data handler of an entity (fix an
old copy/paste mistake).
Bug spotted and fix proposed by Charalampos Stratakis, initial
reproducer written by Petr Viktorin.
Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
Co-Authored-By: Petr Viktorin <encukou@gmail.com>
Serhiy Storchaka [Mon, 10 Dec 2018 10:10:56 +0000 (12:10 +0200)]
bpo-35445: Do not ignore memory errors when create posix.environ. (GH-11049)
Serhiy Storchaka [Mon, 10 Dec 2018 10:08:54 +0000 (12:08 +0200)]
bpo-35451: Fix reference counting for sys.warnoptions and sys._xoptions. (GH-11063)
Jeremy Kloth [Mon, 10 Dec 2018 03:59:32 +0000 (20:59 -0700)]
bpo-35433: Properly detect installed SDK versions (GH-11009)
Serhiy Storchaka [Sun, 9 Dec 2018 20:15:29 +0000 (22:15 +0200)]
Remove a duplicate descriptor in gdbm. (GH-11053)
Gregory P. Smith [Sun, 9 Dec 2018 19:42:58 +0000 (11:42 -0800)]
bpo-22005: Document the reality of pickle compatibility. (GH-11054)
jdemeyer [Sun, 9 Dec 2018 07:46:50 +0000 (08:46 +0100)]
bpo-34245: install Python shared library with more standard 0755 mode (GH-8492)
Andre Delfino [Sun, 9 Dec 2018 07:00:20 +0000 (04:00 -0300)]
Fix numbered lists in stdtypes.rst. (GH-10989)
Ned Deily [Sun, 9 Dec 2018 06:50:15 +0000 (01:50 -0500)]
bpo-33725: skip test_multiprocessing_fork on macOS (GH-11043)
Zackery Spytz [Sat, 8 Dec 2018 14:16:55 +0000 (07:16 -0700)]
bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)
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 [Sat, 8 Dec 2018 11:25:02 +0000 (11:25 +0000)]
bpo-35330: Don't call the wrapped object if `side_effect` is set (GH10973)
* 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.
Anirudha Bose [Fri, 7 Dec 2018 23:30:42 +0000 (00:30 +0100)]
bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests (GH-8520)
Victor Stinner [Fri, 7 Dec 2018 16:54:18 +0000 (17:54 +0100)]
bpo-9566: Fix compiler warnings in peephole.c (GH-10652)
Serhiy Storchaka [Fri, 7 Dec 2018 14:48:21 +0000 (16:48 +0200)]
bpo-22005: Fix condition for unpickling a date object. (GH-11025)
Victor Stinner [Fri, 7 Dec 2018 11:57:43 +0000 (12:57 +0100)]
Revert "bpo-34977: Add Windows App Store package (GH-10245)" (GH-11019)
This reverts commit
468a15aaf9206448a744fc5eab3fc21f51966aad .
Serhiy Storchaka [Fri, 7 Dec 2018 11:42:10 +0000 (13:42 +0200)]
bpo-22005: Fixed unpickling instances of datetime classes pickled by Python 2. (GH-11017)
encoding='latin1' should be used for successful decoding.
Zackery Spytz [Fri, 7 Dec 2018 10:11:30 +0000 (03:11 -0700)]
bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. (GH-11015)
Set MemoryError when appropriate, add missing failure checks,
and fix some potential leaks.
Victor Stinner [Fri, 7 Dec 2018 10:10:33 +0000 (11:10 +0100)]
bpo-35346, platform: replace os.popen() with subprocess (GH-10786)
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 [Fri, 7 Dec 2018 06:32:21 +0000 (08:32 +0200)]
bpo-34864: warn if "Prefer tabs when opening documents" set to "Always" (#10464)
* 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.
Mariatta [Fri, 7 Dec 2018 05:59:42 +0000 (21:59 -0800)]
bpo-35434 Fix wrong issue number in what's new in 3.8 (GH-11012)
https://bugs.python.org/issue35434
Steve Dower [Fri, 7 Dec 2018 05:09:20 +0000 (21:09 -0800)]
bpo-34977: Add Windows App Store package (GH-10245)
Andre Delfino [Thu, 6 Dec 2018 21:06:55 +0000 (18:06 -0300)]
Add missing period in distutils.dep_util.newer_group doc (GH-11003)
Gregory P. Smith [Thu, 6 Dec 2018 20:56:24 +0000 (12:56 -0800)]
Clarify expectedFailure in the unittest docs. (#10953)
Serhiy Storchaka [Thu, 6 Dec 2018 20:36:55 +0000 (22:36 +0200)]
bpo-33023: Fix NotImplemented to NotImplementedError. (GH-10934)
Mario Corchero [Thu, 6 Dec 2018 17:05:46 +0000 (17:05 +0000)]
Remove unused function in `testmock/support.py` (GH-10975)
The function is never imported and the implementation is actually buggy.
As `warnings.catch_warnings` is not imported here.
Victor Stinner [Thu, 6 Dec 2018 13:16:21 +0000 (14:16 +0100)]
bpo-35363: test_eintr uses print(flush=True) (GH-10990)
Victor Stinner [Thu, 6 Dec 2018 10:56:52 +0000 (11:56 +0100)]
bpo-35424: test_multiprocessing: join 3 pools (GH-10986)
Join 3 pools in these tests:
* test.test_multiprocessing_spawn.WithProcessesTestPool.test_context
* test.test_multiprocessing_spawn.WithProcessesTestPool.test_traceback
Serhiy Storchaka [Thu, 6 Dec 2018 09:16:24 +0000 (11:16 +0200)]
bpo-35384: The repr of ctypes.CArgObject no longer fails for non-ascii character. (GH-10863)
Victor Stinner [Thu, 6 Dec 2018 07:51:47 +0000 (08:51 +0100)]
Revert "bpo-34172: multiprocessing.Pool leaks resources after being deleted (GH-8450)" (GH-10971)
This reverts commit
97bfe8d3ebb0a54c8798f57555cb4152f9b2e1d0 .
native-api [Thu, 6 Dec 2018 07:04:35 +0000 (10:04 +0300)]
bpo-33709: test_ntpath and test_posixpath fail in Windows with ACP!=1252. (GH-7278)
Terry Jan Reedy [Thu, 6 Dec 2018 05:46:22 +0000 (00:46 -0500)]
bpo-34162: Update idlelib NEWS to 2018-12-05. (GH-10964)
Victor Stinner [Wed, 5 Dec 2018 23:18:30 +0000 (00:18 +0100)]
bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)
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 [Wed, 5 Dec 2018 22:21:54 +0000 (23:21 +0100)]
bpo-35389: test.pythoninfo logs platform.libc_ver (GH-10951)
E Kawashima [Wed, 5 Dec 2018 22:15:42 +0000 (07:15 +0900)]
Fix typo in xml.dom.minidom documentation (GH-10956)
Escape the \t and \n.
Follow up from https://github.com/python/cpython/pull/10814.
Victor Stinner [Wed, 5 Dec 2018 21:41:52 +0000 (22:41 +0100)]
bpo-35344: platform.platform() uses mac_ver() on macOS (GH-10780)
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 [Wed, 5 Dec 2018 21:41:20 +0000 (21:41 +0000)]
Fix typos in concurrent.Futures documentation (GH-10920)
Add a missing word `as` in `as well as an`.
Linkify `threading.Thread`.
Oran Avraham [Wed, 5 Dec 2018 20:36:03 +0000 (22:36 +0200)]
bpo-35310: Clear select() lists before returning upon EINTR (GH-10877)
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 [Wed, 5 Dec 2018 19:46:25 +0000 (21:46 +0200)]
bpo-34738: Add directory entries in ZIP files created by distutils. (GH-9419)
Andre Delfino [Wed, 5 Dec 2018 19:45:30 +0000 (16:45 -0300)]
Correct a couple of unbalanced parenthesis. (GH-10779)
Andre Delfino [Wed, 5 Dec 2018 19:42:44 +0000 (16:42 -0300)]
Move __missing__ after __delitem__ in Data model. (GH-10923)
Alex H [Wed, 5 Dec 2018 19:32:16 +0000 (20:32 +0100)]
bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537)
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 [Wed, 5 Dec 2018 19:10:18 +0000 (17:10 -0200)]
bpo-34604: Use %R because of invisible characters or trailing whitespaces. (GH-9165)
Zackery Spytz [Wed, 5 Dec 2018 18:29:20 +0000 (11:29 -0700)]
bpo-34987: Fix a possible null pointer dereference in _pickle.c's save_reduce(). (GH-9886)
Sergey Fedoseev [Wed, 5 Dec 2018 17:50:26 +0000 (22:50 +0500)]
bpo-34052: Prevent SQLite functions from setting callbacks on exceptions. (GH-8113)
Victor Stinner [Wed, 5 Dec 2018 15:49:35 +0000 (16:49 +0100)]
bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919)
* 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 [Wed, 5 Dec 2018 14:44:14 +0000 (16:44 +0200)]
bpo-32787: Better error handling in ctypes. (#3727)
* 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 [Wed, 5 Dec 2018 13:04:52 +0000 (14:04 +0100)]
bpo-35389: platform.libc_ver() uses os.confstr() (GH-10891)
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%)
Zackery Spytz [Wed, 5 Dec 2018 07:14:00 +0000 (00:14 -0700)]
bpo-35414: Add a missing Py_INCREF(Py_None) in PyState_RemoveModule(). (GH-10914)
Victor Stinner [Wed, 5 Dec 2018 00:58:31 +0000 (01:58 +0100)]
bpo-35411: Skip test_urllib2net FTP tests on Travis CI (GH-10907)
On Travis CI, FTP tests of test_urllib2net randomly fail with "425
Security: Bad IP connecting".
test.pythoninfo now also logs TRAVIS environment variable.
Raymond Hettinger [Tue, 4 Dec 2018 22:53:14 +0000 (14:53 -0800)]
Remove unnecessary and over-restrictive type check (GH-10905)
Victor Stinner [Tue, 4 Dec 2018 16:18:12 +0000 (17:18 +0100)]
bpo-35346, platform: import subprocess in _syscmd_file() (GH-10892)
Only platform._syscmd_file() uses subprocess. Move subprocess import
inside this function to reduce the number of imports at Python
startup.
Remove also warnings import which is no longer needed.
Victor Stinner [Tue, 4 Dec 2018 16:13:33 +0000 (17:13 +0100)]
bpo-35363, test_eintr: skip test_open() on macOS (GH-10896)
stratakis [Tue, 4 Dec 2018 14:54:01 +0000 (15:54 +0100)]
bpo-35351: Pass link time optimization flags to CFLAGS_NODIST (GH-10797)
When using link time optimizations, the -flto flag is passed to
BASECFLAGS, which makes it propagate to distutils. Those flags
should be reserved for the interpreter and the stdlib extension
modules only, thus moving those flags to CFLAGS_NODIST.
Andrew Dunai [Tue, 4 Dec 2018 09:08:45 +0000 (11:08 +0200)]
bpo-35357: Add _mock_ prefix to name/parent/from_kall attributes of _Call/_MagicProxy. (#10873)
Fix minor typo in test function name.
Serhiy Storchaka [Tue, 4 Dec 2018 08:25:50 +0000 (10:25 +0200)]
bpo-35365: Use a wchar_t* buffer in the code page decoder. (GH-10837)
Raymond Hettinger [Tue, 4 Dec 2018 08:13:38 +0000 (00:13 -0800)]
Add comments regarding speed/space/entropy trade-offs (GH-10885)
Naglis [Tue, 4 Dec 2018 07:31:15 +0000 (09:31 +0200)]
bpo-35395: fix typos in asyncio eventloop documentation (GH-10880)
Fixes `loop.add_writer` and `loop.add_signal_handler` method documentation to correctly reference the callback parameter from method signature.
https://bugs.python.org/issue35395
Chris Withers [Mon, 3 Dec 2018 21:31:37 +0000 (21:31 +0000)]
bpo-35226: Fix equality for nested unittest.mock.call objects. (#10555)
Also refactor the call recording imolementation and add some notes
about its limitations.
Andrew Svetlov [Mon, 3 Dec 2018 19:08:13 +0000 (21:08 +0200)]
bpo-35380: Enable TCP_NODELAY for proactor event loop (#10867)
Victor Stinner [Mon, 3 Dec 2018 12:45:38 +0000 (13:45 +0100)]
bpo-35373: Fix PyInit_time() error handling (GH-10865)
* PyInit_time() now returns NULL if an exception is raised.
* Rename PyInit_timezone() to init_timezone(). "PyInit_" prefix is
a special prefix for function initializing a module.
init_timezone() doesn't initialize a module and the function is not
exported.
Victor Stinner [Mon, 3 Dec 2018 11:02:43 +0000 (12:02 +0100)]
bpo-35373: Fix PyInit_timezone() if HAVE_DECL_TZNAME is defined (GH-10861)
If HAVE_DECL_TZNAME, PyInit_timezone() now returns -1 on error.
Serhiy Storchaka [Mon, 3 Dec 2018 08:36:45 +0000 (10:36 +0200)]
bpo-35372: Fix the code page decoder for input > 2 GiB. (GH-10848)
Zackery Spytz [Mon, 3 Dec 2018 08:31:35 +0000 (01:31 -0700)]
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)
Use "ll" instead of the nonstandard "q".
Xtreak [Mon, 3 Dec 2018 07:58:15 +0000 (13:28 +0530)]
bpo-32153: Add unit test for create_autospec with partial function returned in getattr (#10398)
* Add create_autospec with partial function returned in getattr
* Use self.assertFalse instead of assert
* Use different names and remove object
Ismo Toijala [Sun, 2 Dec 2018 15:53:14 +0000 (17:53 +0200)]
bpo-35341: Add generic version of OrderedDict to typing (GH-10850)
Serhiy Storchaka [Sat, 1 Dec 2018 12:30:20 +0000 (14:30 +0200)]
bpo-35371: Fix possible crash in os.utime() on Windows. (GH-10844)
Xtreak [Sat, 1 Dec 2018 10:03:54 +0000 (15:33 +0530)]
bpo-31177: Skip deleted attributes while calling reset_mock (GH-9302)
Victor Stinner [Sat, 1 Dec 2018 01:46:40 +0000 (02:46 +0100)]
Fix compiler warning in structseq_repr() (GH-10841)
Replace strncpy() with memcpy() in structseq_repr() to fix the
following compiler warning:
Objects/structseq.c:187:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(pbuf, typ->tp_name, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Objects/structseq.c:185:11: note: length computed here
len = strlen(typ->tp_name) > TYPE_MAXSIZE ? TYPE_MAXSIZE :
The function writes the terminating NUL byte later.