In [EMAIL PROTECTED] John Machin [EMAIL PROTECTED] writes:
It's nothing to do with list comprehensions, which are syntactical
sugar for traditional loops. You could rewrite your list comprehension
in the traditional manner...
and it would still fail for the same reason: mutating the list over
In [EMAIL PROTECTED] kj [EMAIL PROTECTED] writes:
In [EMAIL PROTECTED] John Machin [EMAIL PROTECTED] writes:
It's nothing to do with list comprehensions, which are syntactical
sugar for traditional loops. You could rewrite your list comprehension
in the traditional manner...
and it would still
2008/6/7, kj [EMAIL PROTECTED]:
... The original Perl function takes a reference to an array, removes
from this array all the elements that satisfy a particular criterion,
and returns the list consisting of the removed elements. ...
Just out of curiosity, as I didn't find any mention of
Hi. I'd like to port a Perl function that does something I don't
know how to do in Python. (In fact, it may even be something that
is distinctly un-Pythonic!)
The original Perl function takes a reference to an array, removes
from this array all the elements that satisfy a particular
Hi. I'd like to port a Perl function that does something I don't
know how to do in Python. (In fact, it may even be something that
is distinctly un-Pythonic!)
The original Perl function takes a reference to an array, removes
from this array all the elements that satisfy a particular
This function will take a list of integers and modify it in place such
that it removes even integers. The removed integers are returned as a
new list
snip
Great!
Thanks!
kynn
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it,
On Jun 7, 2:42 pm, Daniel Fetchinson [EMAIL PROTECTED]
wrote:
Hi. I'd like to port a Perl function that does something I don't
know how to do in Python. (In fact, it may even be something that
is distinctly un-Pythonic!)
The original Perl function takes a reference to an array, removes
kj wrote:
Hi. I'd like to port a Perl function that does something I don't
know how to do in Python. (In fact, it may even be something that
is distinctly un-Pythonic!)
The original Perl function takes a reference to an array, removes
from this array all the elements that satisfy a particular
On Jun 7, 1:24 pm, kj [EMAIL PROTECTED] wrote:
The original Perl function takes a reference to an array, removes
from this array all the elements that satisfy a particular criterion,
and returns the list consisting of the removed elements. Hence
this function returns a value *and* has a major
On Jun 8, 6:05 am, [EMAIL PROTECTED] wrote:
On Jun 7, 2:42 pm, Daniel Fetchinson [EMAIL PROTECTED]
wrote:
Hi. I'd like to port a Perl function that does something I don't
know how to do in Python. (In fact, it may even be something that
is distinctly un-Pythonic!)
The original
On Jun 7, 5:56 pm, John Machin [EMAIL PROTECTED] wrote:
On Jun 8, 6:05 am, [EMAIL PROTECTED] wrote:
On Jun 7, 2:42 pm, Daniel Fetchinson [EMAIL PROTECTED]
wrote:
Hi. I'd like to port a Perl function that does something I don't
know how to do in Python. (In fact, it may even be
On Jun 8, 8:17 am, [EMAIL PROTECTED] wrote:
On Jun 7, 5:56 pm, John Machin [EMAIL PROTECTED] wrote:
On Jun 8, 6:05 am, [EMAIL PROTECTED] wrote:
On Jun 7, 2:42 pm, Daniel Fetchinson [EMAIL PROTECTED]
wrote:
Hi. I'd like to port a Perl function that does something I don't
12 matches
Mail list logo