© Copyright 2000-2020 Source Code Online. Free Source Code and Scripts Downloads.
|Code Listing by Jurgen Hermann|
A class that enables a client to securely update an existing file,
including the ability to make an automated backup version.
This code shows how to call the low-level POSIX interface of Python, and handle the return values with the struct module.
This code shows how to load a stylesheet from "virtual" URLs, by detecting a special URL scheme.
People coming from C, C++ or Perl might miss the so-called ternary operator ?: (condition ? then-expr : else-expr). It's most often used for avoiding several lines of code and temporary variables for very simple decisions, like printing the plural...
Forking a daemon on Unix requires a certain sequence of system calls. Since Python exposes a full POSIX interface, this can be done in Python, too.
This code is part of MoinMoin (http://moin.sourceforge.net/) and converts Python source code to HTML markup, rendering comments, keywords, operators, numeric and string literals in different colors.
It shows how to use the built-in...
This function allows you to do "from module import name", where both "module" and "name" are dynamic values (i.e. expressions or variables). For example, this can be used to implement a "plugin" mechanism to...
While the find() and count() string functions can check for string occurences, there is no function to check on the occurence of a set of characters.
The following class shows how to implement the singleton pattern in Python. A singleton
is a class that makes sure only one instance of it is ever created. Typically such classes
are used to manage resources that by their very nature...
The following function creates a map of all members of a class, navigating ALL of the base classes in the correct order. This can be used for various purposes, like checking whether a certain method is defined anywhere in a class hierarchy.
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.