Traceback not going all the way to the exception?

2008-10-09 Thread sert
I just got an exception and the traceback wouldn't go all the 
way to the statement that threw the exception. I found that out 
by using the debugger.

Contrast the traceback:

http://tinyurl.com/5xglde

with the debugger output (notice the arrow pointing to the last 
statement the traceback showed and how the execution went on 
beyond it):

http://tinyurl.com/3fjgrl

Is this a known issue or should I submit a bug report?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Traceback not going all the way to the exception?

2008-10-09 Thread sert
Terry Reedy <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]: 

> You forgot to specify which version of Python on which
> computer system. 
> 

It's on Python 2.6.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Traceback not going all the way to the exception?

2008-10-09 Thread sert
sert <[EMAIL PROTECTED]> wrote in 
news:[EMAIL PROTECTED]:

> It's on Python 2.6.
> 

On Windows.
--
http://mail.python.org/mailman/listinfo/python-list


Plotting libraries recommendations

2008-10-14 Thread sert
I'm developing a circuit simulation application and will need to 
plot the output of my program. The output will not be functions,  
just a collection of numerical values of the dependent and 
independent variables.
--
http://mail.python.org/mailman/listinfo/python-list


Is psyco available for python 2.6?

2008-10-30 Thread sert
I used the windows installer for the latest version of psyco, 
which is labeled as compatible with 2.5, but it gives the 
following error:

ImportError: DLL load failed: The specified module could not be 
found. (check that the compiled extension 'C:\Python26\lib\site-
packages\psyco\_psyco.pyd' is for the correct Python version; 
this is Python 2.6)
--
http://mail.python.org/mailman/listinfo/python-list


Efficient searching through objects

2009-02-26 Thread sert
I have written a program that reads data and updates the records 
for some people. They are represented by objects, and I need to 
read the data from a file, look the person up and then update 
his record.

I have implemented this by creating a list with all the people's 
names and another list with their objects (their data).

It works but after profiling the code it turns out that half the 
time spent in the program is spent in the list.index() function 
looking up names. Isn't there a less goofy and more efficient 
way of doing this?
--
http://mail.python.org/mailman/listinfo/python-list


Re: Efficient searching through objects

2009-02-26 Thread sert
[email protected] wrote in
news:[email protected]
ups.com: 

> Try using a dict instead, where keys are the names and
> objects the values (it turns a linear search in a quick
> hash look up). . Then tell us the performance changes.
> 

It halved the overall execution time. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list