Python is a very popular programming (or “scripting”) language. It is heavily used by scientists and the data analysis/statistics communities.
Have your cake and eat it too (productivity and readable code) – python.org
One notable aspect of the Python syntax is the lack of braces for delimiting functional blocks. Instead, Python uses whitespace.
“Life is better without braces” – Bruce Eckel
ContentsOverviewHow To Create And Use A Virtual EnvironmentListing All Local EnvironmentsInstalling Non-Conda PackagesOverview Anaconda exposes two important command-line tools, conda and source. How To Create And Use A Virtual Environment This assumes you have installed anaconda and conda is available on your path. First, create a new environment: Shell $ conda create -n <your environment name> … Continue reading Anaconda
ContentsEntering A Running Python ProcessEntering A Running Python Process pyrasite-shell is a great tool for attaching to a running Python process. You can install it using pip with: Shell $ pip install pyrasite 1 $ pip install pyrasite You can then attach a pyrasite shell to a running python process using the process ID (PID): … Continue reading Debugging
Information about various Python packages such as NumPy.
ContentsOverviewExamplesOverview pybind11 is a tool which can be used to create Python bindings to C++ code. The 11 in it’s name is taken from the C++11 standard, because it makes use of C++11 language features to provide it’s functionality (and hence C++11 is the oldest C++ standard it supports). Unlike some other binding creating software … Continue reading pybind11
|Python SWIG Bindings From C/C++|
Tutorial showing how to create Python bindings for C++ code using SWIG. This includes CMake code, cross-language polymorphism (directors), dealing with output variables and typemaps.
|Running External Commands|
Info on how to run external commands (e.g Linux shell programs) from within a python script.
Indexing, repetition, slicing, concatenation and other string manipulation techniques in Python.
How to gracefully exit multiple Python threads.
ContentsType Hints/AnnotationsBasic TypesLists, Dicts, e.t.cOptionalType Hints/Annotations Type hints/annotations for Python are introduced in PEP 484 and PEP 526. The python interpreter completely ignores type hints/annotations, it is type syntax which is formalized so that third-party tools such as IDEs or type checkers such as MyPy can then use it to provide type checking and other … Continue reading Types
Posted: June 18th, 2013 at 12:06 pm
Last Updated on: November 1st, 2017 at 9:07 am