File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,8 @@ A small number of constants live in the built-in namespace. They are:
79
79
:exc: `SyntaxError `), so they can be considered "true" constants.
80
80
81
81
82
+ .. _site-consts :
83
+
82
84
Constants added by the :mod: `site ` module
83
85
-----------------------------------------
84
86
@@ -94,6 +96,13 @@ should not be used in programs.
94
96
(i.e. EOF) to exit", and when called, raise :exc: `SystemExit ` with the
95
97
specified exit code.
96
98
99
+ .. data :: help
100
+ :noindex:
101
+
102
+ Object that when printed, prints the message "Type help() for interactive
103
+ help, or help(object) for help about object.", and when called,
104
+ acts as described :func: `elsewhere <help> `.
105
+
97
106
.. data :: copyright
98
107
credits
99
108
Original file line number Diff line number Diff line change @@ -15,8 +15,9 @@ import can be suppressed using the interpreter's :option:`-S` option.
15
15
16
16
.. index :: triple: module; search; path
17
17
18
- Importing this module will append site-specific paths to the module search path
19
- and add a few builtins, unless :option: `-S ` was used. In that case, this module
18
+ Importing this module normally appends site-specific paths to the module search path
19
+ and adds :ref: `callables <site-consts >`, including :func: `help ` to the built-in
20
+ namespace. However, Python startup option :option: `-S ` blocks this and this module
20
21
can be safely imported with no automatic modifications to the module search path
21
22
or additions to the builtins. To explicitly trigger the usual site-specific
22
23
additions, call the :func: `main ` function.
You can’t perform that action at this time.
0 commit comments