python Programming Glossary: implementations
Choosing Java vs Python on Google App Engine http://stackoverflow.com/questions/1085898/choosing-java-vs-python-on-google-app-engine rely on the performance of highly optimized JIT based JVM implementations discounting their large startup times and memory footprints..
Subclassing Python tuple with multiple __init__ arguments http://stackoverflow.com/questions/1565374/subclassing-python-tuple-with-multiple-init-arguments new object instance usually an instance of cls . Typical implementations create a new instance of the class by invoking the superclass..
Threading in a PyQt application: Use Qt threads or Python threads? http://stackoverflow.com/questions/1595649/threading-in-a-pyqt-application-use-qt-threads-or-python-threads For anyone looking to choose between the two threading implementations I highly recommend they read all the answers provided here including.. they are both wrappers around the same native thread implementations . And both implementations use GIL in the same way. share improve..
Fastest way to list all primes below N in python http://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n-in-python of Python. Below is a script which compares a number of implementations ambi_sieve_plain rwh_primes rwh_primes1 rwh_primes2 sieveOfAtkin..
when does Python allocate new memory for identical strings? http://stackoverflow.com/questions/2123925/when-does-python-allocate-new-memory-for-identical-strings same string literal within a single function will in all implementations I know of use the new reference to same object strategy because.. potentially be a very time consuming task so real world implementations either don't do it at all or only do it in some heuristically..
Getting method parameter names in python http://stackoverflow.com/questions/218616/getting-method-parameter-names-in-python details of CPython so this probably does not work in other implementations of Python such as IronPython and Jython. One portable way to..
Python analog of natsort function (sort a list using a “natural order” algorithm) http://stackoverflow.com/questions/2545532/python-analog-of-natsort-function-sort-a-list-using-a-natural-order-algorithm
Ping a site in Python? http://stackoverflow.com/questions/316866/ping-a-site-in-python Error e The source code itself is easy to read see the implementations of verbose_ping and of Ping.do for inspiration. share improve..
Compiled vs. Interpreted Languages http://stackoverflow.com/questions/3265357/compiled-vs-interpreted-languages but I believe that compiled languages can have interactive implementations as well correct java python compiler programming languages..
Python - Convert UTC datetime string to local datetime http://stackoverflow.com/questions/4770297/python-convert-utc-datetime-string-to-local-datetime check out the python dateutil library. It provides tzinfo implementations on top of a zoneinfo Olson database such that you can refer..
Using strides for an efficient moving average filter http://stackoverflow.com/questions/4936620/using-strides-for-an-efficient-moving-average-filter got distracted by actual work @Paul @eat both have nice implementations using various other ways of doing this. Just to continue things..
How do you retrieve items from a dictionary in the order that they're inserted? http://stackoverflow.com/questions/60848/how-do-you-retrieve-items-from-a-dictionary-in-the-order-that-theyre-inserted in the standard library. It includes links to various implementations of ordered dictionaries see also these two recipes in the Python..
Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell http://stackoverflow.com/questions/6964392/speed-comparison-with-project-euler-c-vs-python-vs-erlang-vs-haskell programming exercise and to compare my surely not optimal implementations in C Python Erlang and Haskell. In order to get some higher.. 3 Can you offer me some hints how to optimize these implementations without changing the way I determine the factors Optimization.. native to the language. EDIT Question 4 Do my functional implementations permit LCO last call optimization a.k.a tail recursion elimination..
Python: Is explicitly closing files important? http://stackoverflow.com/questions/7395542/python-is-explicitly-closing-files-important implementation detail not a feature of the language. Other implementations of Python aren't guaranteed to work this way. For example IronPython..
Why is reading lines from stdin much slower in C++ than Python? http://stackoverflow.com/questions/9371238/why-is-reading-lines-from-stdin-much-slower-in-c-than-python Still it's interesting to explore all the different implementations and think about the performance implications. Thanks again Edit.. the FILE based stdio and iostreams often have separate implementations and therefore separate buffers this could lead to a problem..
|