[TriZPUG] filling lists

James Whisnant jwhisnant at gmail.com
Tue Apr 7 16:53:18 CEST 2009


If you are working with images or pixel data, you might want to look at the
Python Imaging Library.
http://www.pythonware.com/products/pil/


On Mon, Apr 6, 2009 at 10:59 PM, bob gailer <bgailer at gmail.com> wrote:

>  Chris Calloway wrote:
>
> On 4/6/2009 4:18 PM, Joseph Mack NA3T wrote:
>
> well dang. I didn't see that in the methods and functions for lists.
>
>
> It's an operator. The subscription operator. Which applies to sequences.
>
>
> On the left hand side of an assignment, it is only applicable to mutable
> sequences.
>
>
> Not only.
>
> "If the target is a subscription: The primary expression in the reference
> is evaluated. It should yield either a mutable sequence object (such as a
> list) or a mapping object (such as a dictionary)."
>
> And even though it does NOT say so, any object with a __setitem__ magic
> method. "Called to implement assignment to self[key]. "
>
> [snip]
>
> --
> Bob Gailer
> Chapel Hill NC
> 919-636-4239
>
> _______________________________________________
> TriZPUG mailing list
> TriZPUG at python.org
> http://mail.python.org/mailman/listinfo/trizpug
> http://trizpug.org is the Triangle Zope and Python Users Group
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/trizpug/attachments/20090407/84cb63df/attachment.htm>


More information about the TriZPUG mailing list