[Python-ideas] clear() method for lists
erratic at devel.ws
Fri Apr 3 21:21:58 CEST 2009
if any of you are not C# coders, generics and IEnumerables/IQueryables are
whats god to me. We have lists which is a generic, though the genrics part
is kind of type-safe specific. Example:
List<string> mylist = new List<string>(); // cant remember if thats the
exact syntax but thats essentially *it*
you could also do
.... could be strings ints guids etc.
anyway i think c# lists and dictionaries (also generic) are god.
at any rate, typesafe or not the list and dictionary objects have a lot of
neat stuff inside of them, some of which are LINQ (essentially an inline
query language) specific. maybe some of the devs would like to steal some of
the brilliance out of there-- their claim to fame is patterns and practices.
Having worked with these and not to put python down in anyway at all i think
their lists and dictionaries (generics) are wonderful to work with. I hear
java is similar.
(sent from my gphone!)
On Apr 3, 2009 11:55 AM, "George Sakkis" <george.sakkis at gmail.com> wrote:
On Fri, Apr 3, 2009 at 6:53 AM, Andre Roberge <andre.roberge at gmail.com>
wrote: > Hi everyone, > > O...
It's obviously more explicit, but at the same it's a rather infrequent
operation and the current ways are not particularly ugly. +0, no
strong feelings either way.
_______________________________________________ Python-ideas mailing list
Python-ideas at python.org ht...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas