Elementary string-parsing
John Machin
sjmachin at lexicon.net
Mon Feb 4 06:05:18 EST 2008
On Feb 4, 8:43 pm, Odysseus <odysseus1479... at yahoo-dot.ca> wrote:
> In article <60nunqF1ro06... at mid.uni-berlin.de>,
> Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
> > found = dict()
> BTW what's the difference between the above and "found = {}"?
{} takes 4 fewer keystrokes, doesn't have the overhead of a function
call, and works with Pythons at least as far back as 1.5.2 -- apart
from that, it's got absolutely nothing going for it ;-)
More information about the Python-list
mailing list