Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread Chris Angelico
On Sun, Jun 3, 2012 at 8:09 AM, MRAB wrote: > Look at the "Software" page: > > """We use the mpy language to program the MSP430 microcontroller. MPY is > short for Microcontroller PYthon.   mpy is based on the Python computer > language. In fact to keep things simple it is only a small subset of t

Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread MRAB
On 02/06/2012 22:25, Chris Angelico wrote: On Sun, Jun 3, 2012 at 7:18 AM, MRAB wrote: Putting "LaunchPad", "Python" and "MakerFaire" into Google, plus the "It has an m somewhere in it and it's 3 letters", quickly led me to: http://www.mpyprojects.com -- Heh, Google's awesome :) I was ju

Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread Chris Angelico
On Sun, Jun 3, 2012 at 7:18 AM, MRAB wrote: > Putting "LaunchPad", "Python" and "MakerFaire" into Google, plus the > "It has an m somewhere in it and it's 3 letters", quickly led me to: > > http://www.mpyprojects.com > -- Heh, Google's awesome :) I was just thinking "Hm, three letters with an M?

Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread MRAB
On 02/06/2012 21:47, boj wrote: There is a 3rd party programmer for the LaunchPad that lets you program it in Python, but I forgot what they were called. It has an m somewhere in it and it's 3 letters. I saw it at MakerFaire. I got their card, but lost it. If I remember the name, I'll post it her

Re: Smallest/cheapest possible Python platform?

2012-06-02 Thread boj
There is a 3rd party programmer for the LaunchPad that lets you program it in Python, but I forgot what they were called. It has an m somewhere in it and it's 3 letters. I saw it at MakerFaire. I got their card, but lost it. If I remember the name, I'll post it here. -- http://mail.python.org/m

WHAT DO MUSLIMS THINK ABOUT JESUS ?????????

2012-06-02 Thread BV BV
WHAT DO MUSLIMS THINK ABOUT JESUS? I know that my article is not related to this group ,but it might be useful. PLEASE read it What do Muslims think about Jesus? Muslims respect and revere Jesus (SAW) and await his Second Coming. They consider him one of the greatest of God’s messengers to mankind

Re: Python 2.7.3, C++ embed memory leak?

2012-06-02 Thread Qi
On 2012-6-2 18:53, Diez B. Roggisch wrote: Python does some special things that confuse valgrind. Don't bother. http://svn.python.org/projects/python/trunk/Misc/README.valgrind Thanks for the link. It clears a lot of my confusing, such as uninitialized reading... -- WQ -- http://mail.python.

Re: ctypes callback with char array

2012-06-02 Thread Diez B. Roggisch
ohlfsen writes: > Hello. > > Hoping that someone can shed some light on a tiny challenge of mine. > > Through ctypes I'm calling a c DLL which requires me to implement a callback > in Python/ctypes. > > The signature of the callback is something like > > void foo(int NoOfElements, char Elements[

Re: Python 2.7.3, C++ embed memory leak?

2012-06-02 Thread Diez B. Roggisch
Qi writes: > Hi guys, > > Is there any known memory leak problems, when embed Python 2.7.3 > in C++? > I Googled but only found some old posts. > > I tried to only call Py_Initialize() and Py_Finalize(), nothing else > between those functions, Valgrind still reports memory leaks > on Ubuntu? > >

how to typecast a ctypes pointer to another one

2012-06-02 Thread Gelonida N
Hi, I have a result from a call to a ctypes function of type c_void_p. Now I'd like to convert it to a pointer to one of the structures, that I defined. result = library.c_function(params) class MyStruct(ctypes.Structure): _fields_ = [ ('fourbytes', ctypes.c_char * 4) ] I

Re: Tkinter deadlock on graceful exit

2012-06-02 Thread Matteo Landi
On Jun/01, Matteo Landi wrote: > On Thu, May 31, 2012 at 3:02 PM, Matteo Landi wrote: > > On Thu, May 31, 2012 at 3:42 AM, Terry Reedy wrote: > >> On 5/30/2012 6:19 PM, Matteo Landi wrote: > >>> > >>> On May/28, Matteo Landi wrote: > > Hi list, > recently I started to work on an ap

Re: DBF records API

2012-06-02 Thread Tim Chase
On 06/02/12 00:16, Ethan Furman wrote: > Tim Chase wrote: >> On 06/01/12 19:05, Jon Clements wrote: >>> On 01/06/12 23:13, Tim Chase wrote: dbf.scatter_fields *always* trump and refer to the method. >>> I did think about *trumping* one way or the other, but both *ugh*. >> >> For t

Re: DBF records API

2012-06-02 Thread MRAB
On 02/06/2012 06:16, Ethan Furman wrote: Tim Chase wrote: On 06/01/12 19:05, Jon Clements wrote: On 01/06/12 23:13, Tim Chase wrote: dbf.scatter_fields *always* trump and refer to the method. I did think about *trumping* one way or the other, but both *ugh*. For the record, it sou