Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.176.194 Times

Readable switch construction 1.7

  Date Added: May 10, 2013  |  Visits: 447

Readable switch construction

Report Broken Link
Printer Friendly Version


Product Homepage
Download (51 downloads)



Python's lack of a 'switch' statement has garnered much discussion and even a PEP. The most popular substitute uses dictionaries to map cases to functions, which requires lots of defs or lambdas. While the approach shown in this script may be O(n) for cases, it aims to duplicate C's original 'switch' functionality and structure with reasonable accuracy.

Requirements: No special requirements
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python , BSD Solaris
Keyword: Construction Function Switch Switch Construction Switch Function Switch Statement Emulation
Users rating: 0/10

License: Freeware
USER REVIEWS
More Reviews or Write Review


READABLE SWITCH CONSTRUCTION RELATED
Miscellaneous  -  Using a Dictionary in place of 'switch' 1.0
This script shows a clean way of implementing a 'switch' statement in Python via a dictionary container. The dictionary is made up of known 'named states' that are tested in sequence for their current 'state'.
 
Terminals and Telnet Clients  -  Aterm 1.0.1
Aterm is designed to provide pleasing visual effects, while performing such a mundane function as terminal emulation under X..
286.72 KB  
Miscellaneous  -  Exception-based Switch-Case 1.0
This script presents you another way to emulate a switch-case statement, perhaps one you might not have thought of.
 
Miscellaneous  -  Some python style switches 1.5
Some python style switches script shows several ways of making a 'switch' in pyshows sevbr />
 
Libraries  -  Bundle::Perl6 0.07
Bundle::Perl6 is a Perl bundle to install Perl6-related modules. SYNOPSIS perl -MCPAN -e install Bundle::Perl6 CONTENTS Attribute::Handlers - Simpler definition of attribute handlers Attribute::Types - Attributes that confer type on...
3.07 KB  
Education  -  FreeMat for Mac OS X 4.0
FreeMat is a free environment for rapid engineering and scientific prototyping and data processing. It is similar to commercial systems such as MATLAB from Mathworks, and IDL from Research Systems, but is Open Source. FreeMat is available under...
41.9 MB  
Education  -  FreeMat for Windows 4.0
FreeMat is a free environment for rapid engineering and scientific prototyping and data processing. It is similar to commercial systems such as MATLAB from Mathworks, and IDL from Research Systems, but is Open Source. FreeMat is available under...
17.9 MB  
Communication  -  Continuous Sound and Vibration Analysis 1.0
The main program is Main_sound_and_vibs.m. Up to 100 metrics are for each of sound, hand arm vibrations, whole body vibrations, and motion sickness. Main_sound_and_vibs calls the primary depedent function"Continuous_Sound_and_Vibrations_Analysis"...
1.51 MB  
Libraries  -  Devel::Tokenizer::C 0.05
Devel::Tokenizer::C is a Perl module that can generate C source for fast keyword tokenizer. SYNOPSIS use Devel::Tokenizer::C; $t = new Devel::Tokenizer::C TokenFunc => sub { "return U$_[0];n" }; $t->add_tokens(qw( bar baz...
11.26 KB  
Development Tools  -  Strategy Design Pattern in Matlab 2008b 1.0
The Strategy Pattern is just one of many patterns defined by the "Gang of Four" that are commonly used in many other object-oriented programming languages.Now with Matlab 2008b we can define Interfaces and Abstract classes that can make use of...
10 KB  
NEW DOWNLOADS IN SCRIPTS, MISCELLANEOUS
Scripts  -  Free Ecommerce website creator 1.2
Free Ecommerce website creator is a free PHP shop creating script. This allows you to put a online shop on your own website. Create your own free ecommerce website for Your Business. Create an online shop using easyGUI online shop creator. The...
1.44 KB  
Scripts  -  MochiGames PHP Script ZDR 1.00
MochiGames PHP Script ZDR is web site, ready for use, for flash games. These flash games are downloaded automatically by "MochiGames PHP Script ZDR" from MochiGames media. The use of the games is free, you can use your own Mochi Publisher ID and...
368.54 KB  
Scripts  -  Php Chat 2.0
Add a free php site, single sign-on and multiple skins, 100% free 1. Server Modes: The chat server has paid mode and free mode. If the free chat mode, a free chat room will be assigned to your website with your domain as the room name. 2....
938.87 KB  
Scripts  -  Nibbleblog 3.0.1
Nibbleblog it's a powerful engine for creation and manipulation of BLOG's completely free. Very simple to install and configure (Only 1 step). The database used is based on XML files and this way it is not necessary to use MySQL or similar DBMS....
371.09 KB  
Scripts  -  PHP File Manager | CloudOsys 2.9b8
CloudOsys is a PHP file manager, a tool that allows your visitors upload files such as media content directly to your website. Your visitors will upload files directly to your website, where they can share and comment on them. Through cloud...
1.41 MB  
Miscellaneous  -  ZZIPlib Library for File sharing 0.13.56
Different applications can group files together into a single .zip archive and access them afterward.The library uses only the patent-free compression-algorithms supported by Zlib.It provides functions that transparently access files being either...
675.84 KB  
Miscellaneous  -  Traveling Salesman Problem - Nearest Neighbor Script 1.1
This method produces different results depending on what city is choosen as the starting point.This function determines the Nearest Neighbor routes for multiple starting points and returns the best of those routes.
10 KB  
Miscellaneous  -  N/A Checkbox 6.x-1.8
N/A Checkbox will allow website builders to add a checkbox next to a number textfield. The idea is to provide the users a textfield to enter a numeric value, or mark N/A in case they don't have it. When the N/A option is marked, a different value...
10 KB  
Miscellaneous  -  ILIAS LMS 4.1.2
ILIAS is a web base learning management system (LMS, VLE).Features of ILIAS LMS:- Courses,- SCORM 1.2 and 2004,- mail,- forum,- chat,- groups,- podcast,- file sharing,- authoring,- CMS,- test,- wiki,- personal desktop,- LOM,- LDAP,- role based...
89 MB  
Miscellaneous  -  Scribe for WordPress 2.0.4
Scribe is an SEO software service for WordPress - think of it as a content optimization assistant - that analyzes web pages, blog posts, and online press releases at the click of a button.Scribe then tells web writers of any kind how to tweak...
10 KB