Host photos locally
@@ -3,7 +3,7 @@ Hitchhiker's Guide to Python
|
|||||||
|
|
||||||
**Python Best Practices Guidebook**
|
**Python Best Practices Guidebook**
|
||||||
|
|
||||||
.. image:: https://farm1.staticflickr.com/628/33173824932_58add34581_k_d.jpg
|
.. image:: /_static/photos/33173824932_58add34581_k_d.jpg
|
||||||
|
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|||||||
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 178 KiB |
|
After Width: | Height: | Size: 106 KiB |
|
After Width: | Height: | Size: 107 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 72 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 52 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 91 KiB |
|
After Width: | Height: | Size: 192 KiB |
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 167 KiB |
@@ -1,7 +1,7 @@
|
|||||||
Your Development Environment
|
Your Development Environment
|
||||||
============================
|
============================
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2930/33175624924_7febc46cc4_k_d.jpg
|
.. image:: /_static/photos/33175624924_7febc46cc4_k_d.jpg
|
||||||
|
|
||||||
|
|
||||||
Text Editors
|
Text Editors
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Further Configuration of Pip and Virtualenv
|
Further Configuration of Pip and Virtualenv
|
||||||
===========================================
|
===========================================
|
||||||
|
|
||||||
.. image:: https://farm4.staticflickr.com/3934/34018732105_f0e6758859_k_d.jpg
|
.. image:: /_static/photos/34018732105_f0e6758859_k_d.jpg
|
||||||
|
|
||||||
Requiring an active virtual environment for ``pip``
|
Requiring an active virtual environment for ``pip``
|
||||||
---------------------------------------------------
|
---------------------------------------------------
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Pipenv & Virtual Environments
|
Pipenv & Virtual Environments
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4290/35294660055_42c02b2316_k_d.jpg
|
.. image:: /_static/photos/35294660055_42c02b2316_k_d.jpg
|
||||||
|
|
||||||
This tutorial walks you through installing and using Python packages.
|
This tutorial walks you through installing and using Python packages.
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
The Community
|
The Community
|
||||||
=============
|
=============
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4225/34689432801_78d97ecec9_k_d.jpg
|
.. image:: /_static/photos/34689432801_78d97ecec9_k_d.jpg
|
||||||
|
|
||||||
BDFL
|
BDFL
|
||||||
----
|
----
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Documentation
|
Documentation
|
||||||
=============
|
=============
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4178/33928823133_2f3d32cf32_k_d.jpg
|
.. image:: /_static/photos/33928823133_2f3d32cf32_k_d.jpg
|
||||||
|
|
||||||
Official Documentation
|
Official Documentation
|
||||||
----------------------
|
----------------------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Introduction
|
Introduction
|
||||||
============
|
============
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4180/34725946825_0f85497e60_k_d.jpg
|
.. image:: /_static/photos/34725946825_0f85497e60_k_d.jpg
|
||||||
|
|
||||||
From the `official Python website <http://python.org/about/>`_:
|
From the `official Python website <http://python.org/about/>`_:
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Learning Python
|
Learning Python
|
||||||
===============
|
===============
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2840/32800783863_11a00db52c_k_d.jpg
|
.. image:: /_static/photos/32800783863_11a00db52c_k_d.jpg
|
||||||
|
|
||||||
Beginner
|
Beginner
|
||||||
--------
|
--------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
News
|
News
|
||||||
====
|
====
|
||||||
|
|
||||||
.. image:: https://farm4.staticflickr.com/3804/33573767786_eececc5d27_k_d.jpg
|
.. image:: /_static/photos/33573767786_eececc5d27_k_d.jpg
|
||||||
|
|
||||||
Planet Python
|
Planet Python
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Contribute
|
Contribute
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2858/33573769116_49c1ef51e7_k_d.jpg
|
.. image:: /_static/photos/33573769116_49c1ef51e7_k_d.jpg
|
||||||
|
|
||||||
Python-guide is under active development, and contributors are welcome.
|
Python-guide is under active development, and contributors are welcome.
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
License
|
License
|
||||||
=======
|
=======
|
||||||
|
|
||||||
.. image:: https://farm4.staticflickr.com/3762/32800805573_568d6b72fd_k_d.jpg
|
.. image:: /_static/photos/32800805573_568d6b72fd_k_d.jpg
|
||||||
|
|
||||||
The Guide is licensed under the `Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported license <https://creativecommons.org/licenses/by-nc-sa/3.0/>`_.
|
The Guide is licensed under the `Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported license <https://creativecommons.org/licenses/by-nc-sa/3.0/>`_.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
The Guide Style Guide
|
The Guide Style Guide
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
.. image:: https://farm4.staticflickr.com/3684/33573755856_7f43d43adf_k_d.jpg
|
.. image:: /_static/photos/33573755856_7f43d43adf_k_d.jpg
|
||||||
|
|
||||||
As with all documentation, having a consistent format helps make the
|
As with all documentation, having a consistent format helps make the
|
||||||
document more understandable. In order to make The Guide easier to digest,
|
document more understandable. In order to make The Guide easier to digest,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Systems Administration
|
Systems Administration
|
||||||
======================
|
======================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4179/34435690580_3afec7d4cd_k_d.jpg
|
.. image:: /_static/photos/34435690580_3afec7d4cd_k_d.jpg
|
||||||
|
|
||||||
Fabric
|
Fabric
|
||||||
------
|
------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Continuous Integration
|
Continuous Integration
|
||||||
======================
|
======================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4173/33907150594_9abba7ad0a_k_d.jpg
|
.. image:: /_static/photos/33907150594_9abba7ad0a_k_d.jpg
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
For advice on writing your tests, see :doc:`/writing/tests`.
|
For advice on writing your tests, see :doc:`/writing/tests`.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Command-line Applications
|
Command-line Applications
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4272/34435690330_11930b5987_k_d.jpg
|
.. image:: /_static/photos/34435690330_11930b5987_k_d.jpg
|
||||||
|
|
||||||
Command-line applications, also referred to as
|
Command-line applications, also referred to as
|
||||||
`Console Applications <http://en.wikipedia.org/wiki/Console_application>`_,
|
`Console Applications <http://en.wikipedia.org/wiki/Console_application>`_,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Interfacing with C/C++ Libraries
|
Interfacing with C/C++ Libraries
|
||||||
================================
|
================================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4173/34725951345_c8f5959a2e_k_d.jpg
|
.. image:: /_static/photos/34725951345_c8f5959a2e_k_d.jpg
|
||||||
|
|
||||||
C Foreign Function Interface
|
C Foreign Function Interface
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Network Applications
|
Network Applications
|
||||||
====================
|
====================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4251/34364815780_bea6614025_k_d.jpg
|
.. image:: /_static/photos/34364815780_bea6614025_k_d.jpg
|
||||||
|
|
||||||
HTTP
|
HTTP
|
||||||
::::
|
::::
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Cryptography
|
Cryptography
|
||||||
============
|
============
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4220/33907152824_bf91078cc1_k_d.jpg
|
.. image:: /_static/photos/33907152824_bf91078cc1_k_d.jpg
|
||||||
|
|
||||||
Cryptography
|
Cryptography
|
||||||
------------
|
------------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Databases
|
Databases
|
||||||
=========
|
=========
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4225/33907152464_a99fdcc8de_k_d.jpg
|
.. image:: /_static/photos/33907152464_a99fdcc8de_k_d.jpg
|
||||||
|
|
||||||
DB-API
|
DB-API
|
||||||
------
|
------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
GUI Applications
|
GUI Applications
|
||||||
================
|
================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4250/33907143624_cd621b535c_k_d.jpg
|
.. image:: /_static/photos/33907143624_cd621b535c_k_d.jpg
|
||||||
|
|
||||||
|
|
||||||
Alphabetical list of GUI Applications.
|
Alphabetical list of GUI Applications.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Image Manipulation
|
Image Manipulation
|
||||||
==================
|
==================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4157/34575689432_3de8e9a348_k_d.jpg
|
.. image:: /_static/photos/34575689432_3de8e9a348_k_d.jpg
|
||||||
|
|
||||||
Most image processing and manipulation techniques can be carried out
|
Most image processing and manipulation techniques can be carried out
|
||||||
effectively using two libraries: Python Imaging Library (PIL) and OpenSource
|
effectively using two libraries: Python Imaging Library (PIL) and OpenSource
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
JSON
|
JSON
|
||||||
====
|
====
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4174/33928819683_97b5c6a184_k_d.jpg
|
.. image:: /_static/photos/33928819683_97b5c6a184_k_d.jpg
|
||||||
|
|
||||||
The `json <https://docs.python.org/2/library/json.html>`_ library can parse
|
The `json <https://docs.python.org/2/library/json.html>`_ library can parse
|
||||||
JSON from strings or files. The library parses JSON into a Python dictionary
|
JSON from strings or files. The library parses JSON into a Python dictionary
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Machine Learning
|
Machine Learning
|
||||||
================
|
================
|
||||||
|
|
||||||
.. image:: https://farm4.staticflickr.com/3954/34018729885_002ced9b54_k_d.jpg
|
.. image:: /_static/photos/34018729885_002ced9b54_k_d.jpg
|
||||||
|
|
||||||
Python has a vast number of libraries for data analysis, statistics and Machine Learning itself, making it a language of choice for many data scientists.
|
Python has a vast number of libraries for data analysis, statistics and Machine Learning itself, making it a language of choice for many data scientists.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Networking
|
Networking
|
||||||
==========
|
==========
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2892/34151833832_6bdfd930af_k_d.jpg
|
.. image:: /_static/photos/34151833832_6bdfd930af_k_d.jpg
|
||||||
|
|
||||||
Twisted
|
Twisted
|
||||||
-------
|
-------
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Scientific Applications
|
Scientific Applications
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2890/33925223870_97e44f5629_k_d.jpg
|
.. image:: /_static/photos/33925223870_97e44f5629_k_d.jpg
|
||||||
|
|
||||||
Context
|
Context
|
||||||
:::::::
|
:::::::
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
HTML Scraping
|
HTML Scraping
|
||||||
=============
|
=============
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2900/34268661876_442428e122_k_d.jpg
|
.. image:: /_static/photos/34268661876_442428e122_k_d.jpg
|
||||||
|
|
||||||
Web Scraping
|
Web Scraping
|
||||||
------------
|
------------
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Data Serialization
|
Data Serialization
|
||||||
==================
|
==================
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2927/33467946364_3e59bd376a_k_d.jpg
|
.. image:: /_static/photos/33467946364_3e59bd376a_k_d.jpg
|
||||||
|
|
||||||
What is data serialization?
|
What is data serialization?
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Speed
|
Speed
|
||||||
=====
|
=====
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2826/33175625804_e225b90f3e_k_d.jpg
|
.. image:: /_static/photos/33175625804_e225b90f3e_k_d.jpg
|
||||||
|
|
||||||
CPython, the most commonly used implementation of Python, is slow for CPU bound
|
CPython, the most commonly used implementation of Python, is slow for CPU bound
|
||||||
tasks. `PyPy`_ is fast.
|
tasks. `PyPy`_ is fast.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Web Applications & Frameworks
|
Web Applications & Frameworks
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2891/34309496175_b82d104282_k_d.jpg
|
.. image:: /_static/photos/34309496175_b82d104282_k_d.jpg
|
||||||
|
|
||||||
As a powerful scripting language adapted to both fast prototyping
|
As a powerful scripting language adapted to both fast prototyping
|
||||||
and bigger projects, Python is widely used in web application
|
and bigger projects, Python is widely used in web application
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
XML parsing
|
XML parsing
|
||||||
===========
|
===========
|
||||||
|
|
||||||
.. image:: https://farm3.staticflickr.com/2808/33888714601_a1f7d020a2_k_d.jpg
|
.. image:: /_static/photos/33888714601_a1f7d020a2_k_d.jpg
|
||||||
|
|
||||||
untangle
|
untangle
|
||||||
--------
|
--------
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
Freezing Your Code
|
Freezing Your Code
|
||||||
==================
|
==================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4227/33907151034_e0a9e53402_k_d.jpg
|
.. image:: /_static/photos/33907151034_e0a9e53402_k_d.jpg
|
||||||
|
|
||||||
"Freezing" your code is creating a single-file executable file to distribute
|
"Freezing" your code is creating a single-file executable file to distribute
|
||||||
to end-users, that contains all of your application code as well as the
|
to end-users, that contains all of your application code as well as the
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
Packaging Your Code
|
Packaging Your Code
|
||||||
===================
|
===================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4325/36137234682_be6898bf57_k_d.jpg
|
.. image:: /_static/photos/36137234682_be6898bf57_k_d.jpg
|
||||||
|
|
||||||
Package your code to share it with other developers. For example
|
Package your code to share it with other developers. For example
|
||||||
to share a library for other developers to use in their application,
|
to share a library for other developers to use in their application,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Installing Python 2 on Linux
|
Installing Python 2 on Linux
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4268/34435688560_4cc2a7bcbb_k_d.jpg
|
.. image:: /_static/photos/34435688560_4cc2a7bcbb_k_d.jpg
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
Check out our :ref:`guide for installing Python 3 on Linux<install3-linux>`.
|
Check out our :ref:`guide for installing Python 3 on Linux<install3-linux>`.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Installing Python 2 on Mac OS X
|
Installing Python 2 on Mac OS X
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4268/34435688560_4cc2a7bcbb_k_d.jpg
|
.. image:: /_static/photos/34435688560_4cc2a7bcbb_k_d.jpg
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
Check out our :ref:`guide for installing Python 3 on OS X<install3-osx>`.
|
Check out our :ref:`guide for installing Python 3 on OS X<install3-osx>`.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Installing Python 2 on Windows
|
Installing Python 2 on Windows
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4268/34435688560_4cc2a7bcbb_k_d.jpg
|
.. image:: /_static/photos/34435688560_4cc2a7bcbb_k_d.jpg
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
Check out our :ref:`guide for installing Python 3 on Windows<install3-windows>`.
|
Check out our :ref:`guide for installing Python 3 on Windows<install3-windows>`.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Installing Python 3 on Linux
|
Installing Python 3 on Linux
|
||||||
============================
|
============================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4276/34435689480_2e6f358510_k_d.jpg
|
.. image:: /_static/photos/34435689480_2e6f358510_k_d.jpg
|
||||||
|
|
||||||
This document describes how to install Python 3.6 on Ubuntu Linux machines.
|
This document describes how to install Python 3.6 on Ubuntu Linux machines.
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
Installing Python 3 on Mac OS X
|
Installing Python 3 on Mac OS X
|
||||||
===============================
|
===============================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4276/34435689480_2e6f358510_k_d.jpg
|
.. image:: /_static/photos/34435689480_2e6f358510_k_d.jpg
|
||||||
|
|
||||||
The latest version of Mac OS X, High Sierra, **comes with Python 2.7 out of the box**.
|
The latest version of Mac OS X, High Sierra, **comes with Python 2.7 out of the box**.
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Installing Python 3 on Windows
|
Installing Python 3 on Windows
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4276/34435689480_2e6f358510_k_d.jpg
|
.. image:: /_static/photos/34435689480_2e6f358510_k_d.jpg
|
||||||
|
|
||||||
First, follow the installation instructions for `Chocolatey <https://chocolatey.org/install>`_.
|
First, follow the installation instructions for `Chocolatey <https://chocolatey.org/install>`_.
|
||||||
It's a community system packager manager for Windows 7+. (It's very much like Homebrew on OSX.)
|
It's a community system packager manager for Windows 7+. (It's very much like Homebrew on OSX.)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Properly Installing Python
|
Properly Installing Python
|
||||||
==========================
|
==========================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4303/36137232412_fdcb0f84eb_k_d.jpg
|
.. image:: /_static/photos/36137232412_fdcb0f84eb_k_d.jpg
|
||||||
|
|
||||||
There's a good chance that you already have Python on your operating system.
|
There's a good chance that you already have Python on your operating system.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Picking an Python Interpreter (3 vs. 2)
|
Picking an Python Interpreter (3 vs. 2)
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4265/34484834733_5b80f65ab1_k_d.jpg
|
.. image:: /_static/photos/34484834733_5b80f65ab1_k_d.jpg
|
||||||
|
|
||||||
.. _which-python:
|
.. _which-python:
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Documentation
|
Documentation
|
||||||
=============
|
=============
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4279/35620636012_f66aa88f93_k_d.jpg
|
.. image:: /_static/photos/35620636012_f66aa88f93_k_d.jpg
|
||||||
|
|
||||||
Readability is a primary focus for Python developers, in both project
|
Readability is a primary focus for Python developers, in both project
|
||||||
and code documentation. Following some simple best practices can save
|
and code documentation. Following some simple best practices can save
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Common Gotchas
|
Common Gotchas
|
||||||
==============
|
==============
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4163/34435688380_b5a740762b_k_d.jpg
|
.. image:: /_static/photos/34435688380_b5a740762b_k_d.jpg
|
||||||
|
|
||||||
For the most part, Python aims to be a clean and consistent language that
|
For the most part, Python aims to be a clean and consistent language that
|
||||||
avoids surprises. However, there are a few cases that can be confusing to
|
avoids surprises. However, there are a few cases that can be confusing to
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Choosing a License
|
Choosing a License
|
||||||
==================
|
==================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4228/33907149294_82d7535a6c_k_d.jpg
|
.. image:: /_static/photos/33907149294_82d7535a6c_k_d.jpg
|
||||||
|
|
||||||
Your source publication *needs* a license. In the US, if no license is
|
Your source publication *needs* a license. In the US, if no license is
|
||||||
specified, users have no legal right to download, modify, or distribute.
|
specified, users have no legal right to download, modify, or distribute.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Logging
|
Logging
|
||||||
=======
|
=======
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4246/35254379756_c9fe23f843_k_d.jpg
|
.. image:: /_static/photos/35254379756_c9fe23f843_k_d.jpg
|
||||||
|
|
||||||
The :mod:`logging` module has been a part of Python's Standard Library since
|
The :mod:`logging` module has been a part of Python's Standard Library since
|
||||||
version 2.3. It is succinctly described in :pep:`282`. The documentation
|
version 2.3. It is succinctly described in :pep:`282`. The documentation
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Reading Great Code
|
Reading Great Code
|
||||||
==================
|
==================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4221/34689452831_93d7fd0571_k_d.jpg
|
.. image:: /_static/photos/34689452831_93d7fd0571_k_d.jpg
|
||||||
|
|
||||||
One of the core tenets behind the design of Python is creating
|
One of the core tenets behind the design of Python is creating
|
||||||
readable code. The motivation behind this design is simple: The number
|
readable code. The motivation behind this design is simple: The number
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Structuring Your Project
|
Structuring Your Project
|
||||||
========================
|
========================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4203/33907151224_0574e7dfc2_k_d.jpg
|
.. image:: /_static/photos/33907151224_0574e7dfc2_k_d.jpg
|
||||||
|
|
||||||
By "structure" we mean the decisions you make concerning
|
By "structure" we mean the decisions you make concerning
|
||||||
how your project best meets its objective. We need to consider how to
|
how your project best meets its objective. We need to consider how to
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Code Style
|
Code Style
|
||||||
==========
|
==========
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4223/33907150054_5ee79e8940_k_d.jpg
|
.. image:: /_static/photos/33907150054_5ee79e8940_k_d.jpg
|
||||||
|
|
||||||
If you ask Python programmers what they like most about Python, they will
|
If you ask Python programmers what they like most about Python, they will
|
||||||
often cite its high readability. Indeed, a high level of readability
|
often cite its high readability. Indeed, a high level of readability
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Testing Your Code
|
Testing Your Code
|
||||||
=================
|
=================
|
||||||
|
|
||||||
.. image:: https://farm5.staticflickr.com/4166/34435687940_8f73fc1fa6_k_d.jpg
|
.. image:: /_static/photos/34435687940_8f73fc1fa6_k_d.jpg
|
||||||
|
|
||||||
Testing your code is very important.
|
Testing your code is very important.
|
||||||
|
|
||||||
|
|||||||