array of arrays question

2005-08-30 Thread Meo
Hi, Here is what I'm doing in python 2.4.1 : >>> aOfa=[[[]]*3]*4 >>> aOfa [[[], [], []], [[], [], []], [[], [], []], [[], [], []]] >>> aOfa[3][2].append(1) >>> aOfa [[[1], [1], [1]], [[1], [1], [1]], [[1], [1], [1]], [[1], [1], [1]]] Ok, so there is something I didn't understand about python's a

Re: array of arrays question

2005-08-30 Thread Meo
yes, thank you for your help -- http://mail.python.org/mailman/listinfo/python-list

embedded python doesn't like socket.accept() and SegFaults

2008-08-02 Thread Riccardo Di Meo
er I'm afraid i don't have the python-lib with debugging syms. compiled in, therefore it was quite a useless attempt...). Any help about the code would be appreciated (even unrelated to the issue at hand: im quite new to this "embedding thing" and therefore i gladly accept

Re: embedded python doesn't like socket.accept() and SegFaults

2008-08-02 Thread Riccardo Di Meo
Solved (with the help of the guys on #python on freenode). Long story short: i forgot the static in the function definitions and the libc's "accept" got replaced with mine... Riccardo Di Meo wrote: Hi everyone, I'm practicing with embedding python into C code and i