Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Keep original parameter names
  • Loading branch information
tomasr8 committed Feb 8, 2024
commit 0bec7b4497dddde01ecb58ec8a545f15d2ab1ad8
14 changes: 7 additions & 7 deletions Objects/clinic/setobject.c.h

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

24 changes: 12 additions & 12 deletions Objects/setobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -960,15 +960,15 @@ set_update_internal(PySetObject *so, PyObject *other)
set.update

so: setobject
*args: object
*others as args: object
/

Update the set, adding elements from all others.
[clinic start generated code]*/

static PyObject *
set_update_impl(PySetObject *so, PyObject *args)
/*[clinic end generated code: output=34f6371704974c8a input=a4dc6ead0d0dd452]*/
/*[clinic end generated code: output=34f6371704974c8a input=168d9ce3461b7d8d]*/
{
Py_ssize_t i;

Expand Down Expand Up @@ -1180,15 +1180,15 @@ set_clear_impl(PySetObject *so)
set.union

so: setobject
*args: object
*others as args: object
/

Return a new set with elements from the set and all others.
[clinic start generated code]*/

static PyObject *
set_union_impl(PySetObject *so, PyObject *args)
/*[clinic end generated code: output=2c83d05a446a1477 input=24ed124df9b6221c]*/
/*[clinic end generated code: output=2c83d05a446a1477 input=8a088a2719769c81]*/
{
PySetObject *result;
PyObject *other;
Expand Down Expand Up @@ -1328,15 +1328,15 @@ set_intersection(PySetObject *so, PyObject *other)
set.intersection as set_intersection_multi

so: setobject
*args: object
*others as args: object
/

Return a new set with elements common to the set and all others.
[clinic start generated code]*/

static PyObject *
set_intersection_multi_impl(PySetObject *so, PyObject *args)
/*[clinic end generated code: output=2406ef3387adbe2f input=7f9106301a661635]*/
/*[clinic end generated code: output=2406ef3387adbe2f input=c0c49c1ebe63df11]*/
{
Py_ssize_t i;

Expand Down Expand Up @@ -1373,15 +1373,15 @@ set_intersection_update(PySetObject *so, PyObject *other)
set.intersection_update as set_intersection_update_multi

so: setobject
*args: object
*others as args: object
/

Update the set, keeping only elements found in it and all others.
[clinic start generated code]*/

static PyObject *
set_intersection_update_multi_impl(PySetObject *so, PyObject *args)
/*[clinic end generated code: output=251c1f729063609d input=a0ea42761174e112]*/
/*[clinic end generated code: output=251c1f729063609d input=e502454eef02d349]*/
{
PyObject *tmp;

Expand Down Expand Up @@ -1547,15 +1547,15 @@ set_difference_update_internal(PySetObject *so, PyObject *other)
set.difference_update

so: setobject
*args: object
*others as args: object
/

Update the set, removing elements found in others.
[clinic start generated code]*/

static PyObject *
set_difference_update_impl(PySetObject *so, PyObject *args)
/*[clinic end generated code: output=28685b2fc63e41c4 input=baadad04cef724f4]*/
/*[clinic end generated code: output=28685b2fc63e41c4 input=7b7380a788c4bb7c]*/
{
Py_ssize_t i;

Expand Down Expand Up @@ -1661,15 +1661,15 @@ set_difference(PySetObject *so, PyObject *other)
set.difference as set_difference_multi

so: setobject
*args: object
*others as args: object
/

Return a new set with elements in the set that are not in the others.
[clinic start generated code]*/

static PyObject *
set_difference_multi_impl(PySetObject *so, PyObject *args)
/*[clinic end generated code: output=3130c3bb3cac873d input=ec08ed06cc3db726]*/
/*[clinic end generated code: output=3130c3bb3cac873d input=03248e240ee359a2]*/
{
Py_ssize_t i;
PyObject *result, *other;
Expand Down