Free algorithms download - algorithms script - page 20 - Top 4 Download

Algorithms scripts

Restrictive APIs for Python

Python has no inherent provision for a restrictive API that blocks accesses to methods and variables outside an allowed set. Inexperienced Python programmers may fail to adhere to an agreed-upon API, directly accessing the private internals of a class. Adherence to defined APIs is a good thing. This script contains a  ...
Python

Generator for integer partitions

Generator for integer partitions script uses an iterative procedure to deal with integer partitions. ...
Python

Merging two sorted iterators

Merging two sorted iterators script provides a mergeiter() function that can merge two iterators into a single iterator. It uses generators, and guarantees constant memory use. ...
Python

Interfaces

Interfaces script deals with the Interface concept in Python. ...
Python

Loop over and descend into sequences

This is a function to iterate over a container and its elements that checks for recursive traps. The condition for descending into elements is highly configurable (a list of type() results, or a callable). ...
Python

Remove duplicates from a sequence

The fastest way to remove duplicates from a sequence depends on some pretty subtle properties of the sequence elements, such as whether they're hashable, and whether they support full comparisons. This script defines the unique() function that tries three methods, from fastest to slowest, letting runtime exceptions pick the best method available for ...
Python

Force verbose mode for unittests in an IDE

When running unit tests, using the verbose flag often provides an extra level of protection against mistakes. When running from the command line, this simply means adding the -v option. If you use an IDE, matters become more complicated. While you can often set your IDE to pass in the -v ...
Python

Windows free drive space report

Windows free drive space report script reads a file containing a list of share names, and prints a report of the current free space on the volumes. ...
Python

Exception based Switch Case

This script presents you another way to emulate a switch-case statement, perhaps one you might not have thought of. ...
Python

List Generator Monad Combinators

... Haskell has many uses, including parsing and nondeterministic algorithms. This code implements the Monad combinators "bind", "return" and "fail", and the MonadPlus combinators "plus" and "zero". It works with all iterables, and returns a generator rather than a list in order to preserve a lazy semantics. ...
Python

Algorithms scripts download notice

Top 4 Download periodically updates scripts information of algorithms full scripts versions from the publishers, but some information may be slightly out-of-date.

Using warez version or not proper algorithms script install is risk. Download links are directly from our mirrors or publisher's website, algorithms torrent files or shared files from free file sharing and free upload services, including Rapidshare, HellShare, HotFile, FileServe, MegaUpload, YouSendIt, Letitbit, DropSend, MediaMax, LeapFile, MyOtherDrive or MediaFire, are not allowed!