summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-10-14 07:54:59 (GMT)
committerGitHub <noreply@github.com>2024-10-14 07:54:59 (GMT)
commitb52c7306ea4470f9d7548655c2a1b89a07ff5504 (patch)
tree9a2bf501c6107a4a25e5fceaa8102cbd013bc96a /Python/bytecodes.c
parent66b3922b97388c328c9bd8df050eef11c0261fae (diff)
downloadcpython-b52c7306ea4470f9d7548655c2a1b89a07ff5504.zip
cpython-b52c7306ea4470f9d7548655c2a1b89a07ff5504.tar.gz
cpython-b52c7306ea4470f9d7548655c2a1b89a07ff5504.tar.bz2
gh-121797: Add class method Fraction.from_number() (GH-121800)
It is an alternative constructor which only accepts a single numeric argument. Unlike to Fraction.from_float() and Fraction.from_decimal() it accepts any real numbers supported by the standard constructor (int, float, Decimal, Rational numbers, objects with as_integer_ratio()). Unlike to the standard constructor, it does not accept strings.
Diffstat (limited to 'Python/bytecodes.c')
0 files changed, 0 insertions, 0 deletions