Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(176)

Side by Side Diff: Doc/c-api/veryhigh.rst

Issue 8070: Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error
Patch Set: Created 1 year, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Misc/NEWS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 .. highlightlang:: c 1 .. highlightlang:: c
2 2
3 3
4 .. _veryhigh: 4 .. _veryhigh:
5 5
6 ************************* 6 *************************
7 The Very High Level Layer 7 The Very High Level Layer
8 ************************* 8 *************************
9 9
10 The functions in this chapter will let you execute Python source code given in a 10 The functions in this chapter will let you execute Python source code given in a
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 This is a simplified interface to :c:func:`PyRun_InteractiveLoopFlags` below, 141 This is a simplified interface to :c:func:`PyRun_InteractiveLoopFlags` below,
142 leaving *flags* set to *NULL*. 142 leaving *flags* set to *NULL*.
143 143
144 144
145 .. c:function:: int PyRun_InteractiveLoopFlags(FILE *fp, const char *filename, P yCompilerFlags *flags) 145 .. c:function:: int PyRun_InteractiveLoopFlags(FILE *fp, const char *filename, P yCompilerFlags *flags)
146 146
147 Read and execute statements from a file associated with an interactive device 147 Read and execute statements from a file associated with an interactive device
148 until EOF is reached. The user will be prompted using ``sys.ps1`` and 148 until EOF is reached. The user will be prompted using ``sys.ps1`` and
149 ``sys.ps2``. *filename* is decoded from the filesystem encoding 149 ``sys.ps2``. *filename* is decoded from the filesystem encoding
150 (:func:`sys.getfilesystemencoding`). Returns ``0`` at EOF. 150 (:func:`sys.getfilesystemencoding`). Returns ``0`` if EOF is reached, or the
151 return value from `PyRun_InteractiveOneFlags` if an error occurs.
151 152
152 153
153 .. c:function:: struct _node* PyParser_SimpleParseString(const char *str, int st art) 154 .. c:function:: struct _node* PyParser_SimpleParseString(const char *str, int st art)
154 155
155 This is a simplified interface to 156 This is a simplified interface to
156 :c:func:`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename* set 157 :c:func:`PyParser_SimpleParseStringFlagsFilename` below, leaving *filename* set
157 to *NULL* and *flags* set to ``0``. 158 to *NULL* and *flags* set to ``0``.
158 159
159 160
160 .. c:function:: struct _node* PyParser_SimpleParseStringFlags( const char *str, int start, int flags) 161 .. c:function:: struct _node* PyParser_SimpleParseStringFlags( const char *str, int start, int flags)
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 struct PyCompilerFlags { 339 struct PyCompilerFlags {
339 int cf_flags; 340 int cf_flags;
340 } 341 }
341 342
342 343
343 .. c:var:: int CO_FUTURE_DIVISION 344 .. c:var:: int CO_FUTURE_DIVISION
344 345
345 This bit can be set in *flags* to cause division operator ``/`` to be 346 This bit can be set in *flags* to cause division operator ``/`` to be
346 interpreted as "true division" according to :pep:`238`. 347 interpreted as "true division" according to :pep:`238`.
347 348
OLDNEW
« no previous file with comments | « no previous file | Misc/NEWS » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7