© Copyright 2000-2015 Source Code Online. Free Source Code and Scripts Downloads.
|Code Listing by Sridhar Ratnakumar|
This recipe facilitates getting and setting of both "user" and "system" environment variables on Windows. It uses PyWin32 (included in ActivePython) ... and works on both Python 2 and Python 3.
Safely convert any given string type (text or binary) to unicode. You won't get UnicodeDecodeError error, at the cost of ignoring those errors during conversion, which is useful for debugging and logging. This recipe requires the six package.
logging.StreamHandler is not the best way to log to console .. as it prints everything to sys.stderr by default. You can configure it to log to sys.stdout .. but that means even error/exception will be printed to sys.stdout.
This recipe will help you parse datetime strings returned by HTTP servers following the RFC 2616 standard (which supports three datetime formats). Credit for this recipe goes to ????????.
Some tarballs have u-x set on directories .. this makes the program fail due to permissions. See http://bugs.python.org/issue6196
Python does not have lazy evaluation syntax features built-in, but fortunately decorators can be used with new-style classes to emulate such a feature. There are cases where one wants foo.property to return the actual property whose calculation...
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.