can any1 help me on how to get python to read nmea data?
--
http://mail.python.org/mailman/listinfo/python-list
> [b.pop(0)]
>
> This has to lookup the global b, resize it, create a new list,
> concatenate it with the list x (which creates a new list, not an in-place
> concatenation) and return that. The amount of work is non-trivial, and I
> don't think that 3us is unreasonable.
>
I forgot to take acc
Many thanks for all these suggestions! here is a short proof that you
guys are absolutely right and my solution is pretty inefficient.
One of your ways:
$ python /[long_path]/timeit.py 'a=[(1,2,3),(4,5,6)];b=(7,8);[x+(y,)
for x,y in zip(a,b)]'
100 loops, best of 3: 1.44 usec per loop
And my
SOLVED! I just found it out
> I'm searching for a nice way to merge a list of
> tuples with another tuple or list. Short example:
> a = [(1,2,3), (4,5,6)]
> b = (7,8)
>
> After the merging I would like to have an output like:
> a = [(1,2,3,7), (4,5,6)]
The following code solves the problem:
>
I used the following code to add a single fixed value to both tuples.
But this is still not what I want...
>>>a = [(1,2,3), (4,5,6)]
>>>b = 1
>>>a = map(tuple, map(lambda x: x + [1], map(list, a)))
>>>a
[(1, 2, 3, 1), (4, 5, 6, 1)]
What I need is:
>>>a = [(1,2,3), (4,5,6)]
>>>b = (7,8)
>>> a = COD
On Oct 19, 8:35 pm, James Mills wrote:
> On Wed, Oct 20, 2010 at 10:16 AM, Daniel Wagner
>
> wrote:
> > My short question: I'm searching for a nice way to merge a list of
> > tuples with another tuple or list. Short example:
> > a = [(1,2,3), (4,5,6)]
> &g
ut like:
a = [(1,2,3,7), (4,5,6)]
It was possible for me to create this output using a "for i in a"
technique but I think this isn't a very nice way and there should
exist a solution using the map(), zip()-functions
I appreciate any hints how to solve this problem efficiently.
Sure. Python is more readable than Perl, though I have found Python
to have a weird behavior regarding this little issue :
How can you explain that Python doesn't support the ++ opeator,
whereas at the same time it does support the += operator ???
No python developer I know has been able to answ
Hi, I recently tried to use the subprocess module
within a threading.Thread class, but it appears the module
is not thread-safe.
What is the policy of python regarding thread-safety of a module ?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm trying to do some memory analyzing stuff, i wrote me a small .c so
far to dump the memory to a file for later analysis,
the analyzing part itself is python code.
I wonder if any of you has an idea how to dump the whole memory in
Linux/Windows from python ?
Using the .c for this somehow doe
goal is to make diferent user interfaces (layer 1) that can
integrate with the second layer... for example, one web interface and one
local interface using python+qt (example)... i don't know if this is
possible and how can this be implemented... any help is aprreciated...
Thanks in advan
Thanks Amit,
I'll search those python web framework and try to find what is the best for
my needs.
Thanks again for your help,
Wagner.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Amit Khemka
Sent: quinta-feira, 24 de maio de 2007 09:35
To: python
al is to make diferent user interfaces (layer 1) that can integrate
with the second layer... for example, one web
interface and one local interface using python+qt (example)... i don't know if
this is possible and how can this be implemented...
any help is aprreciated...
Thanks in advan
Thanks Fredrik,
Your suggestion solved my problems!
Thanks,
Wagner.
>From: Fredrik Lundh <[EMAIL PROTECTED]>
>To: python-list@python.org
>Subject: Re: Dynamic RadioButton creation with Python + Qt
>Date: Mon, 21 Aug 2006 16:20:09 +0200
>
>Wagner Garcia Campagner
that Python is creating all RadioButton as "msg" and not the
value of "msg" so i can't access the RadioButton after the creation.
Is there a way i can create the RadioButton with diferent names??
Thanks in advance,
Wagner.
--
http://mail.python.org/mailman/listinfo/python-list
Hello, I am fighting with EVT_KILL_FOCUS for quite a time now and I
don't succeed at all.
Situation:
If a user leaves a textfield the entered information should be checked
and an additional window should be opened to make a search possible to
complete the entry.
Basic solution:
def __init__(...
16 matches
Mail list logo