]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merge branch 'main' into imaplib-idle
authorGuido van Rossum <guido@python.org>
Sun, 1 Dec 2024 19:44:20 +0000 (11:44 -0800)
committerGitHub <noreply@github.com>
Sun, 1 Dec 2024 19:44:20 +0000 (11:44 -0800)
1  2 
Doc/whatsnew/3.14.rst
Lib/test/test_imaplib.py
Misc/ACKS

index 57379b6ef5fd3ad01dae43fe1691df7f724f0054,f9322da3d4fbb018d701bbbd75255a36fd4c0e4a..6f92ecef4f35034f70133375317eb803804c95cd
@@@ -146,15 -349,60 +349,65 @@@ di
  fractions
  ---------
  
- Added support for converting any objects that have the
- :meth:`!as_integer_ratio` method to a :class:`~fractions.Fraction`.
- (Contributed by Serhiy Storchaka in :gh:`82017`.)
+ * Add support for converting any objects that have the
+   :meth:`!as_integer_ratio` method to a :class:`~fractions.Fraction`.
+   (Contributed by Serhiy Storchaka in :gh:`82017`.)
+ * Add alternative :class:`~fractions.Fraction` constructor
+   :meth:`Fraction.from_number() <fractions.Fraction.from_number>`.
+   (Contributed by Serhiy Storchaka in :gh:`121797`.)
+ functools
+ ---------
+ * Add support to :func:`functools.partial` and
+   :func:`functools.partialmethod` for :data:`functools.Placeholder` sentinels
+   to reserve a place for positional arguments.
+   (Contributed by Dominykas Grigonis in :gh:`119127`.)
+ * Allow the *initial* parameter of :func:`functools.reduce` to be passed
+   as a keyword argument.
+   (Contributed by Sayandip Dutta in :gh:`125916`.)
+ getopt
+ ------
+ * Add support for options with optional arguments.
+   (Contributed by Serhiy Storchaka in :gh:`126374`.)
+ * Add support for returning intermixed options and non-option arguments in order.
+   (Contributed by Serhiy Storchaka in :gh:`126390`.)
+ http
+ ----
+ * Directory lists and error pages generated by the :mod:`http.server`
+   module allow the browser to apply its default dark mode.
+   (Contributed by Yorik Hansen in :gh:`123430`.)
+ inspect
+ -------
+ * :func:`inspect.signature` takes a new argument *annotation_format* to control
+   the :class:`annotationlib.Format` used for representing annotations.
+   (Contributed by Jelle Zijlstra in :gh:`101552`.)
+ * :meth:`inspect.Signature.format` takes a new argument *unquote_annotations*.
+   If true, string :term:`annotations <annotation>` are displayed without surrounding quotes.
+   (Contributed by Jelle Zijlstra in :gh:`101552`.)
+ * Add function :func:`inspect.ispackage` to determine whether an object is a
+   :term:`package` or not.
+   (Contributed by Zhikang Yan in :gh:`125634`.)
  
 +imaplib
 +-------
 +
 +* Add :meth:`~imaplib.IMAP4.idle`, implementing the ``IDLE`` command
 +  as defined in :rfc:`2177`.  (Contributed by Forest in :gh:`55454`.)
  
  json
  ----
Simple merge
diff --cc Misc/ACKS
Simple merge