Re: weblogsping.py error handling patch

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
On Wed, 30 Aug 2006, Blake Winton wrote:
>
> But wait, it's only 1.4 times slower to do an addition and a
> try than just an addition, so just the try block runs at 0.4
> times the speed of an addition.  It would be cheaper for us
> to add a try block than it would to add a "+"...  I agree that
> a factor of 1.4 slowdown for the whole app would be a big deal,
> but that's not what was being timed there.

Bah.  It was a bad hair day yesterday.  I see what you're saying now and 
that makes sense.  The actual try/except block is pretty efficient and 
isn't that big a deal.  Turns out it even says that in the Python FAQ.  I 
was confusing that with exactly what you thought I was confusing it with: 
try/except block with exceptions being thrown as opposed to doing things 
in a way where exceptions weren't being thrown.

Thanks for hitting me over the head a few times.  ;)

/will


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.