Skip to content
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
Fix clinic error about missing summary line
  • Loading branch information
mdickinson committed May 27, 2020
commit a0fed82ba1d7dc8cb4c96d78c7930f1f573bf340
6 changes: 4 additions & 2 deletions Objects/clinic/longobject.c.h

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

3 changes: 2 additions & 1 deletion Objects/longobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -5319,6 +5319,7 @@ popcount_digit(digit d)
int.bit_count

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
Expand All @@ -5329,7 +5330,7 @@ Also known as the population count.

static PyObject *
int_bit_count_impl(PyObject *self)
/*[clinic end generated code: output=2e571970daf1e5c3 input=a428900d3e39a606]*/
/*[clinic end generated code: output=2e571970daf1e5c3 input=7e0adef8e8ccdf2e]*/
{
Comment thread
mdickinson marked this conversation as resolved.
assert(self != NULL);
assert(PyLong_Check(self));
Expand Down