Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Simple, elegant, pythonic solution for switch statement
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
python_only  
View profile  
 More options Apr 26 2005, 3:15 am
Newsgroups: comp.lang.python
From: "python_only" <python_o...@yahoo.com>
Date: 26 Apr 2005 00:15:09 -0700
Local: Tues, Apr 26 2005 3:15 am
Subject: Simple, elegant, pythonic solution for switch statement
Check it out!

Readable switch construction without lambdas or dictionaries:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410692


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Klaus Alexander Seistrup  
View profile  
 More options Apr 26 2005, 3:47 am
Newsgroups: comp.lang.python
From: Klaus Alexander Seistrup <dh47...@yahoo.com>
Date: Tue, 26 Apr 2005 07:47:00 +0000 (UTC)
Subject: Re: Simple, elegant, pythonic solution for switch statement

Neat solution!

--
Klaus Alexander Seistrup
Magnetic Ink, Copenhagen, Denmark
http://magnetic-ink.dk/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bruno modulix  
View profile  
 More options Apr 26 2005, 5:37 am
Newsgroups: comp.lang.python
From: bruno modulix <on...@xiludom.gro>
Date: Tue, 26 Apr 2005 11:37:24 +0200
Local: Tues, Apr 26 2005 5:37 am
Subject: Re: Simple, elegant, pythonic solution for switch statement
python_only wrote:
> Check it out!

> Readable switch construction without lambdas or dictionaries:

> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410692

Not sure I'll have a need for it, but, yes, nice job !-)

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'on...@xiludom.gro'.split('@')])"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »