Re: a question on python dict

2006-12-30 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Tim Peters wrote: > You should also note that copying a dict key or value (no matter of > what type) consists in its entirety of copying one machine address (a > 4- or 8-byte pointer, depending on platform). Actually, no. It also consists of updating reference coun

Re: find login name of user?

2006-12-30 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Is there a function/module to find the login name of the user under > UNIX environment? Note that there isn't really an important concept of "login name" under *NIX systems. There is the current process UID and GID, effective UID and GID

Re: Why does Python never add itself to the Windows path?

2006-12-30 Thread vbgunz
Ben Sizer wrote: > I've installed several different versions of Python across several > different versions of MS Windows, and not a single time was the Python > directory or the Scripts subdirectory added to the PATH environment > variable. I don't understand what all the fuss is about. Add a sing

looking for a better way to call a file.

2006-12-30 Thread [EMAIL PROTECTED]
I have been auto-generating .bat files and then running os.startfile('whatever.bat'). I don't seem to be having much luck when I try other methods. All of a sudden I am stuck in a situation where I need the program that is calling to end and a new program to start (because otherwise I get several

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Robert Kern
sturlamolden wrote: > array3[:] = array1[:] + array2[:] OT, but why are you slicing array1 and array2? All that does is create new array objects pointing to the same data. > Now for my question: operator overloading is (as shown) not the > solution to efficient scientific computing. It creates se

Re: Wow, Python much faster than MatLab

2006-12-30 Thread sturlamolden
Wensui Liu wrote: > doing. However, that is not the fault of excel/spss itself but of > people who is using it. Yes and no. I think SPSS makes it too tempting. Like children playing with fire, they may not even know it's dangerous. You can do an GLM in SPSS by just filling out a form - but how m

Re: Wow, Python much faster than MatLab

2006-12-30 Thread sturlamolden
Stef Mientki wrote: > MatLab: 14 msec > Python: 2 msec I have the same experience. NumPy is usually faster than Matlab. But it very much depends on how the code is structured. I wonder if it is possible to improve the performance of NumPy by having its fundamental types in the language, instea

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Wensui Liu
Sturla, I am working in the healthcare and seeing people loves to use excel / spss as database or statistical tool without know what he/she is doing. However, that is not the fault of excel/spss itself but of people who is using it. Things, even include SAS/R, would look stupid, when it has been m

Re: Question concerning this list

2006-12-30 Thread Thomas Ploch
Steven D'Aprano wrote: > On Sun, 31 Dec 2006 02:03:34 +0100, Thomas Ploch wrote: > >> Hello fellow pythonists, >> >> I have a question concerning posting code on this list. >> >> I want to post source code of a module, which is a homework for >> university (yes yes, I know, please read on...). >

Re: Wow, Python much faster than MatLab

2006-12-30 Thread sturlamolden
Stef Mientki wrote: > I always thought that SPSS or SAS where thé standards. > Stef As far as SPSS is a standard, it is in the field of "religious use of statistical procedures I don't understand (as I'm a math retard), but hey p<0.05 is always significant (and any other value is proof of the op

Re: I want to see all the variables

2006-12-30 Thread Steven D'Aprano
On Sun, 31 Dec 2006 03:39:52 +0100, Rene Fleschenberg wrote: > johnf wrote: >> Very detailed. But I was attempting to debug some code which subclassed >> other code. I got a traceback that something like "no >> mySubClass.__source.query() did not exist". > > By (strong) convention, "__" means

Re: I want to see all the variables

2006-12-30 Thread Steven D'Aprano
On Sat, 30 Dec 2006 11:08:10 -0800, johnf wrote: > Very detailed. But I was attempting to debug some code which subclassed > other code. I got a traceback that something like "no > mySubClass.__source.query() did not exist". The superclass had something > like "myClass.__source.query(sql)" which

Re: I want to see all the variables

2006-12-30 Thread Rene Fleschenberg
johnf wrote: > Very detailed. But I was attempting to debug some code which subclassed > other code. I got a traceback that something like "no > mySubClass.__source.query() did not exist". By (strong) convention, "__" means "not to be accessed from outside the class, not even from subclasses".

Re: Question concerning this list

2006-12-30 Thread Steven D'Aprano
On Sun, 31 Dec 2006 02:03:34 +0100, Thomas Ploch wrote: > Hello fellow pythonists, > > I have a question concerning posting code on this list. > > I want to post source code of a module, which is a homework for > university (yes yes, I know, please read on...). So long as you understand your un

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Ramon Diaz-Uriarte
On 12/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > R is the free version of the S language. S-PLUS is a commercial version. > Both are targeted at statisticians per se. Their strengths are in > exploratory data analysis (in my opinion). > > SAS has many statistical featues, and is phenom

Question concerning this list

2006-12-30 Thread Thomas Ploch
Hello fellow pythonists, I have a question concerning posting code on this list. I want to post source code of a module, which is a homework for university (yes yes, I know, please read on...). It is a web crawler (which I will *never* let out into the wide world) which uses regular expressions

Re: Why does Python never add itself to the Windows path?

2006-12-30 Thread Ben Sizer
Martin v. Löwis wrote: > Ben Sizer schrieb: > > I've installed several different versions of Python across several > > different versions of MS Windows, and not a single time was the Python > > directory or the Scripts subdirectory added to the PATH environment > > variable. Every time, I've had t

Progress Box or Bar in Windows

2006-12-30 Thread tubby
Hi guys, I have a Python script that I've prettied-up for Windows users by adding things like shell.SHBrowseForFolder and win32gui.MessageBox, etc. In short, it looks like this: 1. Pretty window where user can browse for folder. (instead of typing path into cmd prompt) 2. win32gui.MessageBox

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Christophe Cavalaria
Osiris wrote: > On Sat, 30 Dec 2006 13:19:28 -0800, Erik Max Francis <[EMAIL PROTECTED]> > wrote: > >>Osiris wrote: >> >>> I have these pieces of C-code (NOT C++ !!) I want to call from Python. >>> I found Boost. >>> I have MS Visual Studio 2005 with C++. >>> >>> is this the idea: >>> I write th

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
> I think of SAS and R as being like airliners and helicopters -- I like that comparison,... .. Airplanes are inherent stable, .. Helicopters are inherent not-stable ;-) cheers, Stef -- http://mail.python.org/mailman/listinfo/python-list

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Erik Max Francis
Osiris wrote: > yes, but C can be compiled with a C++ compiler, One can put C code in > C++ source Boost should not complain... should it ? > Boost text is all about C++.. so... C should not be a problem... That you're dealing with a `boost` namespace below clearly indicates that you're dea

Re: Wow, Python much faster than MatLab

2006-12-30 Thread gblais
R is the free version of the S language. S-PLUS is a commercial version. Both are targeted at statisticians per se. Their strengths are in exploratory data analysis (in my opinion). SAS has many statistical featues, and is phenomenally well-documented and supported. One of its great strengths

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
On Sat, 30 Dec 2006 13:19:28 -0800, Erik Max Francis <[EMAIL PROTECTED]> wrote: >Osiris wrote: > >> I have these pieces of C-code (NOT C++ !!) I want to call from Python. >> I found Boost. >> I have MS Visual Studio 2005 with C++. >> >> is this the idea: >> I write the following C source file: >>

Re: xml bug?

2006-12-30 Thread Imbaud Pierre
Martin v. Löwis a écrit : > Imbaud Pierre schrieb: > >>- how do I spot the version of a given library? There is a __version__ >> attribute of the module, is that it? > > > Contrary to what others have said: for modules included in the standard > library (and if using these modules, rather than

Re: DOS, UNIX and tabs

2006-12-30 Thread Paul McNett
Sebastian 'lunar' Wiesner wrote: > Paul McNett <[EMAIL PROTECTED]> typed > >> Steven D'Aprano wrote: >>> But I think we all agree that mixing tabs and spaces is A Very Bad >>> Thing. >> I like mixing tabs and spaces, actually. Tabs for indentation, and >> additional spaces to make the code "look p

Re: find login name of user?

2006-12-30 Thread Martin P. Hellwig
Uwe Hoffmann wrote: > [EMAIL PROTECTED] schrieb: >> Is there a function/module to find the login name of the user under >> UNIX environment? > > > http://docs.python.org/lib/os-procinfo.html > > http://docs.python.org/lib/module-pwd.html Speaking of that, is there any reason why there isn't any

Re: No way to set a timeout in "urllib".

2006-12-30 Thread John J. Lee
John Nagle <[EMAIL PROTECTED]> writes: > There's no way to set a timeout if you use "urllib" to open a URL. > "HTTP", which "urllib" uses, supports this, but the functionality > is lost at the "urllib" level. > > It's not available via "class URLopener" or "FancyURLopener", either. > >

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Roman Yakovenko
On 12/30/06, Osiris <[EMAIL PROTECTED]> wrote: > Visual C++ build log at: > > http://213.10.133.192/BuildLog.htm It is better to ask Boost.Python related questions on it mailing list: http://mail.python.org/mailman/listinfo/c++-sig/ You should add to the link line boost_python.lib, thus you will

Re: Wow, Python much faster than MatLab

2006-12-30 Thread John J. Lee
Stef Mientki <[EMAIL PROTECTED]> writes: > Doran, Harold wrote: > > R is the open-source implementation of the S language developed at Bell > > laboratories. It is a statistical programming language that is becoming > > the de facto standard among statisticians. > Thanks for the information > I al

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Erik Max Francis
Osiris wrote: > I have these pieces of C-code (NOT C++ !!) I want to call from Python. > I found Boost. > I have MS Visual Studio 2005 with C++. > > is this the idea: > I write the following C source file: > > #include > #include > > namespace { // Avoid cluttering

Re: find login name of user?

2006-12-30 Thread karel
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > karel wrote: >> <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > Is there a function/module to find the login name of the user under >> > UNIX environment? >> >> who >> who am i >> finger >> id > > I was talking ab

Re: Wow, Python much faster than MatLab

2006-12-30 Thread John J. Lee
Stef Mientki <[EMAIL PROTECTED]> writes: > Mathias Panzenboeck wrote: > > A other great thing: With rpy you have R bindings for python. > > forgive my ignorance, what's R, rpy ? > Or is only relevant for Linux users ? [...] R is a language / environment for statistical programming. RPy is a Pyt

Re: find login name of user?

2006-12-30 Thread Uwe Hoffmann
[EMAIL PROTECTED] schrieb: > Is there a function/module to find the login name of the user under > UNIX environment? http://docs.python.org/lib/os-procinfo.html http://docs.python.org/lib/module-pwd.html -- http://mail.python.org/mailman/listinfo/python-list

Re: find login name of user?

2006-12-30 Thread rattan
karel wrote: > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Is there a function/module to find the login name of the user under > > UNIX environment? > > who > who am i > finger > id I was talking about under python environment. -ishwar -- http://mail.python.org/mailman/li

Re: find login name of user?

2006-12-30 Thread karel
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is there a function/module to find the login name of the user under > UNIX environment? who who am i finger id -- http://mail.python.org/mailman/listinfo/python-list

find login name of user?

2006-12-30 Thread rattan
Is there a function/module to find the login name of the user under UNIX environment? -ishwar -- http://mail.python.org/mailman/listinfo/python-list

Re: I want to see all the variables

2006-12-30 Thread johnf
Steven D'Aprano wrote: > > There are three other underscore conventions in use: > > (1) Objects with a single leading underscore like _attribute are private > by convention, but Python doesn't enforce it. Starting an object with a > single underscore is like writing "# Private! Don't touch!" af

Re: bad marshal data in site.py in fresh 2.5 install win

2006-12-30 Thread TiNo
Good question... I am now on a different computer, one that has never heard of Python, so no env vars are set. Again, this gives (my memory stick is now F:\): -- F:\Python25>python -v # installing zipimport hook import zipimport # builtin # installed zipimport hook # F

Re: PEP 3107 Function Annotations for review and comment

2006-12-30 Thread Tony Lownds
> First, it only handles functions/methods. Python FIT needs > metadata on properties and assignable/readable attributes > of all kinds. So in no sense is it a replacement. Parenthetically, > neither is the decorator facility, and for exactly the same reason. > I can't argue against docstrings and

Chris Akre

2006-12-30 Thread Neil Agron
Chris, If my name is familiar, please contact me. -Neil-- http://mail.python.org/mailman/listinfo/python-list

Re: Easiest way to print from XP/DOS.

2006-12-30 Thread [EMAIL PROTECTED]
jim-on-linux wrote: > Thanks, > The client is in a one printer office. If the > output file is opened with note and then sent to > the printer everything is fine but it defeats the > purpose of the utility. Also tried > lpt1 but > the same results. This may not help, but it worked once for me

Re: Starting a child process and getting its stdout?

2006-12-30 Thread cypher543
Yes, I did try your example. But, after talking on the #python IRC channel, I realized that it wasn't the process that was blocking, it was my GUI. I had to fire an event using gobject.io_add_watch() whenever data was received from the child process. The event then read from the process and added a

Re: How to suppress the output of an external module ?

2006-12-30 Thread Scott David Daniels
MRAB wrote: > Scott David Daniels wrote: >> [EMAIL PROTECTED] wrote: > In Windows the null device is, strictly speaking, "nul" or "nul:", not > "nul.txt", but the latter appears to work too. Although I find the windows design and reasoning to be a mistake, I believe the use of file names NUL, PRN,

Re: Managing a queue of subprocesses?

2006-12-30 Thread cypher543
That was a very good answer, and it sure sounds like it would work. However, I failed at implementing it. :( My updated runQueue() function is: def runQueue(self): self.buildProcess = None count = 1 # current position in the queue while True: if self.buildPr

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
Doran, Harold wrote: > R is the open-source implementation of the S language developed at Bell > laboratories. It is a statistical programming language that is becoming > the de facto standard among statisticians. Thanks for the information I always thought that SPSS or SAS where thé standards. Ste

Re: PEP 3107 Function Annotations for review and comment

2006-12-30 Thread Tim Smith
here's a potentially nifty way of adding decorators to input args for python: def a(int(arg1), arg2, tuple(arg3)): #arg1 is an int (or was converted to an int) #arg2's type is not known (ie this decoration is optional) #arg3 is a tuple (may have been a list coming in, but is now a t

Re: Easiest way to print from XP/DOS.

2006-12-30 Thread jim-on-linux
Thanks, However, using note to print is a problem. First, because note adds a header( file name etc.) to the printed output that is not acceptable. Next, the number of files is 200 to 300 per day. The idea of the utility is to eliminate the operator. But, if you have a virus detector that

Re: No way to set a timeout in "urllib".

2006-12-30 Thread skip
John> If you're looking for a Summer of Code project, ... I'm not. I'm about 25 years out of grad school. ;-) Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Easiest way to print from XP/DOS.

2006-12-30 Thread jim-on-linux
Thanks, The client is in a one printer office. If the output file is opened with note and then sent to the printer everything is fine but it defeats the purpose of the utility. Also tried > lpt1 but the same results. I'm trying to find out if this was some change in xp from previous v

Re: some OT: how to solve this kind of problem in our program?

2006-12-30 Thread mark . dufour
[EMAIL PROTECTED] wrote: > Using Psyco this version is much faster, you can test it on your PC > compared to the other one (the whole running time, Psyco compilation > too): FWIW, the CVS version of Shed Skin optimizes this exact program a bit further than Psyco: Psyco: 0.66 s Shed Skin:

Re: PEP 3107 Function Annotations for review and comment

2006-12-30 Thread John Roth
BJörn Lindqvist wrote: > On 12/29/06, Tony Lownds <[EMAIL PROTECTED]> wrote: > > Rationale > > = > > > > Because Python's 2.x series lacks a standard way of annotating a > > function's parameters and return values (e.g., with information about > > what type a function's return value should

Re: can't find a suitable application server

2006-12-30 Thread Diez B. Roggisch
krishnakant Mane wrote: > hello, > I have read about zope and found it very good. > but right now I am a bit confused about one project I have just procured. > it is supposed to be a simple 3 tear application. the front end will > be a thin client which we will develop using wxpython. > We are us

can't find a suitable application server

2006-12-30 Thread krishnakant Mane
hello, I have read about zope and found it very good. but right now I am a bit confused about one project I have just procured. it is supposed to be a simple 3 tear application. the front end will be a thin client which we will develop using wxpython. We are using MySQL for the database and I need

Re: per interpreter storage for C extensions

2006-12-30 Thread Martin v. Löwis
Robin Becker schrieb: > What is worrying is that in the extension init we're creating an > exception and version string etc and holding a pointer to them in C; is > it safe to use the same exception in different interpeters? It is safe as long as the base exception classes are also shared across

RE: Wow, Python much faster than MatLab

2006-12-30 Thread Doran, Harold
R is the open-source implementation of the S language developed at Bell laboratories. It is a statistical programming language that is becoming the de facto standard among statisticians. Rpy is what allows an interface between python and the R language. Harold > -Original Message- > From

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
Mathias Panzenboeck wrote: > A other great thing: With rpy you have R bindings for python. forgive my ignorance, what's R, rpy ? Or is only relevant for Linux users ? cheers Stef > So you have the power of R and the easy syntax and big standard lib of > python! :) -- http://mail.python.org/mai

Re: PEP 3107 Function Annotations for review and comment

2006-12-30 Thread Diez B. Roggisch
BJörn Lindqvist wrote: > On 12/29/06, Tony Lownds <[EMAIL PROTECTED]> wrote: >> Rationale >> = >> >> Because Python's 2.x series lacks a standard way of annotating a >> function's parameters and return values (e.g., with information about >> what type a function's return value should be),

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
Visual C++ build log at: http://213.10.133.192/BuildLog.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing python.org distro over ActivePython?

2006-12-30 Thread Tilde_karthik
I tried too and works sweet. only dont try to run it in pythomWin Karthik Tom Plunket wrote: > Hey gang- > > I just ran into the fabled "Secure Sockets not enabled in ActivePython," > and the ActiveState FAQ says I should just grab _ssl.pyd from > "somewhere", offering up the python.org distributi

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Mathias Panzenboeck
A other great thing: With rpy you have R bindings for python. So you have the power of R and the easy syntax and big standard lib of python! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Sebastian 'lunar' Wiesner
Osiris <[EMAIL PROTECTED]> typed > I have these pieces of C-code (NOT C++ !!) I want to call from Python. > I found Boost. > I have MS Visual Studio 2005 with C++. > > is this the idea: > I write the following C source file: > > #include iostream is a C++ header fil

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
I get, from Visual C++, these linker errors, 8 in total, trying to build the above C++ source: C_test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl boost::python::detail::init_module(char const *,void (__cdecl*)(void))" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[E

Re: Scaling pictures

2006-12-30 Thread cyberco
cyberco wrote: > PIL is certainly a fine option, but I noticed that the scaled images > (scaled with the ANTIALIAS filter) are not as good as you can get with, > say, Photoshop. Maybe I'm just expecting too much, but I wish I could > choose a higher quality rescaling algorithm. PIL still rocks thou

python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
I have these pieces of C-code (NOT C++ !!) I want to call from Python. I found Boost. I have MS Visual Studio 2005 with C++. is this the idea: I write the following C source file: #include #include namespace { // Avoid cluttering the global namespace. int my_int;

Re: per interpreter storage for C extensions

2006-12-30 Thread Robin Becker
Martin v. Löwis wrote: > Robin Becker schrieb: >> Is there a simple/cheap way for C code to cache these sorts of module >> level globals on a per interpreter basis? Is there even a way to tell >> which interpreter I'm being called in? > > There is no cheap way to add to the interpreter state. As C

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
> > I'm not sure about SciPy, Yes SciPy allows it too ! but lists in standard Python allow this: > array = [1, 2, 3, 4] array[2:5] > [3, 4] > > That's generally a good thing. > You're not perhaps by origin an analog engineer ;-) cheers, Stef Mientki -- http://mail.python.org

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Stef Mientki
>> MatLab: 14 msec >> Python: 2 msec > > For times this small, I wonder if timing comparisons are valid. I do > NOT think SciPy is in general an order of magnitude faster than Matlab > for the task typically performed with Matlab. The algorithm is meant for real-time analysis, where these kind o

Re: Python 2.4.4 vs. 2.3.6

2006-12-30 Thread Anthony Baxter
On 27 Dec 2006 18:02:50 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > My top priority is stability of the interpreter. With that in mind > which version should I get: 2.4.4, 2.3.6 > or something else. > > I will be using gcc 2.3.2(x86), 3.3(arm) and 3.4.3(arm) to cross > compile it dependin

Re: Looking for python SIP/MGCP stacks

2006-12-30 Thread Anthony Baxter
> I am using python to write a testing tools, currently this tool only > supports skinny protocol. I am planning to add SIP and MGCP support as well, > wondering if you have written these protocol stacks before which can be > leveraged from. There's two I know of - shtoom and Divmod Sine. The latt

Re: DOS, UNIX and tabs

2006-12-30 Thread Sebastian 'lunar' Wiesner
Paul McNett <[EMAIL PROTECTED]> typed > Steven D'Aprano wrote: >> But I think we all agree that mixing tabs and spaces is A Very Bad >> Thing. > > I like mixing tabs and spaces, actually. Tabs for indentation, and > additional spaces to make the code "look pretty". Somebody please tell > me why t

Re: Why does Python never add itself to the Windows path?

2006-12-30 Thread Eric Pederson
Ben Sizer wrote: >I've installed several different versions of Python across several >different versions of MS Windows, and not a single time was the Python >directory or the Scripts subdirectory added to the PATH environment >variable. Every time, I've had to go through and add this by hand, to >

Re: Easiest way to print from XP/DOS.

2006-12-30 Thread Tim Golden
jim-on-linux wrote: > The utility creates a text file that is sent to > the printer with the statement below. >os.system('type ' +FileName+ ' >prn'), > and the file prints. > > But, from an xp machine if I try to print using > the same statement, I get a question on the dos > screen which rea

Re: Easiest way to print from XP/DOS.

2006-12-30 Thread Tim Roberts
jim-on-linux <[EMAIL PROTECTED]> wrote: > >Did you run from a file or type in from keyboard? > >When the client runs the utility program the >output file is built but nothing prints and no >messages appear. When I typed from keyboard on an >xp pro at c:\, I got the message. > >Is it possible th

Re: Wow, Python much faster than MatLab

2006-12-30 Thread Steven D'Aprano
On Fri, 29 Dec 2006 19:35:22 -0800, Beliavsky wrote: >> Especially I like: >> - more relaxed behavior of exceeded the upper limit of a (1-dimensional) >> array > > Could you explain what this means? In general, I don't want a > programming language to be "relaxed" about exceeding array bounds.

Re: INSERT statements not INSERTING when using mysql from python

2006-12-30 Thread Tim Roberts
"Ben" <[EMAIL PROTECTED]> wrote: >Perhaps when I'm checking for table existance using mysql through >python I have to be more explicit: > >Where I did have: >USE database; >IF NOT EXISTS CREATE table(. > >Perhaps I need: >USE database; >IF NOT EXISTS CREATE database.table(. > >I'll try it