Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-126220: Adapt _lsprof to Argument Clinic #126233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 4, 2024
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
Address review
  • Loading branch information
sobolevn committed Nov 2, 2024
commit b84dde3911e6965cca84013d49b6814839f0fe65
12 changes: 6 additions & 6 deletions 12 Modules/_lsprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ profiler_dealloc(ProfilerObject *op)
}

/*[clinic input]
_lsprof.Profiler.__init__
_lsprof.Profiler.__init__ as profile_init

timer: object(c_default='NULL') = None
timeunit: double = 0.0
Expand All @@ -949,9 +949,9 @@ is, in seconds).
[clinic start generated code]*/

static int
_lsprof_Profiler___init___impl(ProfilerObject *self, PyObject *timer,
double timeunit, int subcalls, int builtins)
/*[clinic end generated code: output=ab5498359fd34283 input=40225117dd22d4d7]*/
profile_init_impl(ProfilerObject *self, PyObject *timer, double timeunit,
int subcalls, int builtins)
/*[clinic end generated code: output=123b1ff3fc783e14 input=25202b9566e5441c]*/
{
if (setSubcalls(self, subcalls) < 0 || setBuiltins(self, builtins) < 0)
sobolevn marked this conversation as resolved.
Show resolved Hide resolved
return -1;
Expand Down Expand Up @@ -985,10 +985,10 @@ static PyMethodDef profiler_methods[] = {
};

static PyType_Slot _lsprof_profiler_type_spec_slots[] = {
{Py_tp_doc, (void *)_lsprof_Profiler___init____doc__},
{Py_tp_doc, (void *)profile_init__doc__},
{Py_tp_methods, profiler_methods},
{Py_tp_dealloc, profiler_dealloc},
{Py_tp_init, _lsprof_Profiler___init__},
{Py_tp_init, profile_init},
{Py_tp_traverse, profiler_traverse},
{0, 0}
};
Expand Down
18 changes: 9 additions & 9 deletions 18 Modules/clinic/_lsprof.c.h

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

Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.