On Fri, Dec 4, 2009 at 2:11 PM, Joel Davis wrote:
> Yes, sort of like that but Hansen's code is actually exactly what I
> was getting at, not sure why he deleted it:
Huh? I deleted it?
--S
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 4, 3:41 pm, Mensanator wrote:
> On Dec 4, 2:22 pm, Joel Davis wrote:
>
> > Is it possible to run a list comprehension over a certain portion of
> > the list? My goals is to be able to run the comprehension on the
> > innermost elements of the list, but leaving the outermost intact.
>
> Som
On Dec 4, 2:22 pm, Joel Davis wrote:
> Is it possible to run a list comprehension over a certain portion of
> the list? My goals is to be able to run the comprehension on the
> innermost elements of the list, but leaving the outermost intact.
Something like this?
>>> a
[0, 1, 2, 3, 4, 5, 6, 7, 8
>
> Is it possible to run a list comprehension over a certain portion of
> the list? My goals is to be able to run the comprehension on the
> innermost elements of the list, but leaving the outermost intact.
>
Without seeing an example of what your list is, and what you want to turn it
into, its s
Is it possible to run a list comprehension over a certain portion of
the list? My goals is to be able to run the comprehension on the
innermost elements of the list, but leaving the outermost intact.
--
http://mail.python.org/mailman/listinfo/python-list