From: Chuck E. <Chu...@ya...> - 2001-12-07 20:11:37
|
On Friday 07 December 2001 12:49 pm, Tavis Rudd wrote: > Why not just go for only the assignment style and get rid of the old > dictionary parsing method completely? Transitioning an app from one > to the other is a matter of a few minutes. Keeping both around just > makes the code more complex and brittle. I don't think it's brittle or complex. The essence is: if s.strip()[0]=='{': dict = eval(s) else: dict = {} exec s in dict Even adding the comment detection would be easy. In general, I'm pro-backwards-compatible, particularly when it is this easy and convenient. You'll feel more like me when you have various paid-projects lying around and users with paid-projects who have been with you for more than a year. :-) I won't guarantee we'll always be backwards compatible, but we'll at least make a moderate effort. I place just as much importance on existing users as I do on cool new features. -Chuck |