Re: [Tutor] Exceptions while dealing with MySQL

2007-04-21 Thread Alan Gauld
"Thanos Panousis" <[EMAIL PROTECTED]> wrote > I am developing a network management system that relies heavily on a > MySQL database. The logic of the program is unavoidably coupled with > query results I get from various tables. That's pretty unusual, it normally indicates a non OO design. > Thi

Re: [Tutor] No speedup in

2007-04-21 Thread Kent Johnson
Eike Welk wrote: > There is some project to simplify parallel computing with Python > called IPython1, which is part of the IPython project: > http://ipython.scipy.org/moin/IPython1 See also Parallel Python (and others on the links page): http://www.parallelpython.com/ Kent _

Re: [Tutor] No speedup in

2007-04-21 Thread Andreas Kostyrka
* Thanos Panousis <[EMAIL PROTECTED]> [070421 19:56]: > You cannot get around the GIL in python. > > Maybe you could try passing chunks of your matrix that are copies of > the submatrises you want to multiply using threads. This way it will > be different objects, thus no GILI could be awfully

Re: [Tutor] No speedup in

2007-04-21 Thread Eike Welk
Hello Ying Wai! If you are using NumPy you should ask your question on the NumPy mailing list: http://projects.scipy.org/mailman/listinfo/numpy-discussion There is some project to simplify parallel computing with Python called IPython1, which is part of the IPython project: http://ipython.scip

Re: [Tutor] How to program to python the right way?

2007-04-21 Thread Adam Pridgen
Disregard this email, gmail mis-fired. On 4/21/07, Adam Pridgen <[EMAIL PROTECTED]> wrote: > I guess the problem I am trying to quell really revolves around style > and the proper way to do application programming with Python. So one > of the things I found out the hard way about is classes. > >

Re: [Tutor] How to program to python the right way?

2007-04-21 Thread Adam Pridgen
I guess the problem I am trying to quell really revolves around style and the proper way to do application programming with Python. So one of the things I found out the hard way about is classes. I started of programming my Python Classes using the old style, because I did not understand how the

Re: [Tutor] No speedup in

2007-04-21 Thread Thanos Panousis
You cannot get around the GIL in python. Maybe you could try passing chunks of your matrix that are copies of the submatrises you want to multiply using threads. This way it will be different objects, thus no GILI could be awfully wrong though, I am a beginner in threads as well. On 4/21/07,

[Tutor] No speedup in

2007-04-21 Thread FAN Ying Wai
Hi, I am using Python Thread library for my parallel processing course project. I am doing matrix convolution on a multi-processor machine. I just found out that no speed-up is obtained with threading. It is probably because of something called GIL in Python. How can I get around that GIL and g

Re: [Tutor] Exceptions while dealing with MySQL

2007-04-21 Thread Thanos Panousis
Well, the best thing to do is to just keep on asking until the server is up. Sending emails and other logging can be done inside whatever wrapper function. So if wrappers is a good way to go, how should I pursue this? Just making my own wrapper functions or subclassing from MySQLdb? Is it really

Re: [Tutor] Exceptions while dealing with MySQL

2007-04-21 Thread Kent Johnson
Thanos Panousis wrote: > Hello list, > > I am developing a network management system that relies heavily on a > MySQL database. The logic of the program is unavoidably coupled with > query results I get from various tables. > > This is OK as long the mysql server has 100% uptime, but it hardly >

[Tutor] Exceptions while dealing with MySQL

2007-04-21 Thread Thanos Panousis
Hello list, I am developing a network management system that relies heavily on a MySQL database. The logic of the program is unavoidably coupled with query results I get from various tables. This is OK as long the mysql server has 100% uptime, but it hardly does. Say that I have to make at least

Re: [Tutor] How to program to python the right way?

2007-04-21 Thread Kent Johnson
Adam Pridgen wrote: > Hello everyone, > > I have pretty much finished hacking on my Thesis and I have come to > the conclusion, > I really do not know how to use Python to it "full" extent. Some of > the things I have really messed up in my implementation are > serialization (specifically sub-cla

Re: [Tutor] Python 2.4 or Python 2.5?

2007-04-21 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Im confused When i had python 2.4 all my scripts work correctly should i > reinstall python 2.4? Or should I keep 2.5? Where can I find information > on coding for python 2.5? Each .x release of Python comes with a "What's New" document that details the changes since

Re: [Tutor] Python 2.4 or Python 2.5?

2007-04-21 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote > Im confused When i had python 2.4 all my scripts work correctly > should i > reinstall python 2.4? Or should I keep 2.5? Where can I find > information > on coding for python 2.5? Coding for 2.4 is not significantly different to coding for 2.4. Your 2.4 scripts sho

Re: [Tutor] Python 2.4 or Python 2.5?

2007-04-21 Thread Rikard Bosnjakovic
On 4/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Im confused When i had python 2.4 all my scripts work correctly should i > reinstall python 2.4? Or should I keep 2.5? Where can I find information > on coding for python 2.5? Context? -- - Rikard - http://bos.hack.org/cv/ __