Lines Matching +full:qemu +full:- +full:user +full:- +full:static
34 sufficient; the e-mail address isn't necessary.
60 Summary -- Release highlights
67 .. PEP-sized items next.
75 ----------------------
80 <https://en.wikipedia.org/wiki/Walrus#/media/File:Pacific_Walrus_-_Bull_(8247646168).jpg>`_.
96 The operator is also useful with while-loops that compute
119 Positional-only parameters
120 --------------------------
126 :ref:`Argument Clinic <howto-clinic>` tool.
128 In the following example, parameters *a* and *b* are positional-only,
146 the built-in :func:`divmod` function does not accept keyword arguments::
158 A further benefit of marking a parameter as positional-only is that it
193 -----------------------------------------------------
196 :option:`-X` ``pycache_prefix``) configures the implicit bytecode
209 -----------------------------------------------
215 Release builds and :ref:`debug builds <debug-build>` are now ABI compatible: defining the
220 --with-trace-refs <--with-trace-refs>` build option.
235 To embed Python into an application, a new ``--embed`` option must be passed to
236 ``python3-config --libs --embed`` to get ``-lpython3.8`` (link the application
237 to libpython). To support both 3.8 and older, try ``python3-config --libs
238 --embed`` first and fallback to ``python3-config --libs`` (without ``--embed``)
241 Add a pkg-config ``python-3.8-embed`` module to embed Python into an
242 application: ``pkg-config python-3.8-embed --libs`` includes ``-lpython3.8``.
243 To support both 3.8 and older, try ``pkg-config python-X.Y-embed --libs`` first
244 and fallback to ``pkg-config python-X.Y --libs`` (without ``--embed``) if the
247 On the other hand, ``pkg-config python3.8 --libs`` no longer contains
248 ``-lpython3.8``. C extensions must not be linked to libpython (except on
253 .. _bpo-36817-whatsnew:
255 f-strings support ``=`` for self-documenting expressions and debugging
256 ----------------------------------------------------------------------
258 Added an ``=`` specifier to :term:`f-string`\s. An f-string such as
262 >>> user = 'eric_idle'
264 >>> f'{user=} {member_since=}'
265 "user='eric_idle' member_since=datetime.date(1975, 7, 31)"
267 The usual :ref:`f-string format specifiers <f-strings>` allow more
270 >>> delta = date.today() - member_since
271 >>> f'{user=!s} {delta.days=:,d}'
272 'user=eric_idle delta.days=16,075'
284 -----------------------------------
296 --------------------------------------------
343 See :ref:`Python Initialization Configuration <init-config>` for the
352 --------------------------------------------------------
357 Any :ref:`static type <static-types>` implementing a callable can use this
368 Pickle protocol 5 with out-of-band data buffers
369 -----------------------------------------------
372 in order to take advantage of multi-core or multi-machine processing,
374 possibly by applying custom techniques such as data-dependent compression.
376 The :mod:`pickle` protocol 5 introduces support for out-of-band buffers
377 where :pep:`3118`-compatible data can be transmitted separately from the
421 never intended to permit more than a bare name on the left-hand side of a
453 * When the Python interpreter is interrupted by Ctrl-C (SIGINT) and the
456 calling process can detect that it died due to a Ctrl-C. Shells on POSIX
477 TypeError: mean() got some positional-only arguments passed as keyword arguments: 'data'
481 * For integers, the three-argument form of the :func:`pow` function now
484 the base when the exponent is ``-1``, and a suitable power of that
490 >>> pow(38, -1, 137)
500 >>> x = 369 * pow(4258, -1, 147) % 147
501 >>> y = (4258 * x - 369) // -147
507 * Dict comprehensions have been synced-up with dict literals so that the
537 direct control over the state-updating behavior of a specific object. If
546 reading metadata from third-party packages. For example, it can extract an
558 [PackagePath('requests-2.22.0.dist-info/INSTALLER'),
559 PackagePath('requests-2.22.0.dist-info/LICENSE'),
560 PackagePath('requests-2.22.0.dist-info/METADATA'),
561 PackagePath('requests-2.22.0.dist-info/RECORD'),
562 PackagePath('requests-2.22.0.dist-info/WHEEL')]
571 ---
592 :keyword:`async` and :keyword:`await` as non-reserved words.
598 -------
634 Running ``python -m asyncio`` launches a natively async REPL. This allows rapid
635 experimentation with code that has a top-level :keyword:`await`. There is no
639 .. code-block:: none
641 $ python -m asyncio
688 --------
690 The :func:`compile` built-in has been improved to accept the
692 :func:`compile` will allow top-level ``await``, ``async for`` and ``async with``
699 -----------
711 --------
726 ---
735 -------
743 ------
754 --------
764 ---------
821 --
829 -------
836 ----
848 ----------------
854 by double-clicking the button or into the clipboard or a separate window
855 by right-clicking the button. (Contributed by Tal Einat in :issue:`1529353`.)
859 They also re-appear in the box for the next customized run. One can also
870 objects. This allows IDLE to work with emoji and other non-BMP characters.
890 -------
908 --
910 In development mode (:option:`-X` ``env``) and in :ref:`debug build <debug-build>`, the
917 ---------
930 ---------
932 Add option ``--json-lines`` to parse every input line as a separate JSON object.
937 -------
944 This solves a long-standing problem. Once a logger or *basicConfig()* had
950 (Suggested by Raymond Hettinger, implemented by Dong-hee Na, and
955 ----
961 Formerly, it only supported the 2-D case.
992 >>> isqrt(s - 1) # correct
994 >>> floor(sqrt(s - 1)) # incorrect
1000 int-like. (Contributed by Pablo Galindo in :issue:`33083`.)
1004 ----
1012 ---------------
1022 --
1052 -------
1064 for regular user accounts.
1068 non-existent directory.
1077 -------
1095 ------
1097 :mod:`pickle` extensions subclassing the C-optimized :class:`~pickle.Pickler`
1104 --------
1107 NSKeyedArchiver-encoded binary plists.
1112 ------
1138 ----------
1145 -----
1152 ------
1157 :func:`shutil.make_archive` now defaults to the modern pax (POSIX.1-2001)
1168 ------
1181 ---
1185 post-handshake authentication.
1190 ----------
1212 >>> temperature_feb = NormalDist.from_samples([4, 12, -3, 2, 7, 14])
1236 ---
1247 -------
1249 The :mod:`tarfile` module now defaults to the modern pax (POSIX.1-2001)
1250 format for new archives, instead of the previous GNU-specific one.
1251 This improves cross-platform portability with a consistent encoding (UTF-8)
1257 ---------
1274 --------
1283 -------
1303 ----
1310 ------
1314 * A dictionary type with per-key types. See :pep:`589` and
1328 def get_status(port: int) -> Literal['connected', 'disconnected']:
1333 The final qualifier instructs a static type checker to restrict
1348 -----------
1351 <https://blog.unicode.org/2019/05/unicode-12-1-en.html>`_ release.
1360 --------
1403 ----
1411 -------
1419 ---
1445 ------
1469 :func:`shutil.copytree` and :func:`shutil.move` use platform-specific
1470 "fast-copy" syscalls on Linux and macOS in order to copy the file
1472 "fast-copy" means that the copying operation occurs within the kernel,
1476 instead of 16 KiB) and a :func:`memoryview`-based variant of
1481 See :ref:`shutil-platform-dependent-efficient-copy-operations` section.
1504 non-negative integer index into a tuple (which is the typical use case in
1508 * Sped-up field lookups in :func:`collections.namedtuple`. They are now more
1518 * Doubled the speed of class variable writes. When a non-dunder attribute
1525 methods up to 20--50%. (Contributed by Serhiy Storchaka in :issue:`23867`,
1543 * Only ``python3.8-config`` script is installed, ``python3.8m-config`` script
1547 produced and installed by third-party packages, like those downloaded from
1549 ``.cpython-37m-x86_64-linux-gnu.so`` became
1550 ``.cpython-38-x86_64-linux-gnu.so`` in Python 3.8.
1567 * Some macros have been converted to static inline functions: parameter types
1617 * Heap-allocated type objects will now increase their reference count
1625 parameter for indicating the number of positional-only arguments.
1700 Unicode-related exceptions if there are encoding problems with the
1714 (Contributed by Dong-hee Na in :issue:`35283`.)
1726 - *func* in :func:`functools.partialmethod`, :func:`weakref.finalize`,
1730 - *function* in :meth:`unittest.TestCase.addCleanup`.
1731 - *fn* in the :meth:`~concurrent.futures.Executor.submit` method of
1734 - *callback* in :meth:`contextlib.ExitStack.callback`,
1737 - *c* and *typeid* in the :meth:`~multiprocessing.managers.Server.create`
1740 - *obj* in :func:`weakref.finalize`.
1742 In future releases of Python, they will be :ref:`positional-only
1743 <positional-only_parameter>`.
1767 on your requirements, to have well-defined behavior.
1770 * The ``pyvenv`` script has been removed in favor of ``python3.8 -m venv``
1783 All other parameters are now :ref:`keyword-only <keyword-only_parameter>`.
1793 exposed to the user.
1813 --------------------------
1855 -------------------------
1857 * The :func:`os.getcwdb` function now uses the UTF-8 encoding on Windows,
1863 for better performance. On Windows Subsystem for Linux and QEMU User
1866 non-zero :attr:`~Popen.returncode`.
1896 now preserve the attribute order specified by the user.
1899 * A :mod:`dbm.dumb` database opened with flags ``'r'`` is now read-only.
1914 3.6--3.7. (Contributed by Serhiy Storchaka in :issue:`23722`.)
1920 :func:`shutil.copytree` and :func:`shutil.move` use platform-specific
1921 "fast-copy" syscalls (see
1922 :ref:`shutil-platform-dependent-efficient-copy-operations` section).
1942 its behavior was platform-dependent: a nonzero value was returned on success;
1951 * Deleting a key from a read-only :mod:`dbm` database (:mod:`dbm.dumb`,
1964 set for regular user accounts.
1983 .. _bpo-36085-whatsnew:
1988 :func:`~os.add_dll_directory` are searched for load-time dependencies.
2003 constructor (*posonlyargcount*) to support positional-only arguments defined
2005 number of positional arguments (including positional-only arguments). The new
2007 future-proof.
2013 --------------------
2037 It will be removed in 3.10 or 4.0. Read :ref:`arg-parsing` for detail.
2040 * Instances of heap-allocated types (such as those created with
2043 :c:func:`PyType_GenericAlloc` to the more low-level functions,
2048 :ref:`Statically allocated types <static-types>` are not affected.
2060 instance - if any.
2068 .. code-block:: c
2070 static foo_struct *
2082 * Ensure that all custom ``tp_dealloc`` functions of heap-allocated types
2087 .. code-block:: c
2089 static void
2106 .. code-block:: c
2114 exported by a third-party extension module is supposed to have all the
2129 .. code-block:: shell
2131 gendef - python38.dll > tmp.def
2132 dlltool --dllname python38.dll --def tmp.def --output-lib libpython38.a
2136 :ref:`using-on-windows` for more information. The resulting library should be
2144 ------------------------
2149 cleaning-up code for :keyword:`break`, :keyword:`continue` and
2172 ---------------
2180 .. code-block:: none
2183 -------------- --- --- --- --- --- ---
2226 `Intel® Core™ i7-4960HQ processor
2227 ….intel.com/content/www/us/en/ark/products/76088/intel-core-i7-4960hq-processor-6m-cache-up-to-3-80…
2228 running the macOS 64-bit builds found at