Re: Agide and wxPython 2.5.2.7 question
Bram Moolenaar <[email protected]> Sat, 28 Aug 2004 21:41:57 +0200
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Christoph Herzog wrote: > I discovered more issues with 2.5.2.7 > As you say you want to stay compatible with 2.4.x the question arises > whether these issues should be handled by try / except clauses > or whether something like > > if wxVERSION_STRING < "2.5": > do this... > else: > do that... > > would more appropriate The "if" solution is cleaner. Exceptions are to be used for, well, exceptions. It's a way out when if/then/else doesn't work. -- Some of the well know MS-Windows errors: EMULTI Multitasking attempted, system confused EKEYBOARD Keyboard locked, try getting out of this one! EXPLAIN Unexplained error, please tell us what happened EFUTURE Reserved for our future mistakes /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click