Skip to content

Corrected inaccuracies in boilerplate index.rst #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions source/docs/boilerplate/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
Boilerplate
===========

`if __name__ == '__main__': main()`_
Prevents main() from being executed during imports.
`#!/usr/bin/env/python`_
UNIX specific.
Searches the executable PATH for a Python executable.
`#!/usr/local/bin/python`_
UNIX specific.
For Python executables not managed by a distribution package manager.
`#!/usr/bin/python`_
UNIX specific.
The default Python will be located and used.
`# -*- coding: utf-8 -*-`_
Declares usage of UTF-8 characters in the script.
Declares usage of UTF-8 characters in the script.
`if __name__ == '__main__': main()`_
Prevents main() from being executed during imports.