Quickslice decorator Icon

Quickslice decorator

Quickslice decorator script defines a decorator that allows for an abbreviated

Quickslice decoratorOverview

Sometimes I wish Slice creation had a form that looked more like its invocation: [1:5], for example. This recipe allows slice arguments to be passed that look like {1:5}. NOTE: I don't recommend actually using this in practice. It will most likely just confuse any readers of your code. It is just a proof-of-concept. In an interview with Guido van Rossum, Guido was explaining the benefits of Python's built-in types. He gave an example of being able to pass slices as arguments instead of having individual start, stop and step arguments -- and this is very true. But I don't think a syntax to concisely Create slices should be out of the question. (Step is not supported by this syntax, it wouldn't be possible and I rarely find myself using step anyway).

NEW

Fixed some bugs.

Quickslice decoratorInformation

Version
1.3
Date
03.23.10
License
Free
Language
English
File Size
N/A
Developer
Category
SubCategory
Operating Systems
Windows ,Linux,Mac OS,BSD,Solaris
System Requirements
No additional system requirements.
Tracking file requests in web server access logs Icon
Tracking file requests in web server access logs
Free
More
Principal Component Analysis (PCA) Icon
A class that carries out Principal Component Analysis (PCA).
Free
getch() Icon
A small utility class to read single characters from standard input
Album Track List Generator Icon
Album Track List Generator allows you to extract artist, album title and track t
Free
Dendrogram drawing Icon
This recipe draws a dendrogram (horizontal format used for evolutionary trees)
Disk Dumper Icon
This recipe will display a hex dump of the disk specified on the command line.
Complex Boolean Regular Expression Class Icon
Need to look for the occurence of words in a string or group of words
Free
Display an Image from a specified file Icon
Reads an image file from the filename specified as the 1st parameter
Free
Quickslice decorator Icon
Quickslice decorator script defines a decorator that allows for an abbreviated
Free
More