Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions peps/pep-0791.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,21 @@ As aliases in :external+py3.14:mod:`math` will be kept for an indefinite time
(their use would be discouraged), there are no anticipated code breaks.


How to Teach This
=================

The new module will be a place to functions, that 1) accept
Comment thread
skirpichev marked this conversation as resolved.
Outdated
Comment thread
skirpichev marked this conversation as resolved.
Outdated
:external+py3.14:class:`int`-like arguments and return also integers, 2) are
Comment thread
skirpichev marked this conversation as resolved.
Outdated
also in the field of arbitrary-precision integer arithmetic, i.e. have no
Comment thread
skirpichev marked this conversation as resolved.
dependence on the platform floating-point format or behaviour and/or on the
Comment thread
skirpichev marked this conversation as resolved.
Outdated
platorm math library (``libm``).
Comment thread
skirpichev marked this conversation as resolved.
Outdated

For users it would be natural first to look on the
:external+py3.14:class:`int`'s methods, which cover most basic use-cases (e.g.
:external+py3.14:meth:`int.bit_length` method), than to some dedicated place in
the stdlib.
Comment thread
skirpichev marked this conversation as resolved.


Reference Implementation
========================

Expand Down