summaryrefslogtreecommitdiffstats
path: root/Doc/library/__main__.rst
Commit message (Collapse)AuthorAgeFilesLines
* [3.10] gh-102354: change python3 to python in docs examples (GH-102696) ↵Miss Islington (bot)2023-03-141-1/+1
| | | | | | | | (#102698) gh-102354: change python3 to python in docs examples (GH-102696) (cherry picked from commit 80abd62647b2a36947a11a6a8e395061be6f0c61) Co-authored-by: Paul Watson <paul.hermeneutic@gmail.com>
* Update __main__.rst (GH-30896) Miss Islington (bot)2022-02-141-1/+1
| | | | | | | | | The reference to `venv` appears in the paragraph below, instead of above. Fixed the documentation. (cherry picked from commit 4e4e7c2684b80350e82d82e4feeda5de24d362b9) Co-authored-by: David Gilbertson <gilbertson.david@gmail.com> Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
* bpo-45799: [Doc] improve confusing sentence in __main__.rst (GH-29546)Miss Islington (bot)2021-11-131-2/+2
| | | | | | | | I was reading this bit last night and thought it was a typo. In the light of day, I realized it wasn't *technically* a typo, but definitely confusing wording. This PR fixes the confusing sentence. Automerge-Triggered-By: GH:ericvsmith (cherry picked from commit f8da00ef04fdadf7cd9821e8ec4b317ecf3ed663) Co-authored-by: Jack DeVries <jdevries3133@gmail.com>
* bpo-39452: [doc] Change "must" to "can" on relative import style in ↵Miss Islington (bot)2021-11-061-1/+1
| | | | | | | `__main__` (GH-29379) (GH-29449) (cherry picked from commit 57457a1e5caf714034a75fe4f382b8b669ce6ed8) Co-authored-by: Andre Delfino <adelfino@gmail.com>
* bpo-39452: Rewrite and expand __main__.rst (GH-26883)Miss Islington (bot)2021-08-241-17/+360
| | | | | | | | | | Broadened scope of the document to explicitly discuss and differentiate between ``__main__.py`` in packages versus the ``__name__ == '__main__'`` expression (and the idioms that surround it), as well as ``import __main__``. Co-authored-by: Géry Ogam <gery.ogam@gmail.com> Co-authored-by: Éric Araujo <merwok@netwok.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl> (cherry picked from commit 7cba23164cf82f6619db002cd30021b5dfb1f809) Co-authored-by: Jack DeVries <58614260+jdevries3133@users.noreply.github.com>
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+2
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* Issue #21920: Add a missing colon to the __main__ doc.Berker Peksag2014-07-051-1/+1
| | | | Patch by Stefan Tatschner.
* #15104: add backtick code markup.R David Murray2014-04-141-7/+7
|
* #15104: improve the discussion of __main__.R David Murray2014-04-141-5/+11
| | | | Patch by Sam Lucidi.
* Move the 3k reST doc tree in place.Georg Brandl2007-08-151-0/+17