[Python-ideas] clear() method for lists

Michael Foord fuzzyman at gmail.com
Fri Apr 3 21:32:51 CEST 2009


2009/4/3 Paige Thompson <erratic at devel.ws>

> i instinctively want to do add instead of append. some of the other
> functions i would want to use are Contains, maybe IndexOf.
>

Sound like you want to be using a different language!

Lists support all those operations they are just spelled differently...



> is there any kind of plugin for a query language like LINQ for python?
> thatd be dope
>


We have list comprehensions which are LINQ over objects on steroids, however
Python has nothing like LINQ to other data providers built into the
language.

There is a third party extension / framework / tool called DejaVu though,
which I have heard good things about.

Michael


> -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...
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>
>


-- 
http://www.ironpythoninaction.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20090403/95e07f39/attachment.html>


More information about the Python-ideas mailing list