total_ordering and force_total_ordering are class decorators for
Python 2.6 & Python 3.
They provides all the rich comparison methods on a class by defining any
one of '__lt__', '__gt__', '__le__', '__ge__'.
total_ordering fills in all unimplemented rich comparison methods, assuming
at least one is implemented. __lt__ is taken as the base comparison method
on which the others are built, but if...
When a class object is created, normally the class body is exec'ed first and then the class object is generated with that resulting namespace.
This recipe lets you flip that around, and then make the class object available to the...
The alias metaclass allows a declarative way of creating aliases to attributes on a class. The main purpose of which is to adapt classes for duck-typing (see doc-string for me detail).
This is a class for creating Windows, Buttons, Edit boxes, and Multiline Edit boxes.
It is a class for a deck of cards that contains a class playingcard. It splits the deck at a rand spot the places a random number of cards - alternating between the halves in a new deck.
It then will deal fropm the top of the deck.
The SqlCommand class is designed to provide a simple, effective, and yet powerful way to use Microsoft SQL Server stored procedures through PHP, with the aid of the PEAR database abstraction layer.
SqlCommand Class provides an...
Connect class is a very simple MySQL database wrapper class. It can establish MySQL database connection using configuration values from given configuration file in the .ini format.
Connect class can also execute SQL queries, retrieve...
These Files are using in Class-4 of my "MatLab's Video Lectures". It's including all examples which we discussed in this lecture.
Model for Soft Independent Modeling of Class Analogy (SIMCA)
x (samples x descriptors) for calibration
classes (samples x 1) classes numbers (must be >0)
This class transparently maps large tensors of arbitrary dimensions to temporary files on disk. Referencing is identical to a standard matlab tensor, so a MappedTensor can be passed into functions without requiring that the function be written...