https://github.com/cirosantilli/python-cheat
MOVING TO https://cirosantilli.com/linux-kernel-module-cheat#python See README. Python minimal examples. Asserts used wherever possible. Tested on Ubuntu 18.04.
https://github.com/cirosantilli/python-cheat
Last synced: 11 months ago
JSON representation
MOVING TO https://cirosantilli.com/linux-kernel-module-cheat#python See README. Python minimal examples. Asserts used wherever possible. Tested on Ubuntu 18.04.
- Host: GitHub
- URL: https://github.com/cirosantilli/python-cheat
- Owner: cirosantilli
- Created: 2014-03-26T16:16:22.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-10-24T08:43:37.000Z (about 5 years ago)
- Last Synced: 2025-01-02T23:46:52.405Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 411 KB
- Stars: 47
- Watchers: 3
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Python Cheat 
This repo is in the process of moving to: https://cirosantilli.com/linux-kernel-module-cheat#python
The move will be done progressively as examples are needed there, and no new content will be added here.
[](https://travis-ci.org/cirosantilli/python-cheat)
Python minimal examples. Asserts used wherever possible. Tested in Ubuntu 18.04.
1. [Getting started](getting-started.md)
1. Introduction
1. [Implementations](implementations.md)
1. [python utility](python-utility.md)
1. [Style guides](style-guides.md)
1. [Pros and cons](pros-and-cons.md)
1. [How to hack Python projects](how-to-hack-python-projects.md)
1. Meta
1. [test](test)
1. Language
1. [Functions](function.py)
1. [lambda](lambda.py)
1. [keyword-only argument](keyword_only.py)
1. [Built-in functions](builtin_functions.py)
1. [class](class.py)
1. [Special methods](special_methods.py)
1. [__slots__](slots.py)
1. [issubclass](issubclass.py)
1. [__class__](class_attribute.py)
1. [Exception](exception.py)
1. [Decorator](decorator.py)
1. [Exception](exception.py)
1. [Iterator](iterator.py)
1. Data types
1. Built-in types
1. [Number](number.py)
1. [dict](dict_cheat.py)
1. [frozenset](frozenset.py)
1. [list](list.py)
1. [set](set.py)
1. [String](string_cheat.py)
1. [format()](format_method.py)
1. [Format operator %](format_operator.py)
1. [tuple](tuple.py)
1. [Multi-file operations](multifile/): `import`, modules, `imp`
1. [import_cheat](import_cheat/)
1. [Operators](operators.py)
1. [Python 3](python3/)
1. Cross-language
1. [C from Python](c_from_py/)
1. [Python from C](py_from_c/)
1. [py_from_c/eval.c](py_from_c/eval.c)
1. Pure embedding
1. [pure.py](pure.py)
1. [pure.c](pure.c)
1. [py_from_c/test](py_from_c/test)
1. Standard library
1. [argparse](argparse_cheat.py)
1. [bisect](bisect_cheat.py)
1. [collections](collections_cheat.py)
1. curses
1. [curses/collision.py](curses/collision.py)
1. [datetime](datetime_cheat.py)
1. [expat](expat_cheat.py)
1. [fileinput](fileinput/)
1. [logging](logging_cheat.py)
1. [math](math_cheat.py)
1. [optparse](optparse_cheat.py)
1. [os](os_cheat.py)
1. [environ](environ.py)
1. [path](path_cheat.py)
1. [pickle](pickle_cheat.py)
1. [random](random_cheat.py)
1. [re](re_cheat.py)
1. [sqlite3](sqlite3.py)
1. [sys](sys_cheat.py)
1. [tempfile](tempfile_cheat.py)
1. [termcolor](termcolor_cheat.py)
1. [time](time_cheat.py)
1. [tk](tk.py)
1. [unittest](unittest_cheat.py)
1. Networking
1. [SimpleHTTPServer](simplehttpserver_cheat.py)
1. [smtplib](smtplib_cheat.py)
1. [urllib2](urllib2_cheat.py)
1. [wsgi](wsgi.py)
1. Multi-thread
1. [subprocess](subprocess_cheat/)
1. [Multi threading hello world](thread_hello.py)
1. [Multi threading adder](thread_add.py)
1. [Thread CPU bound vs IO bound](thread_cpu_bound.py)
1. [Limit the number of threads](thread_limit.py)
1. concurrent
1. [concurrent map](concurrent_map.py)
1. [concurrent map exception](concurrent_map_exception.py)
1. [concurrent submit](concurrent_submit.py)
1. Third party
1. Pexpect
1. [pexpect/python_test.py](pexpect/python_test.py)
1. [pip](pip.md)
1. [sphinx](sphinx/)
1. [trac](trac.md)
1. [urllib2](urllib2_cheat.py)
1. [virtualenv](virtualenv/)
1. [waf](waf/)
1. [wsgi](wsgi.py)
1. Scientific
1. [NumPy](numpy_cheat.py)
1. [SciPy](scipy_cheat.py)
1. [SimPy](simpy_cheat.py)
1. [matplotlib](matplotlib.md). Moving to https://cirosantilli.com#matplotlib
1. [jupyter](jupyter/)
1. [pandas](pandas_cheat.py)
1. [h5py](h5py_cheat.py) HDF5
1. [Interactive friendly](interactive-friendly.md)
1. [ipython](ipython.ipy)
1. Packaging
1. [distutils](distutils_cheat/)
1. [setuptools](setuptools_cheat/)
1. [Bibliography](bibliography.md)
1. [CONTRIBUTING](CONTRIBUTING.md)