Difference between revisions of "Code/Python"
Jump to navigation
Jump to search
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | = | + | == Same line print == |
− | + | sys.stdout.write("\r%d" % i) | |
+ | sys.stdout.flush() | ||
− | + | == General == | |
− | * | + | * [http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html idiomatic python] |
− | * [[http://www.python.org/dev/peps/pep-0008/]] | + | * [http://effbot.org/zone/index.htm resources] |
+ | |||
+ | * [http://jaynes.colorado.edu/PythonGuidelines.html guidelines] | ||
+ | |||
+ | * [http://www.python.org/dev/peps/pep-0008/ pep8] | ||
+ | |||
+ | * [http://wiki.python.org/moin/PythonDecoratorLibrary decorator examples] | ||
+ | |||
+ | * [http://www.ibm.com/developerworks/linux/library/l-cpdecor/index.html ibm decorator examples] | ||
+ | |||
+ | == GIL/Thread/Multiprocessing == | ||
+ | |||
+ | * [http://jessenoller.com/2009/02/01/python-threads-and-the-global-interpreter-lock/ Nice detailled explanation of the GIL with benchmarks] | ||
+ | |||
+ | * [http://pyprocessing.berlios.de/doc/intro.html Threads, processes and the GIL] | ||
+ | |||
+ | * [http://www.ibm.com/developerworks/aix/library/au-multiprocessing/ Multiprocessing article by IBM] | ||
+ | |||
+ | * [http://mildopinions.wordpress.com/2008/05/31/python-and-parallel-programming/ General parallel programming in Python] | ||
+ | |||
+ | * [http://www.parallelpython.com/ Parallel Python] |
Latest revision as of 11:49, 12 July 2013
Same line print
sys.stdout.write("\r%d" % i) sys.stdout.flush()