Python guide 1 Python Guide Documentation Release Kenneth Reitz September C CContents Getting Started Picking an Interpreter Installing Python on Mac OS X Installing Python on Windows Installing Python on Linux Writing Great Code Structuring Your Project
Python Guide Documentation Release Kenneth Reitz September C CContents Getting Started Picking an Interpreter Installing Python on Mac OS X Installing Python on Windows Installing Python on Linux Writing Great Code Structuring Your Project Code Style Reading Great Code Documentation Testing Your Code Common Gotchas Choosing a License Scenario Guide Network Applications Web Applications HTML Scraping Command-line Applications GUI Applications Databases Networking Systems Administration Continuous Integration Speed Scienti ?c Applications Image Manipulation XML parsing Cryptography Shipping Great Code Packaging Your Code Freezing Your Code Development Environment Your Development Environment Virtual Environments i C Additional Notes Introduction The Community Learning Python Documentation News Contribute License The Guide Style Guide ii CPython Guide Documentation Release Welcome to The Hitchhiker ? s Guide to Python This guide is currently under heavy active development If you ? d like to help fork us on GitHub This opinionated guide exists to provide both novice and expert Python developers a best-practice handbook to the installation con ?guration and usage of Python on a daily basis Contents CPython Guide Documentation Release Contents CCHAPTER Getting Started This part of the guide focuses on setting up your Python environment Picking an Interpreter Today Python If you ? re choosing a Python interpreter to use I highly recommend you use Python x unless you have a strong reason not to Also use Python x if you ? re starting to work on a new Python module If you have managed to get it working on you can add support for older x versions The Future Python Python x is the status quo Python x is the shiny new thing Further Reading The di ?erence between Python and Python is much greater therefore writing code that works in both Python and Python is a very complicated process It is possible to write code that works on Python and This ranges from tricky to extremely hard depending upon the kind of software you are writing if you ? re a beginner there are far more important things to worry about Implementations When people speak of Python they often mean not just the language but also the CPython implementation Python is actually a speci ?cation for a language that can be implemented in many di ?erent ways CPython CPython is the reference implementation of Python written in C It compiles Python code to intermediate bytecode which is then interpreted by a virtual machine CPython provides the highest level of compatibility with Python packages and C extension modules If you are writing open-source Python code and want to reach the widest possible audience targeting CPython is best To use packages which rely on C extensions to function CPython is your only implementation option CPython Guide Documentation Release All versions of the Python language are implemented in C because CPython is the reference implementation PyPy PyPy is a Python interpreter implemented in a restricted statically-typed subset of the Python language called RPython The interpreter features a just-in-time compiler and supports multiple back-ends C CLI JVM
Documents similaires
-
336
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise- Détails
- Publié le Mar 31, 2022
- Catégorie Law / Droit
- Langue French
- Taille du fichier 322.7kB