4 ms·
> - Debugging is a little behind other languages (pdb works) So do the numerous extensions/replacements for pdb, or the multiple graphical debuggers (e.g. PyCh
by masklinn 14y ago
> - Debugging is a little behind other languages (pdb works)
So do the numerous extensions/replacements for pdb, or the multiple graphical debuggers (e.g. PyCharm's, PyDev's, PuDB, WinPDB, Kodomo IDE's, Wing's, ...). Python doesn't have a time-traveling debugger à la OCaml, but that's about it as far as I can tell.
> removal of map/filter in place of list comprehensions (they are certainly better but not faster)
What are you talking about exactly? Because I find two possible interpretations of that phrase, and neither comes close to being correct.
- raverbashing 14y agoWell, my mistake, map and filter are not faster than a list comprehension (at least not in 2.7) My test case is: f = [x^2 for x in l if (x % 2) == 0] (and something similar with map and filter) (where you read x^2 please consider x(double asterisk)2) For 500k elements - xrange(500000) - this takes: 0.122527122498 (list comprehension) 0.145442008972 (map/filter)