On Apr 14, 11:06 am, "Gabriel Genellina"
wrote:
> En Wed, 14 Apr 2010 06:10:59 -0300, Luis Quesada
> escribió:
>
>
>
> > On Apr 14, 6:31 am, "Gabriel Genellina"
> > wrote:
> >> En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada
> >
On Apr 14, 6:31 am, "Gabriel Genellina"
wrote:
> En Tue, 13 Apr 2010 18:02:07 -0300, Luis Quesada
> escribi :
>
> > I am getting an "expected string without null bytes" error when using
> > cxfreeze for creating a standalone application (in Linux
Lawrence D'Oliveiro wrote:
In message , Luis Quesada wrote:
I am getting an "expected string without null bytes" error when using
cxfreeze for creating a standalone application (in Linux-Ubuntu).
Why bother? Every decent Linux system will have Python available. Why not
just d
Dear all,
I am getting an "expected string without null bytes" error when using
cxfreeze for creating a standalone application (in Linux-Ubuntu). None
of my files has null bytes. I also tried pyinstaller but I got the error
attached at the end.
My program runs fine when executed from eclipse.
Luis Quesada wrote:
Dear all,
Given a gps coordinate, I would like to find out the country the
coordinate belongs to. I wonder whether there is a python library that
offers this capability...
(In case somebody here is looking for the same thing)
Somebody in sci.geo.satellite-nav suggested
Dear all,
Given a gps coordinate, I would like to find out the country the
coordinate belongs to. I wonder whether there is a python library that
offers this capability...
Thanks in advance for any pointer.
Cheers,
Luis
PS: I am already aware of basemap but it seems we cannot answer this
type
Paul Rubin wrote:
Luis Quesada writes:
[ id*v for id,v in enumerate(L) ]
Cool! Thanks!
If you really want to write that in pointfree style (untested):
import itertools, operator
...
itertools.starmap(operator.mul, enumerate(L))
For your other question, you could probably do
Duncan Booth wrote:
Luis Quesada wrote:
Is there a way
of writing the following without using zip:
map(lambda (id,v):id*v,zip(range(len(L)),L))
[ id*v for id,v in enumerate(L) ]
Cool! Thanks!
Cheers,
Luis
--
http://mail.python.org/mailman/listinfo/python-list
Dear all,
I am new to Python, so I apologize in advance if you find my questions
naive (or if they have been already answered in this forum).
1. What is the most pythonic way of mapping a list where the value each
element is mapped to depends on the index of the element. Is there a way
of wr