mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Update PyDoc topics and NEWS blurbs for 3.7.0a1
This commit is contained in:
parent
380c5fbc6f
commit
450ceea331
643 changed files with 6919 additions and 1751 deletions
File diff suppressed because it is too large
Load diff
6456
Misc/NEWS.d/3.7.0a1.rst
Normal file
6456
Misc/NEWS.d/3.7.0a1.rst
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,2 +0,0 @@
|
||||||
Prevent missing 'getentropy' declaration warning on macOS. Patch by Gareth
|
|
||||||
Rees.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Remove redundant include search directory option for building outside the
|
|
||||||
source tree.
|
|
|
@ -1,3 +0,0 @@
|
||||||
A full copy of libffi is no longer bundled for use when building _ctypes on
|
|
||||||
non-OSX UNIX platforms. An installed copy of libffi is now required when
|
|
||||||
building _ctypes on such platforms.
|
|
|
@ -1 +0,0 @@
|
||||||
setup.py now detects system libffi with multiarch wrapper.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fixed build with Estonian locale (python-config and distclean targets in
|
|
||||||
Makefile). Patch by Arfrever Frehtes Taifersar Arahesis.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Add configure check for siginfo_t.si_band, which Cygwin does not provide.
|
|
||||||
Patch by Masayuki Yamamoto with review and rebase by Erik Bray.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix building extensions modules on Cygwin. Patch by Roumen Petrov, based on
|
|
||||||
original patch by Jason Tishler.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix building the _struct module on Cygwin by passing ``NULL`` instead of
|
|
||||||
``&PyType_Type`` to PyVarObject_HEAD_INIT. Patch by Masayuki Yamamoto.
|
|
|
@ -1 +0,0 @@
|
||||||
Update Windows build and OS X installers to use OpenSSL 1.0.2j.
|
|
|
@ -1 +0,0 @@
|
||||||
Update Windows build and OS X installers to use SQLite 3.14.2.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix missing extensions modules when cross compiling.
|
|
|
@ -1 +0,0 @@
|
||||||
Rename --with-optimiations to --enable-optimizations.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix out-of-tree building on AIX. Patch by Tristan Carel and Michael
|
|
||||||
Haubenwallner.
|
|
|
@ -1 +0,0 @@
|
||||||
Do not define sys.implementation._multiarch on Android.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Do not add the directory for installing C header files and the directory for
|
|
||||||
installing object code libraries to the cross compilation search paths.
|
|
||||||
Original patch by Thomas Petazzoni.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix the compilation error that occurs because if_nameindex() is available on
|
|
||||||
Android API level 24, but the if_nameindex structure is not defined.
|
|
|
@ -1,2 +0,0 @@
|
||||||
lockf() is available on Android API level 24, but the F_LOCK macro is not
|
|
||||||
defined in android-ndk-r13.
|
|
|
@ -1 +0,0 @@
|
||||||
Added missed names to PC/python3.def.
|
|
|
@ -1 +0,0 @@
|
||||||
Removes hard dependency on hg.exe from PCBuild/build.bat
|
|
|
@ -1 +0,0 @@
|
||||||
Fix implicit declaration of function _setmode. Patch by Masayuki Yamamoto
|
|
|
@ -1 +0,0 @@
|
||||||
Set Android compilation and link flags.
|
|
|
@ -1 +0,0 @@
|
||||||
Remove old Be OS helper scripts.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Prohibit implicit C function declarations: use -Werror=implicit-function-
|
|
||||||
declaration when possible (GCC and Clang, but it depends on the compiler
|
|
||||||
version). Patch written by Chi Hsuan Yen.
|
|
|
@ -1 +0,0 @@
|
||||||
Update Windows build and OS X installers to use OpenSSL 1.0.2k.
|
|
|
@ -1,3 +0,0 @@
|
||||||
sys.version and the platform module python_build(), python_branch(), and
|
|
||||||
python_revision() functions now use git information rather than hg when
|
|
||||||
building from a repo.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix ``--enable-optimization`` didn't work.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Don't regenerate generated files based on file modification time anymore:
|
|
||||||
the action is now explicit. Replace ``make touch`` with ``make regen-all``.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Prevent unnecessary rebuilding of Python during ``make test``, ``make
|
|
||||||
install`` and some other make targets when configured with ``--enable-
|
|
||||||
optimizations``.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix out-of-tree builds of Python when configured with ``--with--dtrace``.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Add ``--with-assertions`` configure flag to explicitly enable C ``assert()``
|
|
||||||
checks. Defaults to off. ``--with-pydebug`` implies ``--with-assertions``.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Support the *disabled* marker in Setup files. Extension modules listed after
|
|
||||||
this marker are not built at all, neither by the Makefile nor by setup.py.
|
|
|
@ -1 +0,0 @@
|
||||||
Locate msbuild.exe on Windows when building rather than vcvarsall.bat
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix compile error when compiling --without-threads.
|
|
||||||
Patch by Masayuki Yamamoto.
|
|
|
@ -1 +0,0 @@
|
||||||
Per PEP 11, support for the IRIX operating system was removed.
|
|
|
@ -1,5 +0,0 @@
|
||||||
Remove support for building --without-threads.
|
|
||||||
|
|
||||||
This option is not really useful anymore in the 21st century. Removing lots
|
|
||||||
of conditional paths allows us to simplify the code base, including in
|
|
||||||
difficult to maintain low-level internal code.
|
|
|
@ -1 +0,0 @@
|
||||||
Allow --with-lto to be used on all builds, not just `make profile-opt`.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Deprecated undocumented functions PyUnicode_AsEncodedObject(),
|
|
||||||
PyUnicode_AsDecodedObject(), PyUnicode_AsDecodedUnicode() and
|
|
||||||
PyUnicode_AsEncodedUnicode().
|
|
|
@ -1 +0,0 @@
|
||||||
Compiler warnings are now emitted if use most of deprecated functions.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Private variable _Py_PackageContext is now of type ``const char *`` rather
|
|
||||||
of ``char *``.
|
|
|
@ -1,3 +0,0 @@
|
||||||
The fields name and doc of structures PyMemberDef, PyGetSetDef,
|
|
||||||
PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of
|
|
||||||
type ``const char *`` rather of ``char *``.
|
|
|
@ -1 +0,0 @@
|
||||||
PyUnicode_CompareWithASCIIString() now never raises exceptions.
|
|
|
@ -1,2 +0,0 @@
|
||||||
The index parameters *start* and *end* of PyUnicode_FindChar() are now
|
|
||||||
adjusted to behave like ``str[start:end]``.
|
|
|
@ -1,3 +0,0 @@
|
||||||
All stable API extensions added after Python 3.2 are now available only when
|
|
||||||
Py_LIMITED_API is set to the PY_VERSION_HEX value of the minimum Python
|
|
||||||
version supporting this API.
|
|
|
@ -1,2 +0,0 @@
|
||||||
The result of PyUnicode_AsUTF8AndSize() and PyUnicode_AsUTF8() is now of
|
|
||||||
type ``const char *`` rather of ``char *``.
|
|
|
@ -1,5 +0,0 @@
|
||||||
Fixed the declaration of some public API functions. PyArg_VaParse() and
|
|
||||||
PyArg_VaParseTupleAndKeywords() were not available in limited API.
|
|
||||||
PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and Py_BuildValue()
|
|
||||||
were not available in limited API of version < 3.3 when PY_SSIZE_T_CLEAN is
|
|
||||||
defined.
|
|
|
@ -1,4 +0,0 @@
|
||||||
Function PySlice_GetIndicesEx() is deprecated and replaced with a macro if
|
|
||||||
Py_LIMITED_API is not set or set to the value between 0x03050400 and
|
|
||||||
0x03060000 (not including) or 0x03060100 or higher. Added functions
|
|
||||||
PySlice_Unpack() and PySlice_AdjustIndices().
|
|
|
@ -1,3 +0,0 @@
|
||||||
The type of results of PyThread_start_new_thread() and
|
|
||||||
PyThread_get_thread_ident(), and the id parameter of
|
|
||||||
PyThreadState_SetAsyncExc() changed from "long" to "unsigned long".
|
|
|
@ -1,2 +0,0 @@
|
||||||
Deprecate PyOS_AfterFork() and add PyOS_BeforeFork(),
|
|
||||||
PyOS_AfterFork_Parent() and PyOS_AfterFork_Child().
|
|
|
@ -1,2 +0,0 @@
|
||||||
PyUnicode_AsWideCharString() now raises a ValueError if the second argument
|
|
||||||
is NULL and the wchar_t\* string contains null characters.
|
|
|
@ -1,7 +0,0 @@
|
||||||
Remove own implementation for thread-local storage.
|
|
||||||
|
|
||||||
CPython has provided the own implementation for thread-local storage (TLS)
|
|
||||||
on Python/thread.c, it's used in the case which a platform has not supplied
|
|
||||||
native TLS. However, currently all supported platforms (Windows and pthreads)
|
|
||||||
have provided native TLS and defined the Py_HAVE_NATIVE_TLS macro with
|
|
||||||
unconditional in any case.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Added the ``Py_UNREACHABLE()`` macro for code paths which are never expected
|
|
||||||
to be reached. This and a few other useful macros are now documented in the
|
|
||||||
C API manual.
|
|
|
@ -1 +0,0 @@
|
||||||
Speed-up method calls: add LOAD_METHOD and CALL_METHOD opcodes.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix asynchronous generators aclose() and athrow() to handle
|
|
||||||
StopAsyncIteration propagation properly.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix a refleak in code that raises DeprecationWarning.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Raise DeprecationWarning when async and await keywords are used as
|
|
||||||
variable/attribute/class/function name.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix dict.pop() for splitted dictionary when trying to remove a "pending key"
|
|
||||||
(Not yet inserted in split-table). Patch by Xiang Zhang.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Replace Py_MEMCPY with memcpy(). Visual Studio can properly optimize
|
|
||||||
memcpy().
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix a regression in zipimport's compile_source(). zipimport should use the
|
|
||||||
same optimization level as the interpreter.
|
|
|
@ -1 +0,0 @@
|
||||||
Upgrade internal unicode databases to Unicode version 9.0.0.
|
|
|
@ -1 +0,0 @@
|
||||||
Clean up redundant code in long_rshift function. Thanks Oren Milman.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Remove some redundant assignments to ob_size in longobject.c. Thanks Oren
|
|
||||||
Milman.
|
|
|
@ -1 +0,0 @@
|
||||||
Don't import readline in isolated mode.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fallback on reading /dev/urandom device when the getrandom() syscall fails
|
|
||||||
with EPERM, for example when blocked by SECCOMP.
|
|
|
@ -1 +0,0 @@
|
||||||
Now __set_name__ is looked up on the class instead of the instance.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Single var-positional argument of tuple subtype was passed unscathed to the
|
|
||||||
C-defined function. Now it is converted to exact tuple.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix incorrect type in complex(1.0, {2:3}) error message. Patch by Soumya
|
|
||||||
Sharma.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fixed misleading error message when ImportError called with invalid keyword
|
|
||||||
args.
|
|
|
@ -1 +0,0 @@
|
||||||
ImportError.__init__ now resets not specified attributes.
|
|
|
@ -1 +0,0 @@
|
||||||
String constants now interned recursively in tuples and frozensets.
|
|
|
@ -1 +0,0 @@
|
||||||
Fix crash when GC runs during weakref callbacks.
|
|
|
@ -1 +0,0 @@
|
||||||
String constants with null character no longer interned.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Dict reduces possibility of 2nd conflict in hash table when hashes have same
|
|
||||||
lower bits.
|
|
|
@ -1 +0,0 @@
|
||||||
Fixed possible crash when AST is changed in process of compiling it.
|
|
|
@ -1,2 +0,0 @@
|
||||||
PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas
|
|
||||||
Koep.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Resolving special methods of uninitialized type now causes implicit
|
|
||||||
initialization of the type instead of a fail.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Creating instances of range_iterator by calling range_iterator type now is
|
|
||||||
disallowed. Calling iter() on range instance is the only way. Patch by Oren
|
|
||||||
Milman.
|
|
|
@ -1,2 +0,0 @@
|
||||||
The type of long range iterator is now registered as Iterator. Patch by Oren
|
|
||||||
Milman.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Added sanity checks and tests for PyUnicode_CopyCharacters(). Patch by Xiang
|
|
||||||
Zhang.
|
|
|
@ -1 +0,0 @@
|
||||||
Added C implementation of asyncio.Future. Original patch by Yury Selivanov.
|
|
|
@ -1 +0,0 @@
|
||||||
Optimize and cleanup dict iteration.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fixed possible memory leak in _PyTraceback_Add() and exception loss in
|
|
||||||
PyTraceBack_Here().
|
|
|
@ -1 +0,0 @@
|
||||||
Improved exception reporting for problematic __set_name__ attributes.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fixed of-by-one error in the peephole optimizer that caused keeping
|
|
||||||
unreachable code.
|
|
|
@ -1 +0,0 @@
|
||||||
Fixed potential crash in PyUnicode_AsDecodedObject() in debug build.
|
|
|
@ -1 +0,0 @@
|
||||||
dict.update() no longer allocate unnecessary large memory.
|
|
|
@ -1,3 +0,0 @@
|
||||||
Deprecation warning for invalid str and byte escape sequences now prints
|
|
||||||
better information about where the error occurs. Patch by Serhiy Storchaka
|
|
||||||
and Eric Smith.
|
|
|
@ -1,2 +0,0 @@
|
||||||
PyDict_SetDefault didn't combine split table when needed. Patch by Xiang
|
|
||||||
Zhang.
|
|
|
@ -1 +0,0 @@
|
||||||
Optimize iterating split table values. Patch by Xiang Zhang.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Sped up converting int to float by reusing faster bits counting
|
|
||||||
implementation. Patch by Adrian Wielgosik.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Extra slash no longer added to sys.path components in case of empty compile-
|
|
||||||
time PYTHONPATH components.
|
|
|
@ -1 +0,0 @@
|
||||||
Improve speed of the STORE_DEREF opcode by 40%.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fixed crash in Py_DecodeLocale() in debug build on Mac OS X when decode
|
|
||||||
astral characters. Patch by Xiang Zhang.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix not getting the locale's charset upon initializing the interpreter, on
|
|
||||||
platforms that do not have langinfo.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Fix the set_inheritable() file descriptor method on platforms that do not
|
|
||||||
have the ioctl FIOCLEX and FIONCLEX commands.
|
|
|
@ -1,3 +0,0 @@
|
||||||
The with-statement now checks for __enter__ before it checks for __exit__.
|
|
||||||
This gives less confusing error messages when both methods are missing.
|
|
||||||
Patch by Jonathan Ellington.
|
|
|
@ -1 +0,0 @@
|
||||||
Show sys.version when -V option is supplied twice.
|
|
|
@ -1,2 +0,0 @@
|
||||||
Optimize _PyDict_NewPresized() to create correct size dict. Improve speed of
|
|
||||||
dict literal with constant keys up to 30%.
|
|
|
@ -1,4 +0,0 @@
|
||||||
Fix error position of the unicode error in ASCII and Latin1 encoders when a
|
|
||||||
string returned by the error handler contains multiple non-encodable
|
|
||||||
characters (non-ASCII for the ASCII codec, characters out of the
|
|
||||||
U+0000-U+00FF range for Latin1).
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue