<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Objects/clinic, branch 3.10</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/clinic?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Objects/clinic?h=3.10'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2022-04-08T17:06:19Z</updated>
<entry>
<title>Fix bad grammar and import docstring for split/rsplit (GH-32381) (GH-32416)</title>
<updated>2022-04-08T17:06:19Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-04-08T17:06:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=69edc30d2b47fe9b95975b1b66214e7473a9ccf5'/>
<id>urn:sha1:69edc30d2b47fe9b95975b1b66214e7473a9ccf5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-46852: Rename float.__set_format__() to float.__setformat__() (GH-31558) (GH-31578)</title>
<updated>2022-02-25T14:47:07Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-02-25T14:47:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0848da19ce8ea037ab1cfc569778e94bf8e3b24a'/>
<id>urn:sha1:0848da19ce8ea037ab1cfc569778e94bf8e3b24a</id>
<content type='text'>
Rename the private undocumented float.__set_format__() method to
float.__setformat__() to fix a typo introduced in Python 3.7. The
method is only used by test_float.

The change enables again test_float tests on the float format which
were previously skipped because of the typo.

The typo was introduced in Python 3.7 by bpo-20185
in commit b5c51d3dd95bbfde533655fb86ac0f96f771ba7b.

(cherry picked from commit 7d03c8be5af2f1559dbc35b775b3116dfd63cfb6)</content>
</entry>
<entry>
<title>bpo-42431: Fix outdated bytes comments (GH-23458)</title>
<updated>2020-12-03T10:46:16Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-12-03T10:46:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2ad93821a69e6efac3b0efe1d205d6e5ef030791'/>
<id>urn:sha1:2ad93821a69e6efac3b0efe1d205d6e5ef030791</id>
<content type='text'>
Also move definitions of internal macros F_LJUST etc to private header.
</content>
</entry>
<entry>
<title>bpo-42246: Partial implementation of PEP 626. (GH-23113)</title>
<updated>2020-11-12T09:43:29Z</updated>
<author>
<name>Mark Shannon</name>
<email>mark@hotpy.org</email>
</author>
<published>2020-11-12T09:43:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=877df851c3ecdb55306840e247596e7b7805a60a'/>
<id>urn:sha1:877df851c3ecdb55306840e247596e7b7805a60a</id>
<content type='text'>
* Implement new line number table format, as defined in PEP 626.</content>
</entry>
<entry>
<title>bpo-42161: Use _PyLong_GetZero() and _PyLong_GetOne() (GH-22995)</title>
<updated>2020-10-27T01:24:34Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-10-27T01:24:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c9bc290dd6e3994a4ead2a224178bcba86f0c0e4'/>
<id>urn:sha1:c9bc290dd6e3994a4ead2a224178bcba86f0c0e4</id>
<content type='text'>
Use _PyLong_GetZero() and _PyLong_GetOne()
in Objects/ and Python/ directories.</content>
</entry>
<entry>
<title>Revert "bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)" (GH-22584)</title>
<updated>2020-10-07T23:43:44Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>rhettinger@users.noreply.github.com</email>
</author>
<published>2020-10-07T23:43:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4e0ce820586e93cfcefb16c2a3df8eaefc54cbca'/>
<id>urn:sha1:4e0ce820586e93cfcefb16c2a3df8eaefc54cbca</id>
<content type='text'>
This reverts commit 58a7da9e125422323f79c4ee95ac5549989d8162.</content>
</entry>
<entry>
<title>bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)</title>
<updated>2020-10-01T16:30:08Z</updated>
<author>
<name>Robert Smallshire</name>
<email>robert@smallshire.org.uk</email>
</author>
<published>2020-10-01T16:30:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=58a7da9e125422323f79c4ee95ac5549989d8162'/>
<id>urn:sha1:58a7da9e125422323f79c4ee95ac5549989d8162</id>
<content type='text'>
* bpo-26680: Adds support for int.is_integer() for compatibility with float.is_integer().

The int.is_integer() method always returns True.

* bpo-26680: Adds a test to ensure that False.is_integer() and True.is_integer() are always True.

* bpo-26680: Adds Real.is_integer() with a trivial implementation using conversion to int.

This default implementation is intended to reduce the workload for subclass
implementers. It is not robust in the presence of infinities or NaNs and
may have suboptimal performance for other types.

* bpo-26680: Adds Rational.is_integer which returns True if the denominator is one.

This implementation assumes the Rational is represented in it's
lowest form, as required by the class docstring.

* bpo-26680: Adds Integral.is_integer which always returns True.

* bpo-26680: Adds tests for Fraction.is_integer called as an instance method.

The tests for the Rational abstract base class use an unbound
method to sidestep the inability to directly instantiate Rational.
These tests check that everything works correct as an instance method.

* bpo-26680: Updates documentation for Real.is_integer and built-ins int and float.

The call x.is_integer() is now listed in the table of operations
which apply to all numeric types except complex, with a reference
to the full documentation for Real.is_integer().  Mention of
is_integer() has been removed from the section 'Additional Methods
on Float'.

The documentation for Real.is_integer() describes its purpose, and
mentions that it should be overridden for performance reasons, or
to handle special values like NaN.

* bpo-26680: Adds Decimal.is_integer to the Python and C implementations.

The C implementation of Decimal already implements and uses
mpd_isinteger internally, we just expose the existing function to
Python.

The Python implementation uses internal conversion to integer
using to_integral_value().

In both cases, the corresponding context methods are also
implemented.

Tests and documentation are included.

* bpo-26680: Updates the ACKS file.

* bpo-26680: NEWS entries for int, the numeric ABCs and Decimal.

Co-authored-by: Robert Smallshire &lt;rob@sixty-north.com&gt;</content>
</entry>
<entry>
<title>bpo-41342: Convert int.__round__ to Argument Clinic (GH-21549)</title>
<updated>2020-07-20T12:57:37Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-07-20T12:57:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5a2bac7fe0e7a2b67fd57c7a9176a50feed0d7a0'/>
<id>urn:sha1:5a2bac7fe0e7a2b67fd57c7a9176a50feed0d7a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-41334: Convert constructors of str, bytes and bytearray to Argument Clinic (GH-21535)</title>
<updated>2020-07-20T12:53:55Z</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-07-20T12:53:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=12f433411bba8a0cdc4f09ba34472745ae9da0d1'/>
<id>urn:sha1:12f433411bba8a0cdc4f09ba34472745ae9da0d1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-41343: Convert methods of complex to Argument Clinic (GH-21550)</title>
<updated>2020-07-20T12:53:29Z</updated>
<author>
<name>Dong-hee Na</name>
<email>donghee.na92@gmail.com</email>
</author>
<published>2020-07-20T12:53:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e123012d79121ab543583631bb84c7fc27d06338'/>
<id>urn:sha1:e123012d79121ab543583631bb84c7fc27d06338</id>
<content type='text'>
</content>
</entry>
</feed>
