Xavier de Gaye
e660327cf1
Issue #28849 : Merge 3.6.
2016-12-14 20:37:53 +01:00
Xavier de Gaye
471bc3c814
Issue #28849 : Skip test_sysconfig.test_triplet_in_ext_suffix on non linux platforms.
2016-12-14 20:37:10 +01:00
Serhiy Storchaka
bdfc5ff17e
Merge from 3.6.
2016-12-14 19:56:53 +02:00
Serhiy Storchaka
386072ebe0
Merge from 3.6.
2016-12-14 19:54:38 +02:00
Serhiy Storchaka
49010ee323
Revert changeset 1f31bf3f76f5 (issue5322) except tests.
2016-12-14 19:52:17 +02:00
Xavier de Gaye
69598527c7
Issue #28683 : Merge 3.6.
2016-12-14 11:54:49 +01:00
Xavier de Gaye
e88ed05006
Issue #28683 : Fix the tests that bind() a unix socket and raise PermissionError
...
on Android for a non-root user.
2016-12-14 11:52:28 +01:00
Yury Selivanov
f2392133eb
Issue #26110 : Add LOAD_METHOD/CALL_METHOD opcodes.
...
Special thanks to INADA Naoki for pushing the patch through
the last mile, Serhiy Storchaka for reviewing the code, and to
Victor Stinner for suggesting the idea (originally implemented
in the PyPy project).
2016-12-13 19:03:51 -05:00
Xavier de Gaye
f852fff878
Issue #28759 : Merge 3.6.
2016-12-13 10:03:34 +01:00
Xavier de Gaye
3a4e989324
Issue #28759 : Fix the tests that fail with PermissionError when run as
...
a non-root user on Android where access rights are controled by SELinux MAC.
2016-12-13 10:00:01 +01:00
Xavier de Gaye
d0c2b5b0ae
Issue #26936 : Fix the test_socket failures on Android - getservbyname(),
...
getservbyport() and getaddrinfo() are broken on some Android API levels.
2016-12-13 09:22:01 +01:00
Xavier de Gaye
5831d7d558
Issue #26856 : Merge 3.6.
2016-12-13 09:12:49 +01:00
Xavier de Gaye
fb24eead48
Issue #26856 : Fix the tests assuming that the pwd module has getpwall() and
...
assuming some invariants about uids that are not valid for Android.
2016-12-13 09:11:38 +01:00
Xavier de Gaye
3603d18589
Issue #28764 : Merge 3.6.
2016-12-12 09:56:55 +01:00
Xavier de Gaye
452b3a6a3e
Issue #28764 : Fix a test_mailbox failure on Android API 24 when run as a non-root user.
2016-12-12 09:55:57 +01:00
Serhiy Storchaka
0f6373c34f
Issue #28739 : f-string expressions no longer accepted as docstrings and
...
by ast.literal_eval() even if they do not include subexpressions.
2016-12-11 19:39:36 +02:00
Serhiy Storchaka
4cc30ae313
Issue #28739 : f-string expressions no longer accepted as docstrings and
...
by ast.literal_eval() even if they do not include subexpressions.
2016-12-11 19:37:19 +02:00
Serhiy Storchaka
26817a8490
Issue #28512 : Fixed setting the offset attribute of SyntaxError by
...
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
2016-12-11 14:44:21 +02:00
Serhiy Storchaka
8114f21668
Issue #28512 : Fixed setting the offset attribute of SyntaxError by
...
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
2016-12-11 14:43:18 +02:00
Serhiy Storchaka
8b58339eb2
Issue #28512 : Fixed setting the offset attribute of SyntaxError by
...
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().
2016-12-11 14:39:01 +02:00
Martin Panter
2b27c2ddba
Issues #28916 , #26483 : Merge stdtypes.rst from 3.6
2016-12-11 03:17:06 +00:00
Martin Panter
0a7b8596c0
Issues #28916 , #26483 : Merge stdtypes.rst from 3.5
2016-12-11 02:31:32 +00:00
Martin Panter
41176ae1d2
Issue #28916 : Correct description of %o and %x alternative forms
...
* In Python 3, the specifier is 0o
* There is no special case for leading zeros
* Remove duplicate tests
* Clarify other existing tests and comments
2016-12-11 01:07:29 +00:00
Xavier de Gaye
5ca2b10213
Issue #28849 : Merge 3.6.
2016-12-10 17:34:46 +01:00
Xavier de Gaye
32cf1acda8
Issue #28849 : Do not define sys.implementation._multiarch on Android.
2016-12-10 17:31:28 +01:00
Antoine Pitrou
5c7198d464
Issue #28779 : multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
2016-12-10 17:19:21 +01:00
Antoine Pitrou
ebb39bcc04
Issue #28779 : multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
2016-12-10 17:16:17 +01:00
Antoine Pitrou
cd2a201e5b
Issue #28779 : multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.
2016-12-10 17:13:16 +01:00
Victor Stinner
c24217e144
regrtest --fromfile now accepts a list of filenames
2016-12-09 16:05:51 +01:00
Xavier de Gaye
f434111332
Issue #26941 : Merge 3.6.
2016-12-08 12:21:53 +01:00
Xavier de Gaye
cb9ab0f50b
Issue #26941 : Fix test_threading that hangs on the Android armv7 qemu emulator.
2016-12-08 12:21:00 +01:00
Xavier de Gaye
cd35959bfc
Issue #26940 : Merge 3.6.
2016-12-08 11:27:27 +01:00
Xavier de Gaye
f79606debd
Issue #26940 : Fix test_importlib that hangs on the Android armv7 qemu emulator.
2016-12-08 11:26:18 +01:00
Xavier de Gaye
566ba3defd
Issue #26939 : Merge 3.6.
2016-12-08 11:09:54 +01:00
Xavier de Gaye
7522ef402c
Issue #26939 : Add the support.setswitchinterval() function to fix
...
test_functools hanging on the Android armv7 qemu emulator.
2016-12-08 11:06:56 +01:00
Serhiy Storchaka
1b58d8aafa
Issue #5322 : Fixed setting __new__ to a PyCFunction inside Python code.
...
Original patch by Andreas Stührk.
2016-12-07 11:27:55 +02:00
Serhiy Storchaka
0c78634d78
Issue #5322 : Fixed setting __new__ to a PyCFunction inside Python code.
...
Original patch by Andreas Stührk.
2016-12-07 11:26:49 +02:00
Serhiy Storchaka
4fc7942118
Issue #28847 : A deprecation warning is now emitted if the index file is missed
...
and recreated in the 'r' and 'w' modes (will be an error in future Python
releases).
2016-12-07 11:11:12 +02:00
Serhiy Storchaka
43153e4d49
Issue #28847 : dbm.dumb now supports reading read-only files and no longer
...
writes the index file when it is not changed.
2016-12-07 11:02:18 +02:00
Serhiy Storchaka
520348e5c0
Issue #28847 : dbm.dumb now supports reading read-only files and no longer
...
writes the index file when it is not changed.
2016-12-07 11:00:06 +02:00
Serhiy Storchaka
028ace1ccb
Issue #28847 : dbm.dumb now supports reading read-only files and no longer
...
writes the index file when it is not changed.
2016-12-07 10:56:39 +02:00
Serhiy Storchaka
53c53ea4c5
Issue #27030 : Unknown escapes in re.sub() replacement template are allowed
...
again. But they still are deprecated and will be disabled in 3.7.
2016-12-06 19:15:29 +02:00
Victor Stinner
b38e83df33
Merge 3.6
2016-12-06 11:02:54 +01:00
Victor Stinner
8ae9e6a627
warnings: Fix the issue number
...
The fix for catch_warnings() is the issue #28835 (not the issue #28089 ).
2016-12-06 11:02:12 +01:00
Victor Stinner
01928f6c0f
Merge 3.6
2016-12-06 10:59:54 +01:00
Victor Stinner
8ef46be26a
catch_warnings() calls showwarning() if overriden
...
Issue #28089 : Fix a regression introduced in warnings.catch_warnings(): call
warnings.showwarning() if it was overriden inside the context manager.
2016-12-06 10:53:52 +01:00
Nick Coghlan
d77e5b7211
Merge #23722 from 3.6
2016-12-05 16:59:22 +10:00
Nick Coghlan
19d246745d
Issue #23722 : improve __classcell__ compatibility
...
Handling zero-argument super() in __init_subclass__ and
__set_name__ involved moving __class__ initialisation to
type.__new__. This requires cooperation from custom
metaclasses to ensure that the new __classcell__ entry
is passed along appropriately.
The initial implementation of that change resulted in abruptly
broken zero-argument super() support in metaclasses that didn't
adhere to the new requirements (such as Django's metaclass for
Model definitions).
The updated approach adopted here instead emits a deprecation
warning for those cases, and makes them work the same way they
did in Python 3.5.
This patch also improves the related class machinery documentation
to cover these details and to include more reader-friendly
cross-references and index entries.
2016-12-05 16:47:55 +10:00
Serhiy Storchaka
5adfac2c1b
Issue #5322 : Fixed setting __new__ to a PyCFunction inside Python code.
...
Original patch by Andreas Stührk.
2016-12-02 08:42:43 +02:00
Victor Stinner
d6958ac6c0
Add sys.getandroidapilevel()
...
Issue #28740 : Add sys.getandroidapilevel(): return the build time
API version of Android as an integer.
Function only available on Android.
2016-12-02 01:13:46 +01:00