Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Exceptions would be nice!
I personally prefer having speed, if exceptions would sacrifice them. But would
they?
It think the main point to know if this should be done, is profiling how much
speed
would be sacrificed. Maybe someone with a larger experience with Python
exceptions
could give his opinion...
Don't know about other people, but in my programs (pybox2d) physics almost
don't eat
CPU. I just don't put 10000 objects in my scenes, my games will never need so
much,
hehe.
I think it's also valid to point that some exceptions wouldn't run in the game
loop
(exceptions for creating shapes, for example), and therefore wouldn't directly
affect
the simulations.
Another point is that it isn't mandatory to use exceptions. If someone really
thinks
that exceptions would kill his app, he may just not use them... Some days ago I
was
thinking about putting an exception in my main loop (for another library), and
was
concerned about performance. I have tried it and haven't noticed any
difference...
Basically, I think exceptions should be made.
Original comment by msiegwarth@gmail.com
on 2 Nov 2008 at 7:14
This can be enabled during compilation on the latest version of pybox2d.
Calling it
fixed for now, but not enabling it for the default installation.
Original comment by sir...@gmail.com
on 25 Feb 2009 at 6:36
Original issue reported on code.google.com by
sir...@gmail.com
on 31 Oct 2008 at 10:33