Serhiy Storchaka
57dd79e6f7
Fix documented signatures for C API functions. (GH-11236)
2018-12-19 15:31:40 +02:00
Serhiy Storchaka
bf99bcf56c
Fix Python version since which external enities are not resolved by default. (GH-11237)
2018-12-19 15:29:04 +02:00
Manjusaka
92330c0b6d
bpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162)
2018-12-19 19:59:52 +08:00
Serhiy Storchaka
2b57c43f21
bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)
2018-12-19 08:09:46 +02:00
Jules Lasne (jlasne)
82d73554e4
Removed dangling `since Python` at the end of library/xml.rst. (GH-11201)
2018-12-19 08:05:14 +02:00
Victor Stinner
6cdce3ddef
bpo-35424: Fix test_multiprocessing_main_handling (GH-11223)
...
Fix test_multiprocessing_main_handling: use multiprocessing.Pool with
a context manager and then explicitly join the pool.
2018-12-18 23:54:33 +01:00
Victor Stinner
05c9d31eb6
bpo-31731: Fix test_io.check_interrupted_write() (GH-11225)
...
Fix a race condition in check_interrupted_write() of test_io:
create directly the thread with SIGALRM signal blocked,
rather than blocking the signal later from the thread. Previously, it
was possible that the thread gets the signal before the signal is
blocked.
2018-12-18 23:52:39 +01:00
Vladimir Matveev
b5c8cfa1da
bpo-23057: add loop self socket as wakeup fd for signals ( #11135 )
2018-12-18 23:56:17 +02:00
Hrvoje Nikšić
e3666fc8ef
bpo-35465: Document _UnixSelectorEventLoop.add_signal_handler. (GH-11145)
2018-12-18 16:31:29 -05:00
Serhiy Storchaka
d2a75c6783
bpo-35502: Fix reference leaks in ElementTree.TreeBuilder. (GH-11170)
2018-12-18 22:29:14 +02:00
Victor Stinner
60875db2f6
bpo-35516: platform.system_alias() don't replace Darwin (GH-11207)
...
Add a comment explaining why system_alias() doesn't alias Darwin to
macOS.
2018-12-18 19:51:35 +01:00
Victor Stinner
17d0c0595e
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)
...
check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.
2018-12-18 16:17:56 +01:00
Victor Stinner
e6b247c8e5
bpo-35523: Remove ctypes callback workaround (GH-11211)
...
Remove ctypes callback workaround: no longer create a callback at startup.
Avoid SELinux alert on "import ctypes" and "import uuid".
2018-12-18 14:47:21 +01:00
Serhiy Storchaka
3fcc1e08db
bpo-35461: Document C API functions which suppress exceptions. (GH-11119)
2018-12-18 13:57:17 +02:00
Victor Stinner
62a68b762a
bpo-31784: Use time.time_ns() in uuid.uuid1() (GH-11189)
...
uuid.uuid1() now calls time.time_ns() rather than
int(time.time() * 1e9). Replace also int(nanoseconds/100)
with nanoseconds // 100. Add an unit test.
2018-12-18 11:45:13 +01:00
Victor Stinner
1dd035954b
bpo-35519: Rename test.bisect to test.bisect_cmd (GH-11200)
...
Rename test.bisect module to test.bisect_cmd to avoid conflict with
bisect module when running directly a test like
"./python Lib/test/test_xmlrpc.py".
2018-12-17 22:06:10 +01:00
Victor Stinner
0af9c33262
bpo-35348: Fix platform.architecture() (GH-11159)
...
Make platform.architecture() parsing of "file" command output more
reliable:
* Add the "-b" option to the "file" command to omit the filename;
* Force the usage of the C locale;
* Search also the "shared object" pattern.
Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
2018-12-17 18:47:24 +01:00
Serhiy Storchaka
94cf308ee2
bpo-33306: Improve SyntaxError messages for unbalanced parentheses. (GH-6516)
2018-12-17 17:34:14 +02:00
Serhiy Storchaka
bdabb0737c
bpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142)
2018-12-17 17:30:03 +02:00
Zackery Spytz
842acaab13
bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175)
2018-12-17 16:52:45 +02:00
Serhiy Storchaka
4db62e1158
bpo-35490: Remove the DecodeFSDefault return converter in AC. ( #11152 )
2018-12-17 16:47:45 +02:00
Serhiy Storchaka
e2af34fcf8
bpo-35504: Fix a SystemError when delete the characters_written attribute of an OSError. (GH-11172)
2018-12-17 16:43:14 +02:00
Vajrasky Kok
fae95874b7
bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)
2018-12-17 16:16:24 +02:00
Dima Tisnek
e991270363
bpo-35415: validate fileno argument to socket.socket (GH-10917)
...
https://bugs.python.org/issue35415
2018-12-17 05:07:55 -08:00
Beomsoo Kim
05c1b387f1
Fixed a few obvious mistakes in c-api docs (GH-11184)
...
I thought these simple changes doesn't need bpo number(Am I right..?).
Please refer to the commit message for detail.
2018-12-17 04:57:03 -08:00
Victor Stinner
3ab064e80a
bpo-23451: Update time.monotonic() documentation (GH-11190)
...
bpo-23451, bpo-22117: Python 3.5 requires Windows Vista or newer,
time.monotonic() is now always system-wide.
2018-12-17 12:12:34 +01:00
Victor Stinner
8db5b54463
bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)
...
TextTestRunner of unittest.runner now uses time.perf_counter() rather
than time.time() to measure the execution time of a test: time.time()
can go backwards, whereas time.perf_counter() is monotonic.
Similar change made in libregrtest, pprint and random.
2018-12-17 11:30:34 +01:00
Victor Stinner
2cf4c202ff
bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)
...
Replace time.time() with time.monotonic() in tests to measure time
delta.
test_zipfile64: display progress every minute (60 secs) rather than
every 5 minutes (5*60 seconds).
2018-12-17 09:36:36 +01:00
Paul Ganssle
4e80f5cbea
bpo-35186: Remove "built with" comment in setup.py upload (GH-10414)
...
platform.dist() is deprecated and slated for removal in Python 3.8. The
upload command itself should also not be used to upload to PyPI, but
while it continues to exist it should not use deprecated functions.
2018-12-17 08:59:02 +01:00
Victor Stinner
2dfe3511fe
bpo-35491, multiprocessing: replace "RUN" with RUN (GH-11178)
2018-12-16 23:40:49 +01:00
Beomsoo Kim
b912f9342e
bpo-35511: Trivial docs updates for profile and resource library modules. (GH-11124)
...
polish documentation for profile and resource modules
2018-12-16 21:34:08 +02:00
Victor Stinner
640ed520dd
bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164)
...
"make profile-opt" no longer replaces CFLAGS_NODIST with CFLAGS. It
now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST,
existing CFLAGS_NODIST flags are kept.
2018-12-16 18:00:42 +01:00
mkkot
f5107dfd42
bpo-35450: reflect in docs that venv module is not always creating a … (GH-11144)
...
…copy of python binary
https://bugs.python.org/issue35450
2018-12-14 12:28:52 -08:00
Steve Dower
f8e9bd568a
bpo-35402: Update Windows build to use Tcl and Tk 8.6.9 (GH-11146)
2018-12-14 09:13:15 -08:00
Victor Stinner
d7538dd5e3
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.
2018-12-14 13:37:26 +01:00
Victor Stinner
4aa917c5fe
bpo-35346: Cleanup platform.architecture() (GH-11130)
...
struct.calcsize('P') now always works.
2018-12-14 13:14:10 +01:00
Victor Stinner
3a8f4fef4a
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.
2018-12-14 13:06:50 +01:00
Victor Stinner
7acd50ad8b
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>
2018-12-14 12:58:52 +01:00
Jules Lasne (jlasne)
cb0f5e29e3
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
2018-12-14 03:28:44 -08:00
Victor Stinner
2b417fba25
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
2018-12-14 11:13:18 +01:00
Serhiy Storchaka
afb3e71a17
bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150)
2018-12-14 11:19:51 +02:00
Vladimir Matveev
7b36016a15
bpo-31446: Copy command line that should be passed to CreateProcessW(). (GH-11141)
2018-12-14 10:30:51 +02:00
Victor Stinner
08c2ba0717
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.
2018-12-13 02:15:30 +01:00
Victor Stinner
502fe19b10
bpo-35412: Add testcase to test_future4 (GH-11131)
...
Add testcase to test_future4: check unicode literal.
2018-12-12 18:38:34 +01:00
Victor Stinner
b0e0877629
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
2018-12-12 17:48:08 +01:00
Xiang Zhang
4fb0b8bc25
bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error ( #6295 )
2018-12-12 20:46:55 +08:00
Anthony Sottile
5a718e918d
Add test for double patching instance methods ( #11085 )
2018-12-12 07:56:35 +00:00
Xtreak
f7fa62ef44
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
2018-12-12 07:54:54 +00:00
Andrew Svetlov
5344501ad1
bpo-35394: Add empty slots to abstract asyncio protocols ( #10889 )
...
* bpo-35394: Add empty slots to abstract asyncio protocols
* Add missing test file
2018-12-11 19:07:05 +02:00
Serhiy Storchaka
7211d306d4
Remove an unused variable after bpo-35444. (GH-11117)
2018-12-11 15:14:12 +02:00