Re: Python crash

2007-04-19 Thread Bram Moolenaar
Chuck Mason wrote: > This crashes my vim: > > function! PyCrash() > python << EOF > import sys > sys.path.append("c:\\python23\\lib") > from threading import Thread > import vim > > def f(): > vim.command("copen") > > t = Thread(target=f) > t.start() > EOF > endfunc > > "" crash! > call

RE: Python crash

2007-04-06 Thread Chuck Mason
, April 06, 2007 9:08 AM To: Chuck Mason Cc: A.J.Mechelynck; Tom Whittock; vim@vim.org Subject: Re: Python crash On 4/5/07, Chuck Mason <[EMAIL PROTECTED]> wrote: > > /nodefaultlib:python24.lib > > That's 2.4 right? > > The point is that vim.command() is not thread-safe.

Re: Python crash

2007-04-06 Thread Aaron Griffin
On 4/5/07, Chuck Mason <[EMAIL PROTECTED]> wrote: /nodefaultlib:python24.lib That's 2.4 right? The point is that vim.command() is not thread-safe. I tried this in pearl (5.8) as well with the same result. Except that perl's VIM::Msg works in a thread (albeit things seem unstable) and VIM::Do

RE: Python crash

2007-04-05 Thread Chuck Mason
al Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 11:11 AM To: Chuck Mason Cc: Tom Whittock; vim@vim.org Subject: Re: Python crash > -Original Message- > From: Tom Whittock [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 05, 2007 2:47 A

Re: Python crash

2007-04-05 Thread A.J.Mechelynck
-Original Message- From: Tom Whittock [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 2:47 AM To: Chuck Mason Cc: vim@vim.org Subject: Re: Python crash sys.path.append("c:\\python23\\lib") What's the result of :py import sys :py print sys.version ?

RE: Python crash

2007-04-05 Thread Chuck Mason
Just to verify-I tried with python2.4 libs too :-D -Original Message- From: Tom Whittock [mailto:[EMAIL PROTECTED] Sent: Thursday, April 05, 2007 2:47 AM To: Chuck Mason Cc: vim@vim.org Subject: Re: Python crash > sys.path.append("c:\\python23\\lib") What's the res

Re: Python crash

2007-04-05 Thread Tom Whittock
sys.path.append("c:\\python23\\lib") What's the result of :py import sys :py print sys.version ? If it's not 2.3.something then there is no way you should be doing that.