]> granicus.if.org Git - python/log
python
8 years agomerge
Raymond Hettinger [Fri, 16 Dec 2016 21:59:32 +0000 (13:59 -0800)]
merge

8 years agoIssue #28991: Fix obscure reentrancy bug in functools.lru_cache().
Raymond Hettinger [Fri, 16 Dec 2016 21:57:40 +0000 (13:57 -0800)]
Issue #28991:  Fix obscure reentrancy bug in functools.lru_cache().

8 years agoIssue #28971: Merge 3.5
Xavier de Gaye [Fri, 16 Dec 2016 19:50:10 +0000 (20:50 +0100)]
Issue #28971: Merge 3.5

8 years agoIssue #28971: Temporarily skip test_over until a permanent solution is found
Xavier de Gaye [Fri, 16 Dec 2016 19:49:10 +0000 (20:49 +0100)]
Issue #28971: Temporarily skip test_over until a permanent solution is found
for issue #28971.

8 years agoNull merge
Serhiy Storchaka [Fri, 16 Dec 2016 17:06:34 +0000 (19:06 +0200)]
Null merge

8 years agoMerge heads
Serhiy Storchaka [Fri, 16 Dec 2016 17:05:57 +0000 (19:05 +0200)]
Merge heads

8 years agoMerge heads
Serhiy Storchaka [Fri, 16 Dec 2016 17:05:33 +0000 (19:05 +0200)]
Merge heads

8 years agoIssue #14061: Misc fixes and cleanups in archiving code in shutil.
Serhiy Storchaka [Fri, 16 Dec 2016 17:00:55 +0000 (19:00 +0200)]
Issue #14061: Misc fixes and cleanups in archiving code in shutil.

Imporoved the documentation and tests for make_archive() and unpack_archive().
Improved error handling when corresponding compress module is not available.
Brake circular dependency between shutil and tarfile modules.

8 years agoIssue #14061: Misc fixes and cleanups in archiving code in shutil.
Serhiy Storchaka [Fri, 16 Dec 2016 16:58:33 +0000 (18:58 +0200)]
Issue #14061: Misc fixes and cleanups in archiving code in shutil.

Imporoved the documentation and tests for make_archive() and unpack_archive().
Improved error handling when corresponding compress module is not available.
Brake circular dependency between shutil and tarfile modules.

8 years agoMerge 3.5 (issue #28990)
Yury Selivanov [Fri, 16 Dec 2016 16:51:57 +0000 (11:51 -0500)]
Merge 3.5 (issue #28990)

8 years agoIssue #28990: Fix SSL hanging if connection is closed before handshake completed.
Yury Selivanov [Fri, 16 Dec 2016 16:50:41 +0000 (11:50 -0500)]
Issue #28990: Fix SSL hanging if connection is closed before handshake completed.

8 years agoMerge 3.5
Victor Stinner [Fri, 16 Dec 2016 09:00:53 +0000 (10:00 +0100)]
Merge 3.5

8 years agopython-gdb.py: catch gdb.error on gdb.selected_frame()
Victor Stinner [Fri, 16 Dec 2016 09:00:39 +0000 (10:00 +0100)]
python-gdb.py: catch gdb.error on gdb.selected_frame()

8 years agonull merge 3.6.0rc1+ head
Ned Deily [Fri, 16 Dec 2016 06:02:17 +0000 (01:02 -0500)]
null merge 3.6.0rc1+ head

8 years agobump version to 3.6.0rc1+
Ned Deily [Fri, 16 Dec 2016 05:13:46 +0000 (00:13 -0500)]
bump version to 3.6.0rc1+

8 years agoIssue #28898: add Misc/NEWS entry
Ned Deily [Fri, 16 Dec 2016 04:20:48 +0000 (23:20 -0500)]
Issue #28898: add Misc/NEWS entry

8 years agodocs: asyncio is no longer provisional
Yury Selivanov [Thu, 15 Dec 2016 23:58:19 +0000 (18:58 -0500)]
docs: asyncio is no longer provisional

8 years agodocs: asyncio is no longer provisional
Yury Selivanov [Thu, 15 Dec 2016 23:58:19 +0000 (18:58 -0500)]
docs: asyncio is no longer provisional
(grafted from 4cb3ea76ce68efd52271e499647abbf0f8a2941f)

8 years agoIssue #28635: asyncio-related fixes and additions.
Yury Selivanov [Thu, 15 Dec 2016 22:56:43 +0000 (17:56 -0500)]
Issue #28635: asyncio-related fixes and additions.

8 years agoIssue #28635: asyncio-related fixes and additions.
Yury Selivanov [Thu, 15 Dec 2016 22:56:43 +0000 (17:56 -0500)]
Issue #28635: asyncio-related fixes and additions.
(grafted from 418ba3a0f090ac0e17a935b7cd5a63ea8263a914)

8 years agoIssue #28091: Document PEP 525 & PEP 530.
Yury Selivanov [Thu, 15 Dec 2016 22:36:05 +0000 (17:36 -0500)]
Issue #28091: Document PEP 525 & PEP 530.

Patch by Eric Appelt.

8 years agoIssue #28091: Document PEP 525 & PEP 530.
Yury Selivanov [Thu, 15 Dec 2016 22:36:05 +0000 (17:36 -0500)]
Issue #28091: Document PEP 525 & PEP 530.

Patch by Eric Appelt.
(grafted from 78c8f450b84ca1864123ec487d363eb151f61a4a)

8 years agoIssue #26919: On Android, operating system data is now always encoded/decoded
Xavier de Gaye [Thu, 15 Dec 2016 19:59:58 +0000 (20:59 +0100)]
Issue #26919: On Android, operating system data is now always encoded/decoded
to/from UTF-8, instead of the locale encoding to avoid inconsistencies with
os.fsencode() and os.fsdecode() which are already using UTF-8.

8 years agoFix a memory leak in split-table dictionaries
Victor Stinner [Thu, 15 Dec 2016 16:21:23 +0000 (17:21 +0100)]
Fix a memory leak in split-table dictionaries

Issue #28147: Fix a memory leak in split-table dictionaries: setattr() must not
convert combined table into split table.

Patch written by INADA Naoki.
(grafted from 85be9dcc16a81d3ccd1f67b056255a7f206edd47)

8 years agoFix a memory leak in split-table dictionaries
Victor Stinner [Thu, 15 Dec 2016 16:21:23 +0000 (17:21 +0100)]
Fix a memory leak in split-table dictionaries

Issue #28147: Fix a memory leak in split-table dictionaries: setattr() must not
convert combined table into split table.

Patch written by INADA Naoki.

8 years agoIssue #28979: Fix What's New in Python 3.6, dict
Victor Stinner [Thu, 15 Dec 2016 15:20:53 +0000 (16:20 +0100)]
Issue #28979: Fix What's New in Python 3.6, dict

The new dict implementation is not faster, but more compact.

Patch written by Brendan Donegan.
(grafted from 181453f9a0c424212f0f6ddca2b9065c15689d7c)

8 years agoIssue #28979: Fix What's New in Python 3.6, dict
Victor Stinner [Thu, 15 Dec 2016 15:20:53 +0000 (16:20 +0100)]
Issue #28979: Fix What's New in Python 3.6, dict

The new dict implementation is not faster, but more compact.

Patch written by Brendan Donegan.

8 years agoIssue #28930: Add a Makefile rule for bytes_methods.c.
Xiang Zhang [Thu, 15 Dec 2016 08:41:12 +0000 (16:41 +0800)]
Issue #28930: Add a Makefile rule for bytes_methods.c.

Add a dependency to stringlib to make sure that bytes_methods.c is
recompiled if stringlib is modified.

8 years ago_asyncio uses _PyObject_CallMethodIdObjArgs()
Victor Stinner [Thu, 15 Dec 2016 08:05:11 +0000 (09:05 +0100)]
_asyncio uses _PyObject_CallMethodIdObjArgs()

Issue #28920: Replace _PyObject_CallMethodId(obj, meth, "O", arg) with
_PyObject_CallMethodIdObjArgs(obj, meth, arg, NULL) to avoid
_PyObject_CallMethodId() special case when arg is a tuple.

If arg is a tuple, _PyObject_CallMethodId() unpacks the tuple: obj.meth(*arg).

8 years agoIssue #28944: Merge from 3.5
Berker Peksag [Thu, 15 Dec 2016 02:38:25 +0000 (05:38 +0300)]
Issue #28944: Merge from 3.5

8 years agoIssue #28944: Fix footnote numbering
Berker Peksag [Thu, 15 Dec 2016 02:37:56 +0000 (05:37 +0300)]
Issue #28944: Fix footnote numbering

8 years agoIssue #28849: Skip test_sysconfig.test_triplet_in_ext_suffix on non linux platforms.
Xavier de Gaye [Wed, 14 Dec 2016 19:37:10 +0000 (20:37 +0100)]
Issue #28849: Skip test_sysconfig.test_triplet_in_ext_suffix on non linux platforms.

8 years agoFixes maximum usable length of buffer for formatting time zone in localtime().
Steve Dower [Wed, 14 Dec 2016 19:22:05 +0000 (11:22 -0800)]
Fixes maximum usable length of buffer for formatting time zone in localtime().

8 years agoMerge from 3.6.
Serhiy Storchaka [Wed, 14 Dec 2016 17:54:38 +0000 (19:54 +0200)]
Merge from 3.6.

8 years agoRevert changeset 1f31bf3f76f5 (issue5322) except tests.
Serhiy Storchaka [Wed, 14 Dec 2016 17:52:17 +0000 (19:52 +0200)]
Revert changeset 1f31bf3f76f5 (issue5322) except tests.

8 years agoIssue #28683: Fix the tests that bind() a unix socket and raise PermissionError
Xavier de Gaye [Wed, 14 Dec 2016 10:52:28 +0000 (11:52 +0100)]
Issue #28683: Fix the tests that bind() a unix socket and raise PermissionError
on Android for a non-root user.

8 years agoIssue #20211: Do not add the directory for installing C header files and
Xavier de Gaye [Wed, 14 Dec 2016 10:14:33 +0000 (11:14 +0100)]
Issue #20211: Do not add the directory for installing C header files and
the directory for installing object code libraries to the cross compilation
search paths.

8 years agoIssue #26071: Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe
Steve Dower [Tue, 13 Dec 2016 17:06:42 +0000 (09:06 -0800)]
Issue #26071: Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe

8 years agoIssue #26071: Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe
Steve Dower [Tue, 13 Dec 2016 17:06:24 +0000 (09:06 -0800)]
Issue #26071: Fixes preprocessor definition and rebuilds wininst-14.0[-amd64].exe

8 years agoIssue #28190: Cross compiling the _curses module does not use anymore
Xavier de Gaye [Tue, 13 Dec 2016 15:04:14 +0000 (16:04 +0100)]
Issue #28190: Cross compiling the _curses module does not use anymore
/usr/include/ncursesw as a headers search path.

8 years agoIssue #28759: Fix the tests that fail with PermissionError when run as
Xavier de Gaye [Tue, 13 Dec 2016 09:00:01 +0000 (10:00 +0100)]
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.

8 years agoIssue #26856: Fix the tests assuming that the pwd module has getpwall() and
Xavier de Gaye [Tue, 13 Dec 2016 08:11:38 +0000 (09:11 +0100)]
Issue #26856: Fix the tests assuming that the pwd module has getpwall() and
assuming some invariants about uids that are not valid for Android.

8 years agoIssue #28089: Document TCP_NODELAY in asyncio
Yury Selivanov [Mon, 12 Dec 2016 21:44:58 +0000 (16:44 -0500)]
Issue #28089: Document TCP_NODELAY in asyncio

Initial patch by Mariatta Wijaya.
(grafted from 853e3f4d6cd98ac4590238bc1c60e40fd8ed3895)

8 years agoIssue #28089: Document TCP_NODELAY in asyncio
Yury Selivanov [Mon, 12 Dec 2016 21:44:58 +0000 (16:44 -0500)]
Issue #28089: Document TCP_NODELAY in asyncio

Initial patch by Mariatta Wijaya.

8 years agoIssue #28896: Disable WindowsRegistryFinder by default.
Steve Dower [Mon, 12 Dec 2016 19:17:59 +0000 (11:17 -0800)]
Issue #28896: Disable WindowsRegistryFinder by default.

8 years agoIssue #28764: Fix a test_mailbox failure on Android API 24 when run as a non-root...
Xavier de Gaye [Mon, 12 Dec 2016 08:55:57 +0000 (09:55 +0100)]
Issue #28764: Fix a test_mailbox failure on Android API 24 when run as a non-root user.

8 years agoIssue #28783: Replaces bdist_wininst in nuget packages with stub
Steve Dower [Sun, 11 Dec 2016 22:48:32 +0000 (14:48 -0800)]
Issue #28783: Replaces bdist_wininst in nuget packages with stub

8 years agoIssue #28783: Replaces bdist_wininst in nuget packages with stub
Steve Dower [Sun, 11 Dec 2016 22:48:32 +0000 (14:48 -0800)]
Issue #28783: Replaces bdist_wininst in nuget packages with stub

8 years agoIssue #28783: Replaces bdist_wininst in nuget packages with stub
Steve Dower [Sun, 11 Dec 2016 22:35:07 +0000 (14:35 -0800)]
Issue #28783: Replaces bdist_wininst in nuget packages with stub

8 years agoIssue #28739: f-string expressions no longer accepted as docstrings and
Serhiy Storchaka [Sun, 11 Dec 2016 17:37:19 +0000 (19:37 +0200)]
Issue #28739: f-string expressions no longer accepted as docstrings and
by ast.literal_eval() even if they do not include subexpressions.

8 years agoIssue #28512: Fixed setting the offset attribute of SyntaxError by
Serhiy Storchaka [Sun, 11 Dec 2016 12:43:18 +0000 (14:43 +0200)]
Issue #28512: Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().

8 years agoIssue #28512: Fixed setting the offset attribute of SyntaxError by
Serhiy Storchaka [Sun, 11 Dec 2016 12:39:01 +0000 (14:39 +0200)]
Issue #28512: Fixed setting the offset attribute of SyntaxError by
PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject().

8 years agoIssues #28916, #26483: Merge stdtypes.rst from 3.5
Martin Panter [Sun, 11 Dec 2016 02:31:32 +0000 (02:31 +0000)]
Issues #28916, #26483: Merge stdtypes.rst from 3.5

8 years agoIssue #26483: Clarify str.isdecimal() and isdigit()
Martin Panter [Sun, 11 Dec 2016 01:08:25 +0000 (01:08 +0000)]
Issue #26483: Clarify str.isdecimal() and isdigit()

Patch by Julien Palard.

8 years agoIssue #28916: Correct description of %o and %x alternative forms
Martin Panter [Sun, 11 Dec 2016 01:07:29 +0000 (01:07 +0000)]
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

8 years agoMerge for issue #28424
Brett Cannon [Sat, 10 Dec 2016 22:14:47 +0000 (14:14 -0800)]
Merge for issue #28424

8 years agoIssue #28424: Document pkgutil.get_data() doesn't work with namespace packages.
Brett Cannon [Sat, 10 Dec 2016 22:13:38 +0000 (14:13 -0800)]
Issue #28424: Document pkgutil.get_data() doesn't work with namespace packages.

Thanks to Douglas Greiman for the patch.

8 years agoIssue #28849: Do not define sys.implementation._multiarch on Android.
Xavier de Gaye [Sat, 10 Dec 2016 16:31:28 +0000 (17:31 +0100)]
Issue #28849: Do not define sys.implementation._multiarch on Android.

8 years agoIssue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver...
Antoine Pitrou [Sat, 10 Dec 2016 16:16:17 +0000 (17:16 +0100)]
Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.

8 years agoIssue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver...
Antoine Pitrou [Sat, 10 Dec 2016 16:13:16 +0000 (17:13 +0100)]
Issue #28779: multiprocessing.set_forkserver_preload() would crash the forkserver process if a preloaded module instantiated some multiprocessing objects such as locks.

8 years agoIssue #28918: Fix the cross compilation of xxlimited when Python
Xavier de Gaye [Sat, 10 Dec 2016 15:45:53 +0000 (16:45 +0100)]
Issue #28918: Fix the cross compilation of xxlimited when Python
has been built with Py_DEBUG defined.

8 years agoIssue #28771: Merge C API doc fix from 3.5
Martin Panter [Sat, 10 Dec 2016 05:57:38 +0000 (05:57 +0000)]
Issue #28771: Merge C API doc fix from 3.5

8 years agoIssue #28771: Update tp_get/setattr signature documentation
Martin Panter [Sat, 10 Dec 2016 05:56:13 +0000 (05:56 +0000)]
Issue #28771: Update tp_get/setattr signature documentation

8 years agoFix typos in comment and documentation
Martin Panter [Sat, 10 Dec 2016 05:32:55 +0000 (05:32 +0000)]
Fix typos in comment and documentation

8 years agoIssue #28820: Merge spelling fixes from 3.5
Martin Panter [Sat, 10 Dec 2016 05:38:25 +0000 (05:38 +0000)]
Issue #28820: Merge spelling fixes from 3.5

8 years agoIssue #28820: Fix spelling of “practice” as a noun
Martin Panter [Sat, 10 Dec 2016 05:12:56 +0000 (05:12 +0000)]
Issue #28820: Fix spelling of “practice” as a noun

8 years agoIssues #28755, #28753: Merge Arg Clinic howto from 3.5
Martin Panter [Sat, 10 Dec 2016 04:14:02 +0000 (04:14 +0000)]
Issues #28755, #28753: Merge Arg Clinic howto from 3.5

8 years agoIssue #28755: Improve syntax highlighting in Arg Clinic howto
Martin Panter [Sat, 10 Dec 2016 04:10:45 +0000 (04:10 +0000)]
Issue #28755: Improve syntax highlighting in Arg Clinic howto

8 years agoIssue 28753: Argument Clinic howto docfix, courtesy Julien Palard.
Martin Panter [Sat, 10 Dec 2016 03:49:12 +0000 (03:49 +0000)]
Issue 28753: Argument Clinic howto docfix, courtesy Julien Palard.

8 years agoIssue #26937: The chown() method of the tarfile.TarFile class does not fail now
Xavier de Gaye [Fri, 9 Dec 2016 08:33:09 +0000 (09:33 +0100)]
Issue #26937: The chown() method of the tarfile.TarFile class does not fail now
when the grp module cannot be imported, as for example on Android platforms.

8 years agoIssue #28900: Update documentation sidebar for 3.6.0rc.
Ned Deily [Thu, 8 Dec 2016 04:34:49 +0000 (23:34 -0500)]
Issue #28900: Update documentation sidebar for 3.6.0rc.

8 years agoIssue #28896: Deprecate WindowsRegistryFinder
Steve Dower [Wed, 7 Dec 2016 21:02:27 +0000 (13:02 -0800)]
Issue #28896: Deprecate WindowsRegistryFinder
(grafted from 25df9671663b5f8b1560d58d8842f9676f6dffc2)

8 years agoguard HAVE_LONG_LONG definition to prevent redefinition (#28898)
Benjamin Peterson [Thu, 8 Dec 2016 07:54:28 +0000 (23:54 -0800)]
guard HAVE_LONG_LONG definition to prevent redefinition (#28898)
(grafted from 4745d801cae2d57e3432313acd0b76b8b4cc9c75)

8 years agoIssue #28900: Update documentation sidebar for 3.6.0rc.
Ned Deily [Thu, 8 Dec 2016 04:37:12 +0000 (23:37 -0500)]
Issue #28900: Update documentation sidebar for 3.6.0rc.

8 years agoIssue #28635: Drop the note that whatsnew is incomplete
Yury Selivanov [Thu, 8 Dec 2016 00:19:56 +0000 (16:19 -0800)]
Issue #28635: Drop the note that whatsnew is incomplete
(grafted from d12bc674b74eee73365e38fad1f170ed3349bd59)

8 years agoIssue #28896: Deprecate WindowsRegistryFinder
Steve Dower [Wed, 7 Dec 2016 21:02:27 +0000 (13:02 -0800)]
Issue #28896: Deprecate WindowsRegistryFinder

8 years agoChange order of io.UnsupportedOperation base classes.
Serhiy Storchaka [Wed, 7 Dec 2016 11:31:20 +0000 (13:31 +0200)]
Change order of io.UnsupportedOperation base classes.
This makes tests passing after changes by issue #5322.

8 years agoAdded tag v3.6.0rc1 for changeset 29a273eee9a5
Ned Deily [Wed, 7 Dec 2016 00:04:14 +0000 (19:04 -0500)]
Added tag v3.6.0rc1 for changeset 29a273eee9a5

8 years agoVersion bump for 3.6.0rc1 v3.6.0rc1
Ned Deily [Wed, 7 Dec 2016 00:02:30 +0000 (19:02 -0500)]
Version bump for 3.6.0rc1

8 years agoUpdate pydoc topics for 3.6.0rc1
Ned Deily [Tue, 6 Dec 2016 23:53:16 +0000 (18:53 -0500)]
Update pydoc topics for 3.6.0rc1

8 years agoRegenerate configure with autoconf 2.69.
Ned Deily [Tue, 6 Dec 2016 22:31:32 +0000 (17:31 -0500)]
Regenerate configure with autoconf 2.69.

8 years agoIssue #28835: Tidy previous showwarning changes based on review comments.
Ned Deily [Tue, 6 Dec 2016 22:12:47 +0000 (17:12 -0500)]
Issue #28835: Tidy previous showwarning changes based on review comments.
Patch by Serhiy Storchaka.

8 years agoUpdate the Mac installer README file for 3.6.0.
Ned Deily [Tue, 6 Dec 2016 22:00:44 +0000 (17:00 -0500)]
Update the Mac installer README file for 3.6.0.

8 years agoIssue #27030: Unknown escapes in re.sub() replacement template are allowed
Serhiy Storchaka [Tue, 6 Dec 2016 17:15:29 +0000 (19:15 +0200)]
Issue #27030: Unknown escapes in re.sub() replacement template are allowed
again.  But they still are deprecated and will be disabled in 3.7.

8 years agoFixed misplaced comment.
Serhiy Storchaka [Tue, 6 Dec 2016 11:45:44 +0000 (13:45 +0200)]
Fixed misplaced comment.

8 years agoFixed misplaced comment.
Serhiy Storchaka [Tue, 6 Dec 2016 11:43:46 +0000 (13:43 +0200)]
Fixed misplaced comment.

8 years agowarnings: Fix the issue number
Victor Stinner [Tue, 6 Dec 2016 10:02:12 +0000 (11:02 +0100)]
warnings: Fix the issue number

The fix for catch_warnings() is the issue #28835 (not the issue #28089).

8 years agocatch_warnings() calls showwarning() if overriden
Victor Stinner [Tue, 6 Dec 2016 09:53:52 +0000 (10:53 +0100)]
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.

8 years agomerge 3.5
Benjamin Peterson [Tue, 6 Dec 2016 06:31:12 +0000 (22:31 -0800)]
merge 3.5

8 years agorm unused import
Benjamin Peterson [Tue, 6 Dec 2016 06:30:55 +0000 (22:30 -0800)]
rm unused import

8 years agoIssue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
Serhiy Storchaka [Mon, 5 Dec 2016 22:17:45 +0000 (00:17 +0200)]
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.

8 years agoIssue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.
Serhiy Storchaka [Mon, 5 Dec 2016 22:13:34 +0000 (00:13 +0200)]
Issue #28808: PyUnicode_CompareWithASCIIString() now never raises exceptions.

8 years agoIssue #23722: improve __classcell__ compatibility
Nick Coghlan [Mon, 5 Dec 2016 06:47:55 +0000 (16:47 +1000)]
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.

8 years agoNeaten-up and extend the examples in the random module docs.
Raymond Hettinger [Sun, 4 Dec 2016 19:00:34 +0000 (11:00 -0800)]
Neaten-up and extend the examples in the random module docs.

8 years agoFixed mismatching title overline.
Serhiy Storchaka [Sun, 4 Dec 2016 13:43:37 +0000 (15:43 +0200)]
Fixed mismatching title overline.

8 years agoFixed mismatching title overline.
Serhiy Storchaka [Sun, 4 Dec 2016 13:42:13 +0000 (15:42 +0200)]
Fixed mismatching title overline.

8 years agoFixed double hyphens that are rendered to literal en-dashes in the documenation.
Serhiy Storchaka [Sun, 4 Dec 2016 08:22:09 +0000 (10:22 +0200)]
Fixed double hyphens that are rendered to literal en-dashes in the documenation.

8 years agoFixed double hyphens that are rendered to literal en-dashes in the documenation.
Serhiy Storchaka [Sun, 4 Dec 2016 08:20:55 +0000 (10:20 +0200)]
Fixed double hyphens that are rendered to literal en-dashes in the documenation.

8 years agoRevert unintended merge
Steve Dower [Sat, 3 Dec 2016 23:57:00 +0000 (15:57 -0800)]
Revert unintended merge

8 years agoEnsures intermediate directory is created before using it
Steve Dower [Sat, 3 Dec 2016 19:56:44 +0000 (11:56 -0800)]
Ensures intermediate directory is created before using it