>>>>> "TM" == Trent Mick <trentm@ActiveState.com> writes: TM> [Jeremy Hylton wrote] >> Why do you need **kwargs at all? Can't the interface specify the >> complete set of optional arguments explicitly? TM> If, as I said, we want to keep the '*args' argument, how do we TM> explicitly specify an 'exc_info' argument? TM> def info(self, msg, *args, exc_info=None): TM> ^------- SyntaxError >>> def info(self, msg, exc_info=None, *args): ... return msg, exc_info, args ... >>> info(1, 2, 3, 4, 5) (2, 3, (4, 5)) Jeremy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4