Search
New Code
AnyGantt JS Gantt Charts 8.1.0
PHP Scripts Mall Pvt Ltd 1.0.2
Bytescout PDF To HTML SDK 8.7.0.2980
JavaScript Framework Shield UI 1.7.34
Fortune Car Rental Script 3.4
Fortune Stackoverflow Clone 3.4
VintaSoft Imaging .NET SDK 8.6
wolfSSL 3.12.2
Bytescout BarCode Generator SDK 4.62.0.964
ThomasNet Clone Script 2.0
Easy Button & Menu Maker 5.0
Entrepreneur News Portal 1.6
Fortune Quibids Clone 3.4
Database Workbench Pro 5.3.4
Extensibility Studio 2.0
Top Code
Output Messenger - company chat software 1.7.6
Indiegogo Clone 3.0
PHP Image Resize Script 1.0
Jango Clone Script 1.0
Best Spotify Clone 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
Readymade MLM Products 2.01
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Code Listing by Stephan Diehl

Code 1-5 of 5   






This lets treat you a python sets.Set as a scalar (number,string,...)
The german linux magazine featured an article about the PERL module
"Quantum::Superpositions": http://www.linux-magazin.de/Artikel/ausgabe/2003/12/perl/perl.html
This sounded like fun and I implemented it in Python (probably not everything).
Perl code lines: over 700
Python code lines: 100



I came up with this when I tried to implement some autocompletion feature.
The problem is to find a common substring (beginning from the start) for all strings in a given list.

I couldn't find an existing recipe that is doing this...



This recipe is a rewrite of a portion of http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/157768 .
It shows an easy way to write read-only attributes with the help of meta classes.



A metaclass is used to wrap all (or just some) methods for logging purposes. The underlying mechanism can be used as well to check pre/post conditions, attribute access,...
The basic point is, that the actual class must not be changed in any...



Mutating list methods such as 'append' or 'extend' return None instead of the (mutated) list itself. Sometimes, this is not the desired behaviour.
The <a...