mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-24037: Add Argument Clinic converter bool(accept={int})
. (#485)
This commit is contained in:
parent
0767ad40bf
commit
202fda55c2
17 changed files with 81 additions and 73 deletions
|
@ -3199,11 +3199,11 @@ _tkinter.create
|
|||
screenName: str(accept={str, NoneType}) = NULL
|
||||
baseName: str = NULL
|
||||
className: str = "Tk"
|
||||
interactive: int(c_default="0") = False
|
||||
wantobjects: int(c_default="0") = False
|
||||
wantTk: int(c_default="1") = True
|
||||
interactive: bool(accept={int}) = False
|
||||
wantobjects: bool(accept={int}) = False
|
||||
wantTk: bool(accept={int}) = True
|
||||
if false, then Tk_Init() doesn't get called
|
||||
sync: int(c_default="0") = False
|
||||
sync: bool(accept={int}) = False
|
||||
if true, then pass -sync to wish
|
||||
use: str(accept={str, NoneType}) = NULL
|
||||
if not None, then pass -use to wish
|
||||
|
@ -3216,7 +3216,7 @@ _tkinter_create_impl(PyObject *module, const char *screenName,
|
|||
const char *baseName, const char *className,
|
||||
int interactive, int wantobjects, int wantTk, int sync,
|
||||
const char *use)
|
||||
/*[clinic end generated code: output=e3315607648e6bb4 input=0d522aad1cb0ca0e]*/
|
||||
/*[clinic end generated code: output=e3315607648e6bb4 input=431907c134c80085]*/
|
||||
{
|
||||
/* XXX baseName is not used anymore;
|
||||
* try getting rid of it. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue