[Python-ideas] clear() method for lists
Paige Thompson
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
List<object> hodgepodge
.... could be strings ints guids etc.
anyway i think c# lists and dictionaries (also generic) are god.
Dictionary<guid, string>
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.
-Adele
(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.
George
_______________________________________________ Python-ideas mailing list
Python-ideas at python.org ht...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20090403/3ed39be6/attachment.html>
More information about the Python-ideas
mailing list