Sanyam Khurana
28b624825e
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
2017-11-13 13:49:26 -08:00
Serhiy Storchaka
9b6c60cbce
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%.
2017-11-13 21:23:48 +02:00
Yury Selivanov
ce12629c84
bpo-28369: Enhance transport socket check in add_reader/writer ( #4365 )
2017-11-13 13:38:22 -05:00
Mat M
f76231f89a
bpo-32013: _pickle: Add missing Py_DECREF in error case in fast_save_enter() ( #4384 )
2017-11-13 09:50:16 +02:00
Benjamin Peterson
8acaa31eec
remove detect_math_libs ( #4383 )
...
Darwin may not require libm, but it doesn't hurt to link it and simplifies configuration logic.
2017-11-12 20:53:39 -08:00
xdegaye
d7d4fea4a3
bpo-29181: Skip test_tarfile tests on PermissionError raised by Android (GH-4375)
2017-11-12 18:02:06 +01:00
xdegaye
6a55d09573
bpo-29180: Skip test_os tests on PermissionError raised by Android (GH-4374)
2017-11-12 17:57:04 +01:00
xdegaye
92c2ca7633
bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350)
...
Access to mkfifo(), mknod() and hard link creation is controled
by SELinux on Android.
Also remove test.support.android_not_root.
2017-11-12 17:31:07 +01:00
xdegaye
e0582a37c8
bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160)
2017-11-12 16:50:48 +01:00
xdegaye
1588be66d7
bpo-28180: Fix the implementation of PEP 538 on Android (GH-4334)
2017-11-12 12:45:59 +01:00
Serhiy Storchaka
9e78dc2517
Move comments in configure.ac to more appropriate place. ( #4371 )
2017-11-11 19:18:28 +02:00
Edward Betts
e197a8538b
The termios man page is in section 3 (GH-2450)
2017-11-11 19:40:26 +03:00
Berker Peksag
7c9da3e5ba
Remove redundant 'exc = True' line (GH-4357)
...
It can be removed after c28890fb42
2017-11-11 17:55:05 +03:00
Serhiy Storchaka
bba2239c17
bpo-31572: Get rid of _PyObject_HasAttrId() in the ASDL parser. ( #3725 )
...
Silence only expected AttributeError.
2017-11-11 16:41:32 +02:00
Serhiy Storchaka
60c3d3551a
bpo-31572: Get rid of _PyObject_HasAttrId() in dict and OrderedDict. ( #3728 )
...
Silence only AttributeError when get "key" and "items" attributes in
the constructor and the update() method of dict and OrderedDict .
2017-11-11 16:19:56 +02:00
Serhiy Storchaka
1707e4020f
bpo-31572: Silence only AttributeError when get the __copy__ attribute in itertools.tee(). ( #3724 )
2017-11-11 15:51:42 +02:00
Serhiy Storchaka
d4f8480dfe
bpo-31572: Don't silence unexpected errors in the _warnings module. ( #3731 )
...
Get rid of _PyObject_HasAttrId() and PyDict_GetItemString().
Silence only expected AttributeError, KeyError and ImportError when
get an attribute, look up in a dict or import a module.
2017-11-11 15:19:47 +02:00
Serhiy Storchaka
e2f92de6a9
Add the const qualifier to "char *" variables that refer to literal strings. ( #4370 )
2017-11-11 13:06:26 +02:00
Pablo Galindo
e184cfd7bf
bpo-31824: Document default value of 'errors' parameters (GH-4328)
2017-11-11 02:05:12 +03:00
benfogle
9703f092ab
bpo-31976: Fix race condition when flushing a file is slow. ( #4331 )
2017-11-10 22:03:40 +01:00
Yury Selivanov
4652bf2acc
Rewrite asyncio test to be more meaningful ( #4363 )
2017-11-10 15:34:17 -05:00
Brian Curtin
9f914a01af
bpo-31985: Deprecate openfp in aifc, sunau, and wave ( #4344 )
...
The openfp functions of aifp, sunau, and wave had pointed to the open
function of each module since 1993 as a matter of backwards
compatibility. In the case of aifc.openfp, it was both undocumented
and untested. This change begins the formal deprecation of those
openfp functions, with their removal coming in 3.9.
This additionally adds a TODO in test_pyclbr around using aifc.openfp,
though it shouldn't be changed until removal in 3.9.
2017-11-10 11:38:25 -05:00
Serhiy Storchaka
5e0df74b3b
bpo-31999: Fix test_venv in case the zlib module is not available. ( #4359 )
2017-11-10 12:09:39 +02:00
Serhiy Storchaka
a1718bc7e0
bpo-31998: Fix test_zipapp in case the zlib module is not available. ( #4358 )
2017-11-10 12:09:24 +02:00
Paul Ganssle
191e993365
bpo-31222: Make (datetime|date|time).replace return subclass type in Pure Python ( #4176 )
2017-11-09 13:34:29 -08:00
Cody Scott
72fa3014d5
Fix phrasing in Doc/whatsnew/3.7.rst (GH-4318)
2017-11-09 21:58:59 +03:00
Ned Batchelder
01ae58d446
Correct the location of a function mentioned in a comment (GH-4327)
2017-11-09 19:55:34 +03:00
Serhiy Storchaka
d3187158c0
bpo-31927: Fix bugs in socketmodule.c on NetBSD and other issues. ( #4235 )
...
* Fix compilation of the socket module on NetBSD 8.
* Fix the assertion failure or reading arbitrary data when parse
a AF_BLUETOOTH address on NetBSD and DragonFly BSD.
* Fix other potential errors and make the code more reliable.
2017-11-09 18:00:38 +02:00
Antoine Pitrou
0a2ff23fe6
Silence error output in test_concurrent_futures (bpo-21423) ( #4347 )
...
* Silence error output in test_concurrent_futures (bpo-21423)
2017-11-09 15:33:43 +01:00
Victor Stinner
8c663fd60e
Replace KB unit with KiB ( #4293 )
...
kB (*kilo* byte) unit means 1000 bytes, whereas KiB ("kibibyte")
means 1024 bytes. KB was misused: replace kB or KB with KiB when
appropriate.
Same change for MB and GB which become MiB and GiB.
Change the output of Tools/iobench/iobench.py.
Round also the size of the documentation from 5.5 MB to 5 MiB.
2017-11-08 14:44:44 -08:00
Berker Peksag
0e163d2ced
bpo-11063: Use more reliable way to check if uuid function exists (GH-4343)
2017-11-09 00:43:14 +03:00
Berker Peksag
9a10ff4deb
bpo-11063: Add a configure check for uuid_generate_time_safe (GH-4287)
2017-11-08 23:09:16 +03:00
Tom Floyer
bf9d317626
bpo-31810: added missing keywords to docs. ( #4140 )
...
async and await keywords has been merged into upstream, but they are
all missing in the lexical analysis docs. This change adds them to the
appropriate keywords section in documentation.
2017-11-08 12:31:26 -05:00
Petr Viktorin
2138163621
bpo-29179: Document the Py_UNUSED macro ( #4341 )
...
Py_UNUSED has a public name, and is used in the wild outside CPython,
but was not documented. Rectify that.
The macro was added in bpo-19976 and referenced in bpo-26179.
2017-11-08 07:59:20 -08:00
xdegaye
0de92859ca
bpo-31934: Abort when building out of a not clean source tree (GH-4255)
2017-11-08 16:03:58 +01:00
James
b5d9e08114
bpo-31884 subprocess: add Windows constants for process priority ( #4150 )
2017-11-08 06:18:59 -08:00
Victor Stinner
54cc0c0789
bpo-31338: C API intro: add missing versionadded ( #4339 )
2017-11-08 06:06:24 -08:00
Berker Peksag
28ab3ce924
Fix broken link in Doc/whatsnew/3.7.rst (GH-4335)
2017-11-08 16:36:58 +03:00
Petr Viktorin
8bf288e2c5
Docs: Mention that Py_UNREACHABLE was added in 3.7 ( #4337 )
...
The macro was added for bpo-31338 in commit b2e5794870
2017-11-08 15:11:16 +02:00
Sanyam Khurana
7973e279a2
bpo-21862: Add -m option to cProfile for profiling modules ( #4297 )
...
* bpo-21862: Add -m option to cProfile for profiling modules
2017-11-08 11:50:56 +01:00
Simon Willison
4fc4defd1c
Remove unused var from CheckCancelOperation test (GH-4317)
...
It looks like this was copied from one of the previous tests, which did use it.
2017-11-08 00:06:55 +03:00
Justus Schwabedal
5a8a84b34f
Added :const:`mmap.ACCESS_DEFAULT` constant. ( #4093 )
2017-11-07 12:51:43 -08:00
Suren Nihalani
c62f0cb3b1
bpo-31620: have asyncio/queues not leak memory when you've exceptions during waiting ( #3813 )
2017-11-07 20:35:23 +03:00
Barry Warsaw
c060c7e3d1
Fix a typo ( #4323 )
2017-11-07 09:05:15 -08:00
Julien Palard
5a66c8a64d
bpo-31793: Doc: Specialize smart-quotes for Japanese (GH-4006)
2017-11-08 01:46:50 +09:00
Antoine Pitrou
921e9432a1
bpo-31970: Reduce performance overhead of asyncio debug mode. ( #4314 )
...
* bpo-31970: Reduce performance overhead of asyncio debug mode.
2017-11-07 17:23:29 +01:00
Jelle Zijlstra
1e5d54cfa0
bpo-31965: fix doc for multiprocessing.connection.Client and Listener ( #4304 )
...
* fix doc for multiprocessing.connection.Client
The authenticate argument does not exist on either Client or Listener:
- https://github.com/python/cpython/blob/master/Lib/multiprocessing/connection.py#L483 (master)
- https://github.com/python/cpython/blob/3.6/Lib/multiprocessing/connection.py#L478 (3.6)
- https://github.com/python/cpython/blob/3.5/Lib/multiprocessing/connection.py#L478 (3.5)
- https://github.com/python/cpython/blob/3.4/Lib/multiprocessing/connection.py#L487 (3.4)
The documentation also claimed that these functions will call `current_process().auth_key`, for which I could find no evidence in the code. I rewrote the documentation to reflect the actual behavior.
Also made some small changes to vary sentence structure.
2017-11-07 17:13:02 +01:00
Antoine Pitrou
22b1128559
bpo-31960: Fix asyncio.Future documentation for thread (un)safety. ( #4319 )
2017-11-07 17:03:28 +01:00
Serhiy Storchaka
39a156c505
Fix the sizeof test for dicts with shared keys. ( #4311 )
...
By accident the size of the empty dict keys object matched the
size of values array.
2017-11-07 15:08:09 +02:00
Berker Peksag
a935654f06
bpo-20486: Implement Database.Close() method in msilib (GH-4141)
2017-11-07 15:58:53 +03:00