Re: Newbie MySQLdb / MySQL version problem, I think

2004-11-29 Thread alastair
Hi, I'm using MySQLdb with mysql 4.1 and I've seen this too - to get around it go to the following link: http://dev.mysql.com/doc/mysql/en/Old_client.html Hope this helps, Alastair. -- http://mail.python.org/mailman/listinfo/python-list

GIL release

2005-03-18 Thread Alastair Basden
Hi, Does anyone know whether there is a way for a python thread to release the global interpreter lock, and let all other threads have a chance at running before re-acquiring it? Does the thread scheduling follow a round-robin method? Thanks, agb. -- http://mail.python.org/mailman/listinfo/pyt

baffled classes within a function namespace. Evaluation order.

2013-04-25 Thread Alastair Thompson
e 21, in example2 print("2cls: third=", third) NameError: name 'third' is not defined """ In particular: print_stuff behaves as I would expect 1cls: second #<--- Why does this look at the global namespace for second and not the whywhywhy fun

Re: baffled classes within a function namespace. Evaluation order.

2013-04-25 Thread Alastair Thompson
Thats a good pointer to what is going on. Thank you Bas. I am familiar with error such as x=1 def foo(): x = 2 def erm(): print(x) x=3 erm() foo() UnboundLocalError: local variable 'x' referenced before assignment. It seems a bit different for classes (below), as it j

COM Server crashing when returning large arrays

2006-05-22 Thread Alastair Alexander
r data transfer from pythoncom into COM. Anyone know if such limitations exist? Is there a way around them? Can anyone point me in the right direction? Thanks Alastair p.s. 1st message on comp.lang.python, indeed 1st message on any news group -- http://mail.python.org/mailman/listinfo/python-list

Re: COM Server crashing when returning large arrays

2006-05-24 Thread Alastair Alexander
Thanks for the replies Tim & Stefan I'm using Python 2.3.5 on XP and the PythonWin build number seems to be 201 ... I'll see if I can find 207. The following blows up on both an XP and Win2k box ... both have same build of Python and PythonWin: import sys clas

Re: COM Server crashing when returning large arrays

2006-05-24 Thread Alastair Alexander
n > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Alastair Alexander > Sent: Monday, May 22, 2006 6:27 PM > To: python-list@python.org > Subject: COM Server crashing when returning large arrays > > Hi ... I'm using python