Segmentation fault with Py_Finalize()

2008-08-10 Thread Gal Aviel
Hello All, I Need some tips/help/ideas debugging segmentation fault ... I'm trying to debug Python running embedded inside a Verilog Simulator (as a SystemVerilog DPI application). (on SUSE LINUX Enterprise Server 9 (i586)) The Embedded python loads two SWIG wrapped modules (written in C and C

Re: always getting 'None' return value from PyObject_CallObject

2008-03-24 Thread Gal Aviel
problem fixed ... my bad. I was using a dispatch mechanism where the C code always called the same python dispatch function, with the actual function name to invoke as arguments. Anyway, I forgot the 'return' statement. The code is below. Many thanks and apologies for the help provided :) def disp

always getting 'None' return value from PyObject_CallObject

2008-03-23 Thread Gal Aviel
rom the function? Where is that stored anyway with embedded python? Thanks- Gal Aviel. -- http://mail.python.org/mailman/listinfo/python-list

Removing default logging handler (causes duplicate logging)

2008-03-04 Thread Gal Aviel
I am not using Basic config, just 'import logging' and then regular logging.* calls. Thanks in advance, Gal Aviel. -- http://mail.python.org/mailman/listinfo/python-list

Re: threading/Queue: join() and task_done() not working? (deadlock)

2008-02-28 Thread Gal Aviel
Raymond Hettinger rcn.com> writes: > Does the problem persist with a queue size of 2? > > Raymond > Unfortunately yes. -- http://mail.python.org/mailman/listinfo/python-list

Re: threading/Queue: join() and task_done() not working? (deadlock)

2008-02-28 Thread Gal Aviel
Dennis Lee Bieber ix.netcom.com> writes: > I didn't even know Queue objects /had/ a join() method... The only > .join() I'm familiar with is the one that waits for a thread to > complete... Well it's probably new in Python 2.5 although I'm not sure. -- http://mail.python.org/mailman/

Re: threading/Queue: join() and task_done() not working? (deadlock)

2008-02-28 Thread Gal Aviel
7stud yahoo.com> writes: > What is task_done()? The python docs don't list any such function. I'm using Python 2.5 and it's in the docs ... -- http://mail.python.org/mailman/listinfo/python-list

threading/Queue: join() and task_done() not working? (deadlock)

2008-02-27 Thread Gal Aviel
PY callback_cb() - 3 As you can see, the queue object is the same on both threads. Any help would be greatly appreciated, since I've spent days and days on this already !! Python 2.5.1, SUSE LINUX Enterprise Server 9. Thanks in advance, Gal Aviel. -- http://mail.python.org/mailman/listinfo/python-list