nmea

2012-03-10 Thread Johannes Wagner
can any1 help me on how to get python to read nmea data? -- http://mail.python.org/mailman/listinfo/python-list

Re: merge list of tuples with list

2010-10-20 Thread Daniel Wagner
> [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

Re: merge list of tuples with list

2010-10-20 Thread Daniel Wagner
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

Re: merge list of tuples with list

2010-10-19 Thread Daniel Wagner
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: >

Re: merge list of tuples with list

2010-10-19 Thread Daniel Wagner
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

Re: merge list of tuples with list

2010-10-19 Thread Daniel Wagner
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

merge list of tuples with list

2010-10-19 Thread Daniel Wagner
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.

Re: Python Success stories

2008-04-22 Thread Jérémy Wagner
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

How to know if a module is thread-safe

2008-04-17 Thread Jérémy Wagner
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

Writing Memory to File

2008-03-08 Thread Stefan Wagner
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

Web archtecture using two layers in Phyton

2007-05-27 Thread wagner
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

RE: Web Archtecture using tow layers in Phyton

2007-05-24 Thread Wagner Garcia Campagner
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

Web Archtecture using tow layers in Phyton

2007-05-24 Thread Wagner Garcia Campagner
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

Re: Dynamic RadioButton creation with Python + Qt

2006-08-21 Thread Wagner Garcia Campagner
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

Dynamic RadioButton creation with Python + Qt

2006-08-21 Thread 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

wxpython and EVT_KILL_FOCUS

2005-11-15 Thread Stefanie Wagner
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__(...