| 1 |
{% extends "layout.html" %} |
| 2 |
{%- block htmltitle -%} |
| 3 |
<title>{{ shorttitle }}</title> |
| 4 |
{%- endblock -%} |
| 5 |
{%- block extrahead -%} |
| 6 |
{{ super() }} |
| 7 |
<meta property="og:title" content="Python {{ version }} documentation"> |
| 8 |
<meta property="og:type" content="website"> |
| 9 |
<meta property="og:url" content="https://docs.python.org/3/"> |
| 10 |
<meta property="og:site_name" content="Python documentation"> |
| 11 |
<meta property="og:description" content="The official Python documentation."> |
| 12 |
<meta property="og:image" content="https://docs.python.org/3/_static/og-image.png"> |
| 13 |
<meta name="description" content="The official Python documentation."> |
| 14 |
<meta property="og:image:width" content="200"> |
| 15 |
<meta property="og:image:height" content="200"> |
| 16 |
<meta name="theme-color" content="#3776ab"> |
| 17 |
<style> |
| 18 |
.contentstable { |
| 19 |
display: grid; |
| 20 |
gap: 0 2em; |
| 21 |
grid-template-columns: 1fr 1fr; |
| 22 |
margin: 0 auto; |
| 23 |
max-width: 90%; |
| 24 |
} |
| 25 |
.contentstable ul { |
| 26 |
list-style: none; |
| 27 |
margin: 0; |
| 28 |
padding: 0; |
| 29 |
} |
| 30 |
.contentstable a { |
| 31 |
text-decoration: none; |
| 32 |
} |
| 33 |
.contentstable a:hover { |
| 34 |
text-decoration: underline; |
| 35 |
} |
| 36 |
.contentstable li.biglink { |
| 37 |
line-height: 150%; |
| 38 |
margin-bottom: 1em; |
| 39 |
} |
| 40 |
@media (max-width: 600px) { |
| 41 |
.contentstable { |
| 42 |
grid-template-columns: 1fr; |
| 43 |
} |
| 44 |
} |
| 45 |
</style> |
| 46 |
{%- endblock -%} |
| 47 |
{% block body %} |
| 48 |
<h1>{{ docstitle|e }}</h1> |
| 49 |
<p> |
| 50 |
{% trans %}Welcome! This is the official documentation for Python {{ release }}.{% endtrans %} |
| 51 |
</p> |
| 52 |
<p><strong>{% trans %}Documentation sections:{% endtrans %}</strong></p> |
| 53 |
<div class="contentstable"> |
| 54 |
<ul> |
| 55 |
<li class="biglink"><a class="biglink" href="{{ pathto("whatsnew/" + version) }}">{% trans %}What's new in Python {{ version }}?{% endtrans %}</a><br> |
| 56 |
<span class="linkdescr"> {% trans whatsnew_index=pathto("whatsnew/index") %}Or <a href="{{ whatsnew_index }}">all "What's new" documents since Python 2.0</a>{% endtrans %}</span></li> |
| 57 |
<li class="biglink"><a class="biglink" href="{{ pathto("tutorial/index") }}">{% trans %}Tutorial{% endtrans %}</a><br> |
| 58 |
<span class="linkdescr">{% trans %}Start here: a tour of Python's syntax and features{% endtrans %}</span></li> |
| 59 |
<li class="biglink"><a class="biglink" href="{{ pathto("library/index") }}">{% trans %}Library reference{% endtrans %}</a><br> |
| 60 |
<span class="linkdescr">{% trans %}Standard library and builtins{% endtrans %}</span></li> |
| 61 |
<li class="biglink"><a class="biglink" href="{{ pathto("reference/index") }}">{% trans %}Language reference{% endtrans %}</a><br> |
| 62 |
<span class="linkdescr">{% trans %}Syntax and language elements{% endtrans %}</span></li> |
| 63 |
<li class="biglink"><a class="biglink" href="{{ pathto("using/index") }}">{% trans %}Python setup and usage{% endtrans %}</a><br> |
| 64 |
<span class="linkdescr">{% trans %}How to install, configure, and use Python{% endtrans %}</span></li> |
| 65 |
<li class="biglink"><a class="biglink" href="{{ pathto("howto/index") }}">{% trans %}Python HOWTOs{% endtrans %}</a><br> |
| 66 |
<span class="linkdescr">{% trans %}In-depth topic manuals{% endtrans %}</span></li> |
| 67 |
</ul> |
| 68 |
<ul> |
| 69 |
<li class="biglink"><a class="biglink" href="{{ pathto("installing/index") }}">{% trans %}Installing Python modules{% endtrans %}</a><br> |
| 70 |
<span class="linkdescr">{% trans %}Third-party modules and PyPI.org{% endtrans %}</span></li> |
| 71 |
<li class="biglink"><a class="biglink" href="{{ pathto("extending/index") }}">{% trans %}Extending and embedding{% endtrans %}</a><br> |
| 72 |
<span class="linkdescr">{% trans %}For C/C++ programmers{% endtrans %}</span></li> |
| 73 |
<li class="biglink"><a class="biglink" href="{{ pathto("c-api/index") }}">{% trans %}Python's C API{% endtrans %}</a><br> |
| 74 |
<span class="linkdescr">{% trans %}C API reference{% endtrans %}</span></li> |
| 75 |
<li class="biglink"><a class="biglink" href="{{ pathto("faq/index") }}">{% trans %}FAQs{% endtrans %}</a><br> |
| 76 |
<span class="linkdescr">{% trans %}Frequently asked questions (with answers!){% endtrans %}</span></li> |
| 77 |
<li class="biglink"><a class="biglink" href="{{ pathto("deprecations/index") }}">{% trans %}Deprecations{% endtrans %}</a><br> |
| 78 |
<span class="linkdescr">{% trans %}Deprecated functionality{% endtrans %}</span></li> |
| 79 |
</ul> |
| 80 |
</div> |
| 81 |
|
| 82 |
<p><strong>{% trans %}Other resources:{% endtrans %}</strong></p> |
| 83 |
<div class="contentstable"> |
| 84 |
<ul> |
| 85 |
<li class="biglink"><a class="biglink" href="https://packaging.python.org">{% trans %}Python Packaging User Guide{% endtrans %}</a><br> |
| 86 |
<span class="linkdescr">{% trans %}Resources relating to Python packaging{% endtrans %}</span></li> |
| 87 |
</ul> |
| 88 |
<ul> |
| 89 |
<li class="biglink"><a class="biglink" href="https://typing.python.org">{% trans %}Static Typing with Python{% endtrans %}</a><br> |
| 90 |
<span class="linkdescr">{% trans %}Information and guides about Python type safety{% endtrans %}</span></li> |
| 91 |
</ul> |
| 92 |
</div> |
| 93 |
|
| 94 |
<p><strong>{% trans %}Indices, glossary, and search:{% endtrans %}</strong></p> |
| 95 |
<div class="contentstable"> |
| 96 |
<ul> |
| 97 |
<li class="biglink"><a class="biglink" href="{{ pathto("py-modindex") }}">{% trans %}Global module index{% endtrans %}</a><br> |
| 98 |
<span class="linkdescr">{% trans %}All modules and libraries{% endtrans %}</span></li> |
| 99 |
<li class="biglink"><a class="biglink" href="{{ pathto("genindex") }}">{% trans %}General index{% endtrans %}</a><br> |
| 100 |
<span class="linkdescr">{% trans %}All functions, classes, and terms{% endtrans %}</span></li> |
| 101 |
<li class="biglink"><a class="biglink" href="{{ pathto("glossary") }}">{% trans %}Glossary{% endtrans %}</a><br> |
| 102 |
<span class="linkdescr">{% trans %}Terms explained{% endtrans %}</span></li> |
| 103 |
</ul> |
| 104 |
<ul> |
| 105 |
<li class="biglink"><a class="biglink" href="{{ pathto("search") }}">{% trans %}Search page{% endtrans %}</a><br> |
| 106 |
<span class="linkdescr">{% trans %}Search this documentation{% endtrans %}</span></li> |
| 107 |
<li class="biglink"><a class="biglink" href="{{ pathto("contents") }}">{% trans %}Complete table of contents{% endtrans %}</a><br> |
| 108 |
<span class="linkdescr">{% trans %}All sections and subsections{% endtrans %}</span></li> |
| 109 |
</ul> |
| 110 |
</div> |
| 111 |
|
| 112 |
<p><strong>{% trans %}Project information:{% endtrans %}</strong></p> |
| 113 |
<div class="contentstable"> |
| 114 |
<ul> |
| 115 |
<li class="biglink"><a class="biglink" href="{{ pathto("bugs") }}">{% trans %}Reporting issues{% endtrans %}</a></li> |
| 116 |
<li class="biglink"><a class="biglink" href="https://devguide.python.org/documentation/help-documenting/">{% trans %}Contributing to docs{% endtrans %}</a></li> |
| 117 |
<li class="biglink"><a class="biglink" href="{{ pathto("download") }}">{% trans %}Download the documentation{% endtrans %}</a></li> |
| 118 |
</ul> |
| 119 |
<ul> |
| 120 |
<li class="biglink"><a class="biglink" href="{{ pathto("license") }}">{% trans %}History and license of Python{% endtrans %}</a></li> |
| 121 |
<li class="biglink"><a class="biglink" href="{{ pathto("copyright") }}">{% trans %}Copyright{% endtrans %}</a></li> |
| 122 |
<li class="biglink"><a class="biglink" href="{{ pathto("about") }}">{% trans %}About the documentation{% endtrans %}</a></li> |
| 123 |
</ul> |
| 124 |
</div> |
| 125 |
{% endblock %} |