From: Guido van Rossum Date: Sun, 1 Dec 2024 19:44:20 +0000 (-0800) Subject: Merge branch 'main' into imaplib-idle X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75fbe8ec774ce60ea1965b20c916d3e846507e2f;p=thirdparty%2FPython%2Fcpython.git Merge branch 'main' into imaplib-idle --- 75fbe8ec774ce60ea1965b20c916d3e846507e2f diff --cc Doc/whatsnew/3.14.rst index 57379b6ef5fd,f9322da3d4fb..6f92ecef4f35 --- a/Doc/whatsnew/3.14.rst +++ b/Doc/whatsnew/3.14.rst @@@ -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() `. + (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 ` 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 ----