[TriZPUG] filling lists
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.
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
> 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]. "
> Bob Gailer
> Chapel Hill NC
> TriZPUG mailing list
> TriZPUG at python.org
> http://trizpug.org is the Triangle Zope and Python Users Group
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the TriZPUG