Re: A tool for find dependencies relationships behind Python projects

2010-02-24 Thread Victor Lin
   {'__file__':setup_script, '__name__':'__main__'} >    File "setup.py", line 9, in >    File "/tmp/easy_install-uPz7qO/Gluttony-0.3/gluttony/__init__.py", > line 1, in >      # >    File "/tmp/easy_install-uPz7qO/Glutton

A tool for find dependencies relationships behind Python projects

2010-02-19 Thread Victor Lin
/gluttony/tg2_dot.png Hope this could be helpful :P Regards. Victor Lin. -- http://mail.python.org/mailman/listinfo/python-list

Memory usage problem of twisted server

2010-01-20 Thread Victor Lin
rect? How can I monitor the memory allocation of Python? Is there any available tools for this? Or is that modifying the Python source code and recompiling the only way to monitor allocation of memory? Thanks. Victor Lin. -- http://mail.python.org/mailman/listinfo/python-list

Any c header parser for generate ctypes module?

2009-03-09 Thread Victor Lin
arser that parse header of c library and generate ctypes python module automatically. My question is, is there any available tools can achieve this? If not, what tool can I use to such a job easily. I need a c parser, is there any C parser written in python? Thanks. Victor Lin. -- http://mail.pytho

Re: Callback from c thread with ctypes

2009-03-08 Thread Victor Lin
On 3月8日, 下午10時20分, Christian Heimes wrote: > Victor Lin wrote: > > Hi, > > > I am going to develop a c library binding with ctypes. That c library > > will call callback from worker threads it created. Here comes the > > problem : Will the GIL be acquired before it

Re: Callback from c thread with ctypes

2009-03-08 Thread Victor Lin
On 3月8日, 下午9時56分, "Diez B. Roggisch" wrote: > Victor Lin schrieb: > > > > > Hi, > > > I am going to develop a c library binding with ctypes. That c library > > will call callback from worker threads it created. Here comes the > > problem : Wi

Callback from c thread with ctypes

2009-03-08 Thread Victor Lin
allback. As the document says. WINFUNCTYPE will release GIL during the call But it does not mention callback about Python function? How about a call from another thread? Could somebody help me? Thanks. Victor Lin. -- http://mail.python.org/mailman/listinfo/python-list

How to debug deadlock?

2009-02-08 Thread Victor Lin
d the program? And how can I know what lock are there in threads caused the deadlock? Thanks. Victor Lin. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to call python from a foreign language thread (C++)

2009-02-03 Thread Victor Lin
On 2月4日, 上午2時44分, Philip Semanchuk wrote: > On Feb 3, 2009, at 12:51 PM, Victor Lin wrote: > > > > > It seems that my program can't call to Python's function from thread > > directly, because there is Global Interpreter Lock. The python's GIL > > is

How to call python from a foreign language thread (C++)

2009-02-03 Thread Victor Lin
void operator() (double time, const AudioData &data) { // acquire lock m_Function(time, data); // release lock } Thanks. Victor Lin. -- http://mail.python.org/mailman/listinfo/python-list

Logging library unicode problem

2008-08-13 Thread Victor Lin
be considered as a bug? If it is, how to report this bug? Is my solution correct? Are there any side effect will caused by doing so? If the code I write is fine, and solve that problem, how to report it to Python's project? I think this could be helpful for people who also encountered this problem. Thanks. Victor Lin. -- http://mail.python.org/mailman/listinfo/python-list

How to redirect operation methods to some sepcific method easily?

2008-08-03 Thread Victor Lin
Hi, I'd like to write some class that can help me build reusable formula easily, some simple code like this. # -*- coding: utf8 -*- class OperationResult: def __init__(self, left, right): self.dataSource = dataSource def __add__(self, other): self.dataSource.stack.append(

Problem with import

2008-02-11 Thread Victor Lin
m: If I move my directory, I have to modify the path again. This is not a library, they are some programs to do specific task. I think they should be executable in every where I move or copy the directory to. Victor Lin. -- http://mail.python.org/mailman/listinfo/python-list

Re: Recursion limit of pickle?

2008-02-09 Thread Victor Lin
On 2月10日, 上午11時42分, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sat, 09 Feb 2008 09:49:46 -0200, Victor Lin <[EMAIL PROTECTED]> > escribi�: > > > I encounter a problem with pickle. > > I download a html from: > > >http://www.amazon

Recursion limit of pickle?

2008-02-09 Thread Victor Lin
t stop running program without any message. I think it is also implement with recursion way, and it also over flow stack when dumping soup. Are there any version of pickle that implement with no-recursion way? Thanks. Victor Lin. -- http://mail.python.org/mailman/listinfo/python-list

Strange sqlite3 library behavior

2008-02-02 Thread Victor Lin
data would just keep in memory and discarded with the program's ending. Why sqlite3 just keep inserted data in memory? And how to force inserted data into file? Thanks. Victor Lin. -- http://mail.python.org/mailman/listinfo/python-list