Skip to content

Commit

Permalink
Lets not test a patience of the reader with examples for this...
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Feb 13, 2023
1 parent 19738a7 commit 0aeb33a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
11 changes: 2 additions & 9 deletions Objects/clinic/longobject.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions Objects/longobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -6021,18 +6021,11 @@ int_bit_count_impl(PyObject *self)
int.as_integer_ratio
Given an integer x, return the tuple (int(x), 1).
>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
[clinic start generated code]*/

static PyObject *
int_as_integer_ratio_impl(PyObject *self)
/*[clinic end generated code: output=e60803ae1cc8621a input=61de2d707e10af00]*/
/*[clinic end generated code: output=e60803ae1cc8621a input=258f5b08307e7dcd]*/
{
PyObject *ratio_tuple;
PyObject *numerator = long_long(self);
Expand Down

0 comments on commit 0aeb33a

Please sign in to comment.