summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-120452: improve documentation about private name mangling ↵Miss Islington (bot)2024-07-131-0/+5
| | | | | | | | | (GH-120451) (#121715) gh-120452: improve documentation about private name mangling (GH-120451) (cherry picked from commit f4d6e45c1e7161878b36ef9e876ca3e44b80a97d) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.13] gh-120345: Fix incorrect use of the :class: role with the "()" suffix ↵Miss Islington (bot)2024-06-121-2/+2
| | | | | | | | | | (GH-120347) (GH-120411) * Remove "()" when refer to a class as a type. * Use :func: when refer to a callable. * Fix reference to the datetime.astimezone() method. (cherry picked from commit 92c9c6ae147e1e658bbc8d454f8c7b2c4dea31d1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.13] gh-110383: Improve 'old string formatting' text in tutorial ↵Miss Islington (bot)2024-06-071-3/+5
| | | | | | | (GH-120219) (#120229) (cherry picked from commit 225aab7f70d804174cc3a75bc04a5bb1545e5adb) Co-authored-by: Erlend E. Aasland <erlend@python.org>
* [3.13] gh-119016: Remove outdated sentences from the "classes" tutorial ↵Miss Islington (bot)2024-06-011-5/+1
| | | | | | | (GH-119130) (#119925) Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
* [3.13] docs: fix a few typos identified by codespell (GH-119516) (#119570)Miss Islington (bot)2024-05-261-1/+1
| | | | Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* [3.13] GH-110383: Improve Tutorial for Input Ouput (GH-119230) (GH-119326)Miss Islington (bot)2024-05-211-4/+16
| | | | | | | | GH-110383: Improve Tutorial for Input Ouput (GH-119230) (cherry picked from commit 9db2fd7edaa9d03e8c649c3bb0e8d963233cde22) Co-authored-by: Blaise Pabon <blaise@gmail.com> Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
* [3.13] gh-119078: Clarify venv tutorial (GH-119129) (GH-119142)Miss Islington (bot)2024-05-181-4/+4
| | | (cherry picked from commit 0f5e8bed636c2f29701e5a1965d1b088d33abbf0)
* [3.13] Format None, True, False and NotImplemented as literals (GH-118758) ↵Miss Islington (bot)2024-05-081-1/+1
| | | | | | | (GH-118792) (cherry picked from commit 05c2fe1acda9ea5a57061642c36e8b73bb4fbba4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Remove Python 3.5 hardcoded version in the tutorial appendix (GH-117612)Kerim Kabirov2024-05-071-2/+2
|
* gh-111201: A new Python REPL (GH-111567)Pablo Galindo Salgado2024-05-051-0/+22
| | | | | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* Add 'The Python 2.3 Method Resolution Order' (#116435)Hugo van Kemenade2024-04-151-1/+1
|
* gh-117597: Clarify exception handling in the tutorial (#117681)Nice Zombies2024-04-091-3/+3
|
* gh-116563: Update tutorial error example (#116569)Terry Jan Reedy2024-03-111-4/+4
| | | | | There now may be multiple carets pointing at a token rather than just a character. Fix the sentence about possible causes.
* GH-116271 Docs: provide clarification for object assignments in the Tutorial ↵Kerim Kabirov2024-03-041-7/+24
| | | | | | | section (#116283) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Docs: Use substitutions instead of manual version updates (#115416)Hugo van Kemenade2024-02-143-4/+4
|
* gh-114648: Add IndexError exception to tutorial datastructures list.pop ↵srinivasan2024-02-011-4/+3
| | | | | | entry (#114681) Remove redundant explanation of optional argument.
* gh-114069: Revise Tutorial Methods paragraph (#114127)Terry Jan Reedy2024-01-161-6/+5
| | | Remove excess words in the first and third sentences.
* Tutorial: Clarify 'nonzero exit status' in the appendix (#112039)Andrew Zipperer2024-01-121-1/+1
|
* gh-113208: Mention namespace packages don't require __init__.py (#113209)Unique-Usman2023-12-191-1/+2
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-113113: doc: use less ambiguously named variable (gh-113114)jeremy-dolan2023-12-141-3/+3
|
* gh-101100: Improve documentation for attributes on instance methods (#112832)Alex Waygood2023-12-081-2/+4
|
* Fix link to 'The Perils of Floating Point', on the tutorial (GH-112499)Marco Aurélio A. Barbosa2023-12-031-1/+1
| | | Use author link to 'The Perils of Floating Point'.
* gh-110383: Explained which error message is generated when there is an ↵Unique-Usman2023-11-191-2/+1
| | | | | | unhandled exception (#111574) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* Add detail to comment on range of random.random() (gh-111868)zipperer2023-11-091-1/+1
| | | | | --------- Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* gh-111406: Fix broken link to bpython's site (#111407)Zack Cerza2023-10-271-1/+1
|
* gh-101100: Fix Sphinx warning in `tutorial/introduction.rst` (#111173)Maciej Olko2023-10-221-1/+1
|
* gh-110534 fix a URL redirect to wikipedia article on Fibonacci numbers (#110535)partev2023-10-091-1/+1
|
* Update floatingpoint.rst (#110509)zipperer2023-10-081-1/+1
| | | | | | | | | | | This commit removes a ':'. I believe the extra colon causes a display error. What I believe to be an error: Above this expression `round(math.pi, ndigits=2) == round(22 / 7, ndigits=2)` the page displays `.. doctest::`. What I observed: After I remove the extra colon, the page does not display `.. doctest::`
* gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` (#109424)Maciej Olko2023-09-291-2/+2
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `tutorial/appendix.rst` (#108750)Nikita Sobolev2023-09-011-4/+4
| | | Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-101100: Fix sphinx warnings in `tutorial/classes.rst` (#108746)Nikita Sobolev2023-09-011-1/+1
|
* Improve references in the tutorial (GH-108069)Serhiy Storchaka2023-08-215-47/+48
| | | | | * Use full qualified names for references (even if they do not work now, they will work in future). * Silence references to examples.
* GH-107987: Remove the Distributing Python Modules guide (#108016)Adam Turner2023-08-171-1/+3
|
* gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386)Serhiy Storchaka2023-07-292-3/+3
|
* gh-107017: Change Chapter Strings to Texts in the Introduction chapter. ↵TommyUnreal2023-07-241-20/+20
| | | | | | (#107104) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-107017: Analolgy to Pascal and C replaced. (#107025)TommyUnreal2023-07-231-2/+2
| | | | Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-71261: Add paragraph on shadowing submodules with star imports (#107004)wulmer2023-07-231-0/+16
|
* gh-107017: removed mention that C does it the same way (#107020)Jakub Červinka2023-07-231-8/+15
|
* Reformat code block to make it easier to read (#106965)Joe Kaufeld2023-07-221-5/+14
|
* gh-106780: Add __match_args__ to tutorial example (#106784)Terry Jan Reedy2023-07-171-1/+7
| | | | | Add Point definition with this attribute before example that needs it.
* gh-106625 : Add missing code to tutorial 4.6 example (#106623)RustyNail2023-07-111-2/+3
| | | | | | | | | | | | | | | * Added missing import statement. * Update Doc/tutorial/controlflow.rst * Update Doc/tutorial/controlflow.rst * Update controlflow.rst * Make point regular class with __init__. --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Doc: Add missing ref labels to exception groups/notes sections (#106465)C.A.M. Gerlach2023-07-061-0/+2
|
* gh-104479: Update outdated tutorial floating-point reference (#104681)Mark Dickinson2023-05-261-10/+13
|
* Python 3.13.0a0Thomas Wouters2023-05-221-5/+5
|
* GH-97950: Use new-style index directive ('builtin') (#104164)Adam Turner2023-05-062-2/+2
| | | | | | | | | | | | | * Uncomment builtin removal in pairindextypes * Use new-style index directive ('builtin') - C API * Use new-style index directive ('builtin') - Extending * Use new-style index directive ('builtin') - Library * Use new-style index directive ('builtin') - Reference * Use new-style index directive ('builtin') - Tutorial
* GH-97950: Use new-style index directive ('statement') (#104162)Adam Turner2023-05-041-1/+1
|
* GH-97950: Use new-style index directive ('object') (#104158)Adam Turner2023-05-042-2/+2
| | | | | | | | | | | * Uncomment object removal in pairindextypes * Use new-style index directive ('object') - C API * Use new-style index directive ('object') - Library * Use new-style index directive ('object') - Reference * Use new-style index directive ('object') - Tutorial
* GH-97950: Use new-style index directive ('module') (#103996)Adam Turner2023-05-042-3/+3
| | | | | | | | | | | | | | | | | * Use new-style index directive ('module') - C API * Use new-style index directive ('module') - Library * Use new-style index directive ('module') - Reference * Use new-style index directive ('module') - Tutorial * Uncomment module removal in pairindextypes * Use new-style index directive ('module') - C API * Use new-style index directive ('module') - Library * Use new-style index directive ('module') - Reference
* [doc] Fix error in tutorial example: type(exc) is the type rather than the ↵Jens-Hilmar Bradt2023-03-221-1/+1
| | | | instance (#102751)
* gh-102703: Fix typo in modules tutorial documentation (GH-102707)Robert Prater (B. Eng)2023-03-151-1/+1
| | | | | | | | | **Before** This prevents directories with a common name, such as ``string``, unintentionally hiding ... **After** This prevents directories with a common name, such as ``string``, from unintentionally hiding ...