Debian Codegraph @

pypy/doc/man/pypy3.1.rst

raw
1 =======
2 pypy3
3 =======
4
5 .. note: this is turned into a regular man page "pypy3.1" by
6 doing "make man" in pypy/doc/
7
8 SYNOPSIS
9 ========
10
11 ``pypy3`` [*options*]
12 [``-c`` *cmd*\ \|\ ``-m`` *mod*\ \|\ *file.py*\ \|\ ``-``\ ]
13 [*arg*\ ...]
14
15 OPTIONS
16 =======
17
18 -i
19 Inspect interactively after running script.
20
21 -O
22 Skip assert statements.
23
24 -OO
25 Remove docstrings when importing modules in addition to ``-O``.
26
27 -c CMD
28 Program passed in as ``CMD`` (terminates option list).
29
30 -S
31 Do not ``import site`` on initialization.
32
33 -s
34 Don't add the user site directory to `sys.path`.
35
36 -u
37 Unbuffered binary ``stdout`` and ``stderr``.
38
39 -h, --help
40 Show a help message and exit.
41
42 -m MOD
43 Library module to be run as a script (terminates option list).
44
45 -W ARG
46 Warning control (*arg* is *action*:*message*:*category*:*module*:*lineno*).
47
48 -E
49 Ignore environment variables (such as ``PYTHONPATH``).
50
51 -B
52 Disable writing bytecode (``.pyc``) files.
53
54 -X track-resources
55 Produce a ``ResourceWarning`` whenever a file or socket is closed by the
56 garbage collector.
57
58 --version
59 Print the PyPy version.
60
61 --info
62 Print translation information about this PyPy executable.
63
64 --jit ARG
65 Low level JIT parameters. Mostly internal. Run ``--jit help``
66 for more information.
67
68 ENVIRONMENT
69 ===========
70
71 ``PYTHONPATH``
72 Add directories to pypy3's module search path.
73 The format is the same as shell's ``PATH``.
74
75 ``PYTHONSTARTUP``
76 A script referenced by this variable will be executed before the
77 first prompt is displayed, in interactive mode.
78
79 ``PYTHONDONTWRITEBYTECODE``
80 If set to a non-empty value, equivalent to the ``-B`` option.
81 Disable writing ``.pyc`` files.
82
83 ``PYTHONINSPECT``
84 If set to a non-empty value, equivalent to the ``-i`` option.
85 Inspect interactively after running the specified script.
86
87 ``PYTHONIOENCODING``
88 If this is set, it overrides the encoding used for
89 *stdin*/*stdout*/*stderr*.
90 The syntax is *encodingname*:*errorhandler*
91 The *errorhandler* part is optional and has the same meaning as in
92 `str.encode`.
93
94 ``PYTHONNOUSERSITE``
95 If set to a non-empty value, equivalent to the ``-s`` option.
96 Don't add the user site directory to `sys.path`.
97
98 ``PYTHONWARNINGS``
99 If set, equivalent to the ``-W`` option (warning control).
100 The value should be a comma-separated list of ``-W`` parameters.
101
102 ``PYPYLOG``
103 If set to a non-empty value, enable logging, the format is:
104
105 *fname* or *+fname*
106 logging for profiling: includes all
107 ``debug_start``/``debug_stop`` but not any nested
108 ``debug_print``.
109 *fname* can be ``-`` to log to *stderr*.
110 The *+fname* form can be used if there is a *:* in fname
111
112 ``:``\ *fname*
113 Full logging, including ``debug_print``.
114
115 *prefix*\ ``:``\ *fname*
116 Conditional logging.
117 Multiple prefixes can be specified, comma-separated.
118 Only sections whose name match the prefix will be logged.
119
120 ``PYPYLOG=jit-log-opt,jit-backend:logfile`` will
121 generate a log suitable for *jitviewer*, a tool for debugging
122 performance issues under PyPy.
123
124 ``PYPY_IRC_TOPIC``
125 If set to a non-empty value, print a random #pypy IRC
126 topic at startup of interactive mode.
127
128
129 .. include:: ../gc_info.rst
130 :start-line: 7
131
132 SEE ALSO
133 ========
134
135 **python3**\ (1)