Patches item #1504199, was opened at 2006-06-11 02:13 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1504199&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Parser/Compiler Group: Python 2.5 >Status: Closed >Resolution: Rejected Priority: 5 Private: No Submitted By: Thomas Lee (krumms) Assigned to: Nobody/Anonymous (nobody) Summary: Switch syntax (partial PEP 275) Initial Comment: Attached is a partial implementation of PEP 275. It should offer a slight performance enhancement over if/elif/else, although it won't be nearly as fast as a lookup table generated at compile time (as the PEP suggests). However, it is more flexible than a compile-time generated lookup table in that it accepts expressions - not just constants - for each case clause. No new opcodes were added. Cheers, Tom ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2007-03-13 20:08 Message: Logged In: YES user_id=849994 Originator: NO The PEP was rejected, so rejecting the patch. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1504199&group_id=5470 _______________________________________________ Patches mailing list Patches@python.org http://mail.python.org/mailman/listinfo/patches