Re: Python Documentation (should be better?)

2005-05-17 Thread Davo
Overall organization is definitely an issue, at least for newer users. As an occasional python user I remain constantly in a mode of having to look up basic terminology for examples and exact spelling of terms in order to knock out a quick script. I feel very much like Mr. Bottaro that the docs, w

Re: List Comprehension Question: One to Many Mapping?

2007-08-23 Thread Davo
On Aug 23, 9:24 pm, beginner <[EMAIL PROTECTED]> wrote: > Hi All, > > How do I map a list to two lists with list comprehension? > > For example, if I have x=[ [1,2], [3,4] ] > > What I want is a new list of list that has four sub-lists: > > [[1,2], [f(1), f(2)], [3,4], [f(3), f(4)]] > > [1,2] is ma

Read PGM's with more than 256 range in PIL1.1.7

2010-02-08 Thread Davo
I have a PGM format image file with 4096 range. When I reads it with PIL, I get an image with 8-bit values and alternate columns are zero. Does PIL support reading and writing PGM's with more than 8-bits? Davo -- http://mail.python.org/mailman/listinfo/python-list