mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-117764: Fix and add signatures for many builtins (GH-117769)
This commit is contained in:
parent
94e9c35cd0
commit
3a8c1ca7e7
11 changed files with 45 additions and 30 deletions
|
@ -34,9 +34,9 @@
|
|||
extern char* _PyTokenizer_FindEncodingFilename(int, PyObject *);
|
||||
|
||||
/*[clinic input]
|
||||
class TracebackType "PyTracebackObject *" "&PyTraceback_Type"
|
||||
class traceback "PyTracebackObject *" "&PyTraceback_Type"
|
||||
[clinic start generated code]*/
|
||||
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=928fa06c10151120]*/
|
||||
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=cf96294b2bebc811]*/
|
||||
|
||||
#include "clinic/traceback.c.h"
|
||||
|
||||
|
@ -63,7 +63,7 @@ tb_create_raw(PyTracebackObject *next, PyFrameObject *frame, int lasti,
|
|||
|
||||
/*[clinic input]
|
||||
@classmethod
|
||||
TracebackType.__new__ as tb_new
|
||||
traceback.__new__ as tb_new
|
||||
|
||||
tb_next: object
|
||||
tb_frame: object(type='PyFrameObject *', subclass_of='&PyFrame_Type')
|
||||
|
@ -76,7 +76,7 @@ Create a new traceback object.
|
|||
static PyObject *
|
||||
tb_new_impl(PyTypeObject *type, PyObject *tb_next, PyFrameObject *tb_frame,
|
||||
int tb_lasti, int tb_lineno)
|
||||
/*[clinic end generated code: output=fa077debd72d861a input=01cbe8ec8783fca7]*/
|
||||
/*[clinic end generated code: output=fa077debd72d861a input=b88143145454cb59]*/
|
||||
{
|
||||
if (tb_next == Py_None) {
|
||||
tb_next = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue