On 2017-08-28 12:45, Nicolas M. Thiery wrote:
> - Do you foresee other sources of problems? Recommend other tests to run?
I've just randomly looked at some of the pages and found
filter (is_prime, [1..55])
When I am correct, this will be an iterator in Python 3 (and is a list now).
There are voices (e.g. [1]) who say that using filter is not as
beautiful (and explicit) as, for example
[p for p in [1..55] if is_prime(p)]
BTW, there should not be a whitespace in a function call after a
function name, so the above should be
filter(is_prime, [1..55])
See [2]. Also in [2], no whitespaces before a ";".
Best
Daniel
[1] http://www.artima.com/weblogs/viewpost.jsp?thread=98196
[2] https://www.python.org/dev/peps/pep-0008/#id27
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.