[Jeremy Hylton wrote] > >>>>> "VS" == Vinay Sajip <vinay_sajip@red-dove.com> writes: > > VS> I like this. I prefer the name "exc_info" (rather than "exc") > VS> for the key, as it is clearer that the result of sys.exc_info(), > VS> or equivalent, is being passed. How about the following? The > VS> kwargs is searched for "exc_info", and if found it is copied to > VS> the LogRecord [and removed from kwargs]. The kwargs dict is then > VS> bound to a "user_info" attribute of the LogRecord. > > Why do you need **kwargs at all? Can't the interface specify the > complete set of optional arguments explicitly? If, as I said, we want to keep the '*args' argument, how do we explicitly specify an 'exc_info' argument? def info(self, msg, *args, exc_info=None): ^------- SyntaxError Trent -- Trent Mick TrentM@ActiveState.com
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