[Python-Dev] Re: PEP 282 comments

Jeremy Hylton jeremy@zope.com
2002年3月21日 10:14:08 -0500


>>>>> "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?
Jeremy

AltStyle によって変換されたページ (->オリジナル) /