Programming Methods & Algorithms Python scripts - Top 4 Download

Programming Methods & Algorithms Python script downloads

Windows registry

This script allows you to store some data for your progam in the windows registry without many complex operations. ...
Python

Changing return value for mutating list methods

Mutating list methods such as 'append' or 'extend' return None instead of the (mutated) list itself. Sometimes, this is not the desired behaviour. To have a reference to the (mutated) list returned is usefull, if one wants to chain commands such as mylistinstance.append(7).sort(). ...
Python

Storage for store information about prefixes

Storage for store information about prefixes script allows you to store information about domains determined by key prefixes. ...
Python

Tabify

This script introduces a function that converts the indentation with spaces to tabs. ...
Python

Rebind class properties

Sometimes you define properties in base class and override the getter setter methods in derived classes. Then you find out the base class though has derived properties are still pointing to baseclasse's methods not the overriden ones. ...
Python

Tuples with Named Elements via Spawning

Instead of requiring the named attributes list for each instantiation of the tuple, this implementation 'Spawns' a derived tuple class that is taylored to the named attributes specified. And it is this Spawned class that is then used to instantiate tuples. This approach effectively separates the definition of the attribute names from the ...
Python

Simplified attribute accessors using overloading

This script presents an ideom for simplified accessors, that combines typical getter and setter functionality of an attribute into a single overloaded method, that instead of getATTRIBUTE and setATTRIBUTE can now just be called ATTRIBUTE. When called without arguments it acts as a getter and retrieves the attribute's value. When called ...
Python

Print Hook

This class gets all output directed to stdout (e.g by print statements) and stderr and redirects it to a user defined function. ...
Python

Remote control with telnetlib

This script sends commands to one or more logins using Python's standard telnetlib module. ...
Python

Dicts from lists

This script is a simple oneliner to built a dictionary from a list. ...
Python

Find the most frequent elements

This script returns a sorted list of the most common to least common elements and their counts. If n is specified, return only the n most common elements. ...
Python

Scope qualifier for globals

Scope qualifier for globals script contains the globaliser class that provides a scope qualifier s the glols. ...
Python