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 an
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
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 o
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 s
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
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!)
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
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, 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 arr
>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
Great!
Thanks!
kynn
--
NOTE: In my address everything before the first period is backwards;
and the last period, and everything after it, sh
> 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 c
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 criterion,
12 matches
Mail list logo