Mapping Tcl's arguments to Python's arguments
adil gourinda <[email protected]> Wed, 3 Jan 2018 21:42:47 +0000
| Newsgroups | gmane.comp.python.tkinter |
|---|---|
| Message-ID | <BN3PR16MB08655860B0B5F7B69C8B4E45B61E0@BN3PR16MB0865.namprd16.prod.outlook.com> |
Please can someone illuminate the differences between Tcl's arguments and Python's arguments? After reading a little about tcl/Tk I found that the arguments are written in the forms: 1) -option (the option's name alone is an argument) 2) -option value (with description of value's type) 3) value (only the value's description exists, no "-option") 4) ?expression? Python opponents: 1) option=Boolean_Value 2) "*,option=value", keyword-only argument (but value is the default argument, not its nature) 3) is positional argument and the value's name is passed to option's name. 4) can you explain the difference between function(option1=value [,option2]) *2)+3) are grouped in positional-keyword argument _______________________________________________ Tkinter-discuss mailing list [email protected] https://mail.python.org/mailman/listinfo/tkinter-discuss