Logging messages with dictionary args in Python 2.4b1 leads to exception

Vinay Sajip vinay_sajip at yahoo.co.uk
Thu Oct 21 23:30:55 CEST 2004


> The only problematic case is a tuple as only argument, everything else 
> should work. So there are three possible solutions for backward compatibility:
> 
> 1) document the change :o)
> 2) check for a dictionary as first argument
> 3) check for a tuple as first argument
> 
> Since the tuple is the only problematic thing you could hand in, I 
> personally feel a preference for making that the "exception" (i.e. I vote 
> for 3).
> 

I would prefer (2), as the change is catering for the specific use
case of a single dictionary argument. This is what is currently in
CVS.

Regards,


Vinay Sajip



More information about the Python-list mailing list