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
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
Yury Selivanov
edfe8869c8
Merge 3.6 (issue #28843 )
2016-12-01 11:37:47 -05:00
Yury Selivanov
c2c8fe1252
Issue #28843 : Fix asyncio C Task to handle exceptions __traceback__.
2016-12-01 11:36:22 -05:00
Guido van Rossum
356ae170ef
Issue #28790 : Fix error when using Generic and __slots__ (Ivan L) (3.6->3.7)
2016-11-29 09:46:29 -08:00
Guido van Rossum
c349374ee6
Issue #28790 : Fix error when using Generic and __slots__ (Ivan L) (3.5->3.6)
2016-11-29 09:46:26 -08:00
Guido van Rossum
61f0a0261f
Issue #28790 : Fix error when using Generic and __slots__ (Ivan L)
2016-11-29 09:46:21 -08:00
Serhiy Storchaka
baa7223bcd
Issue #28797 : Modifying the class __dict__ inside the __set_name__ method of
...
a descriptor that is used inside that class no longer prevents calling the
__set_name__ method of other descriptors.
2016-11-29 09:56:07 +02:00
Serhiy Storchaka
9ec07721f4
Issue #28797 : Modifying the class __dict__ inside the __set_name__ method of
...
a descriptor that is used inside that class no longer prevents calling the
__set_name__ method of other descriptors.
2016-11-29 09:54:17 +02:00
Serhiy Storchaka
214678e44b
Issue #12844 : More than 255 arguments can now be passed to a function.
2016-11-28 10:52:05 +02:00
Łukasz Langa
de7bf086d2
Merge 3.6, fix for #24142
2016-11-26 14:04:40 -08:00
Łukasz Langa
8fb4e421f4
Merge 3.5, fix for #24142
2016-11-26 14:02:48 -08:00
Łukasz Langa
47a9a4beda
Fixes #24142 : [configparser] always join multiline values to not leave the parser in an invalid state
2016-11-26 14:00:39 -08:00
Raymond Hettinger
87d89d9714
merge
2016-11-24 10:50:57 -08:00
Raymond Hettinger
7e45b5c63c
Issue #27100 : Silence deprecation warning in Lib/test/test_with.py
2016-11-24 10:50:34 -08:00
Victor Stinner
726a57d45f
Issue #28765 : _sre.compile() now checks the type of groupindex and indexgroup
...
groupindex must a dictionary and indexgroup must be a tuple.
Previously, indexgroup was a list. Use a tuple to reduce the memory usage.
2016-11-22 23:04:39 +01:00
Victor Stinner
e3d75c63cd
Issue #28770 : Update python-gdb.py for fastcalls
...
Frame.is_other_python_frame() now also handles _PyCFunction_FastCallDict()
frames.
Thanks to the new code to handle fast calls, python-gdb.py is now also able to
detect the <built-in id method of module ...> frame.
2016-11-22 22:53:18 +01:00
Victor Stinner
0b87b69a6e
Merge 3.6
2016-11-22 15:30:53 +01:00
Victor Stinner
bcf4dccfa7
Issue #28727 : Optimize pattern_richcompare() for a==a
...
A pattern is equal to itself.
2016-11-22 15:30:38 +01:00
INADA Naoki
ff33c93f23
Issue #28023 : Fix python-gdb.py didn't support new dict implementation
2016-11-22 19:43:11 +09:00
INADA Naoki
d7d2bc8798
Issue #28023 : Fix python-gdb.py didn't support new dict implementation
2016-11-22 19:40:58 +09:00
Raymond Hettinger
9af740b99a
merge
2016-11-21 17:24:58 -08:00
Raymond Hettinger
a3fec1543d
Issue #27100 : With statement reports missing __enter__ before __exit__. (Contributed by Jonathan Ellington.)
2016-11-21 17:24:23 -08:00
Raymond Hettinger
21fb9f1761
merge
2016-11-21 16:59:30 -08:00
Raymond Hettinger
4e17e04237
Issue #26163 : Disable periodically failing test which was overly demanding of the frozenset hash function effectiveness
2016-11-21 16:59:04 -08:00
Raymond Hettinger
fc3f50cac9
merge
2016-11-21 16:48:25 -08:00
Raymond Hettinger
6b3481c4ed
Issue #5830 : Add test for ee476248a74a. (Contributed by Serhiy Storchaka.)
2016-11-21 16:48:10 -08:00
Raymond Hettinger
e205f8b29e
merge
2016-11-21 15:32:26 -08:00
Raymond Hettinger
6023d33433
Issue #28743 : Reduce memory consumption for random module tests
2016-11-21 15:32:08 -08:00
Yury Selivanov
4878d001b1
Merge 3.6 (issue #28652 )
2016-11-21 17:47:54 -05:00
Yury Selivanov
5cb0c09fa6
Merge 3.5 (issue #28652 )
2016-11-21 17:47:41 -05:00
Yury Selivanov
dab0584738
Issue #28652 : Partially rollback previous changes
...
Allow AF_UNIX in create_server & create_connection
2016-11-21 17:47:27 -05:00
Raymond Hettinger
6088cfcfd4
merge
2016-11-21 14:34:51 -08:00
Raymond Hettinger
bf87126a63
Issue 28475: Improve error message for random.sample() with k < 0. (Contributed by Francisco Couzo).
2016-11-21 14:34:33 -08:00
Serhiy Storchaka
e425bd95e9
Issue #28752 : Restored the __reduce__() methods of datetime objects.
2016-11-22 00:30:32 +02:00
Serhiy Storchaka
546ce65968
Issue #28752 : Restored the __reduce__() methods of datetime objects.
2016-11-22 00:29:42 +02:00
Ethan Furman
6be8b1ea99
close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico.
2016-11-21 09:22:40 -08:00
Ethan Furman
23bb6f48ea
close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico.
2016-11-21 09:22:05 -08:00
Victor Stinner
6c7fb55d44
Issue #28688 : Remove warnings.filters check from regrtest
...
Reloading the warnings module duplicates filters in warnings.filters. Fixing
the issue is tricky. It was decided to simply remove the check from Python 3.5,
since the bug only impacts Python unit tests, not real applications.
The check is kept in Python 3.6 and newer.
2016-11-21 16:44:01 +01:00
Victor Stinner
065507f03a
Merge 3.6
2016-11-21 16:39:01 +01:00
Victor Stinner
b44fb128ae
Implement rich comparison for _sre.SRE_Pattern
...
Issue #28727 : Regular expression patterns, _sre.SRE_Pattern objects created by
re.compile(), become comparable (only x==y and x!=y operators). This change
should fix the issue #18383 : don't duplicate warning filters when the warnings
module is reloaded (thing usually only done in unit tests).
2016-11-21 16:35:08 +01:00
INADA Naoki
7fc69f2373
Issue #28532 : Show sys.version when -V option is supplied twice
2016-11-21 20:58:10 +09:00
INADA Naoki
0e175a6e76
Issue #28532 : Show sys.version when -V option is supplied twice
2016-11-21 20:57:14 +09:00
Gregory P. Smith
82604e03dc
Issue #20572 : Remove the subprocess.Popen.wait endtime parameter.
...
It was deprecated in 3.4 and undocumented prior to that.
2016-11-20 16:31:07 -08:00
Gregory P. Smith
f0e98c510d
Issue #20572 : The subprocess.Popen.wait method's undocumented endtime
...
parameter now raises a DeprecationWarning. It was deprecated in 3.4.
It was never documented prior to that.
2016-11-20 16:25:14 -08:00