Debian Codegraph @

pypy/doc/man/pypy.1.rst

raw
1 ======
2 pypy
3 ======
4
5 .. note: this is turned into a regular man page "pypy.1" by
6 doing "make man" in pypy/doc/
7
8 SYNOPSIS
9 ========
10
11 ``pypy`` [*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 -X disable-remote-debug
59 Disable the remote debugging interface
60
61 --version
62 Print the PyPy version.
63
64 --info
65 Print translation information about this PyPy executable.
66
67 --jit ARG
68 Low level JIT parameters. Mostly internal. Run ``--jit help``
69 for more information.
70
71 ENVIRONMENT
72 ===========
73
74 ``PYTHONPATH``
75 Add directories to pypy's module search path.
76 The format is the same as shell's ``PATH``.
77
78 ``PYTHONSTARTUP``
79 A script referenced by this variable will be executed before the
80 first prompt is displayed, in interactive mode.
81
82 ``PYTHONDONTWRITEBYTECODE``
83 If set to a non-empty value, equivalent to the ``-B`` option.
84 Disable writing ``.pyc`` files.
85
86 ``PYTHONINSPECT``
87 If set to a non-empty value, equivalent to the ``-i`` option.
88 Inspect interactively after running the specified script.
89
90 ``PYTHONIOENCODING``
91 If this is set, it overrides the encoding used for
92 *stdin*/*stdout*/*stderr*.
93 The syntax is *encodingname*:*errorhandler*
94 The *errorhandler* part is optional and has the same meaning as in
95 `str.encode`.
96
97 ``PYTHONNOUSERSITE``
98 If set to a non-empty value, equivalent to the ``-s`` option.
99 Don't add the user site directory to `sys.path`.
100
101 ``PYTHONWARNINGS``
102 If set, equivalent to the ``-W`` option (warning control).
103 The value should be a comma-separated list of ``-W`` parameters.
104
105 .. _pypylog:
106
107 ``PYPYLOG``
108 If set to a non-empty value, enable logging, the format is:
109
110 *fname* or *+fname*
111 logging for profiling: includes all
112 ``debug_start``/``debug_stop`` but not any nested
113 ``debug_print``.
114 *fname* can be ``-`` to log to *stderr*.
115 The *+fname* form can be used if there is a *:* in fname
116
117 ``:``\ *fname*
118 Full logging, including ``debug_print``.
119
120 *prefix*\ ``:``\ *fname*
121 Conditional logging.
122 Multiple prefixes can be specified, comma-separated.
123 Only sections whose name match the prefix will be logged.
124
125 ``PYPYLOG=jit-log-opt,jit-backend:logfile`` will
126 generate a log suitable for *jitviewer*, a tool for debugging
127 performance issues under PyPy.
128
129 ``PYPY_IRC_TOPIC``
130 If set to a non-empty value, print a random #pypy IRC
131 topic at startup of interactive mode.
132
133 ``PYPY_DISABLE_JIT``
134 If set to a non-empty value, disable JIT.
135
136 ``PYTHON_DISABLE_REMOTE_DEBUG``
137 If set to a non-empty value, disable the remote debugging interface.
138
139 .. include:: ../gc_info.rst
140 :start-line: 305
141
142 SEE ALSO
143 ========
144
145 **python**\ (1)