Refactoring; arbitrary expression in lists

Frans Englich frans.englich at telia.com
Wed Jan 12 14:18:36 EST 2005


On Wednesday 12 January 2005 18:56, wittempj at hotmail.com wrote:
> I can not break the original code in 2.4, if I try this:

[...]

>
> So although the dictionary solution is much nicer nothing seems wrong
> with your code as it is - or am I missing something?

Nope, the current code works. I'm just looking at Python's cool ways of 
solving problems. (the matter about 11 returns was a coding-style report from 
PyChecker).


Cheers,

		Frans




More information about the Python-list mailing list