Why does Python mix OO concepts and non OO concepts for operation s on basic types?

Ville Vainio vvainio at tp.spt.fi
Wed Jun 12 09:44:52 EDT 2002

Roman Suzi <rnd at onego.ru> wrote in message news:<mailman.1023826878.17168.python-list at python.org>...

> I only forgot how will I do this:
> map(string.split, s)
> if GvR will deprecate string module...

List comprehension is as pretty IMO.

At least it will be if/when the iteration variable (or whatever) will
no longer be visible after the list comprehension.

Name it ____listcomp_____var, like in class private vars, and del it
after running the comprehension?

-- Ville

More information about the Python-list mailing list