Confused compare function :)
Chris Angelico
rosuav at gmail.com
Sat Dec 8 02:17:19 EST 2012
More information about the Python-list mailing list
Sat Dec 8 02:17:19 EST 2012
- Previous message (by thread): Confused compare function :)
- Next message (by thread): Confused compare function :)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, Dec 8, 2012 at 6:01 PM, Terry Reedy <tjreedy at udel.edu> wrote: > Unfortunately, catching exceptions may be and often is as slow as the > redundant check and even multiple redundant checks. It depends on how often you're going to catch and how often just flow through. In Python, as in most other modern languages, exceptions only cost you when they get thrown. The extra check, though, costs you in the normal case. ChrisA
- Previous message (by thread): Confused compare function :)
- Next message (by thread): Confused compare function :)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list