Fabian Jakobs wrote: > Gaetan de Menten schrieb: > >> Hi there, >> >> I've read in the doc that python requirements is 2.4+, though in the >> code, I've seen many occurrences of pre-2.4 code style, for example >> "dict.has_key(key)" instead of "key in dict", do you confirm that the >> requirements are indeed 2.4+ and that I can change old code to use 2.4 >> style? >> >> Thanks, >> >> > I think it would be good style to use 2.4 features where appropriate. > However I would like to hear Thomas' view on this before taking action. > He is back in office on Monday. >
Agreed. 2.4 is prereq because we are using features that came with 2.4 (sets, generators, subprocess module,...), not because we enforce a 2.4-only style. (Personally I will continue to use "dict.has_key(key)" as I sometimes prefer the method style over infix operators. I know it's removed in Python 3, but I'm not worried yet). Thomas ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
