1<?xml version="1.0" encoding="ascii"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3 "DTD/xhtml1-transitional.dtd"> 4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 5<head> 6 <title>lldb.embedded_interpreter.SimpleREPL</title> 7 <link rel="stylesheet" href="epydoc.css" type="text/css" /> 8 <script type="text/javascript" src="epydoc.js"></script> 9</head> 10 11<body bgcolor="white" text="black" link="blue" vlink="#204080" 12 alink="#204080"> 13<!-- ==================== NAVIGATION BAR ==================== --> 14<table class="navbar" border="0" width="100%" cellpadding="0" 15 bgcolor="#a0c0ff" cellspacing="0"> 16 <tr valign="middle"> 17 18 <!-- Tree link --> 19 <th> <a 20 href="module-tree.html">Trees</a> </th> 21 22 <!-- Index link --> 23 <th> <a 24 href="identifier-index.html">Indices</a> </th> 25 26 <!-- Help link --> 27 <th> <a 28 href="help.html">Help</a> </th> 29 30 <!-- Project homepage --> 31 <th class="navbar" align="right" width="100%"> 32 <table border="0" cellpadding="0" cellspacing="0"> 33 <tr><th class="navbar" align="center" 34 ><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th> 35 </tr></table></th> 36 </tr> 37</table> 38<table width="100%" cellpadding="0" cellspacing="0"> 39 <tr valign="top"> 40 <td width="100%"> 41 <span class="breadcrumbs"> 42 <a href="lldb-module.html">Package lldb</a> :: 43 <a href="lldb.embedded_interpreter-module.html">Module embedded_interpreter</a> :: 44 Class SimpleREPL 45 </span> 46 </td> 47 <td> 48 <table cellpadding="0" cellspacing="0"> 49 <!-- hide/show private --> 50 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink" 51 onclick="toggle_private();">hide private</a>]</span></td></tr> 52 <tr><td align="right"><span class="options" 53 >[<a href="frames.html" target="_top">frames</a 54 >] | <a href="lldb.embedded_interpreter.SimpleREPL-class.html" 55 target="_top">no frames</a>]</span></td></tr> 56 </table> 57 </td> 58 </tr> 59</table> 60<!-- ==================== CLASS DESCRIPTION ==================== --> 61<h1 class="epydoc">Class SimpleREPL</h1><p class="nomargin-top"><span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL">source code</a></span></p> 62<center> 63<center> <map id="uml_class_diagram_for_lldb_emb" name="uml_class_diagram_for_lldb_emb"> 64<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#__init__" title="Constructor." alt="" coords="112,305,277,324"/> 65<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#interact" title="Closely emulate the interactive Python console." alt="" coords="112,324,277,343"/> 66<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#process_input" title="lldb.embedded_interpreter.SimpleREPL.process_input" alt="" coords="112,343,277,361"/> 67<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#my_raw_input" title="lldb.embedded_interpreter.SimpleREPL.my_raw_input" alt="" coords="112,361,277,380"/> 68<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#read_py_command" title="lldb.embedded_interpreter.SimpleREPL.read_py_command" alt="" coords="112,380,277,399"/> 69<area shape="rect" id="node62" href="lldb.embedded_interpreter.SimpleREPL-class.html#one_line" title="lldb.embedded_interpreter.SimpleREPL.one_line" alt="" coords="112,399,277,417"/> 70<area shape="rect" id="node1" href="lldb.embedded_interpreter.SimpleREPL-class.html" title="lldb.embedded_interpreter.SimpleREPL" alt="" coords="100,273,289,423"/> 71<area shape="rect" id="node63" href="javascript:void(0);" title="Reset the input buffer." alt="" coords="117,191,272,209"/> 72<area shape="rect" id="node63" href="javascript:void(0);" title="Push a line to the interpreter." alt="" coords="117,209,272,228"/> 73<area shape="rect" id="node63" href="javascript:void(0);" title="Write a prompt and read a line." alt="" coords="117,228,272,247"/> 74<area shape="rect" id="node2" href="javascript:void(0);" title="Closely emulate the behavior of the interactive Python interpreter." alt="" coords="105,158,284,253"/> 75<area shape="rect" id="node64" href="javascript:void(0);" title="Compile and run some source in the interpreter." alt="" coords="17,39,371,57"/> 76<area shape="rect" id="node64" href="javascript:void(0);" title="Execute a code object." alt="" coords="17,57,371,76"/> 77<area shape="rect" id="node64" href="javascript:void(0);" title="Display the syntax error that just occurred." alt="" coords="17,76,371,95"/> 78<area shape="rect" id="node64" href="javascript:void(0);" title="Display the exception that just occurred." alt="" coords="17,95,371,113"/> 79<area shape="rect" id="node64" href="javascript:void(0);" title="Write a string." alt="" coords="17,113,371,132"/> 80<area shape="rect" id="node3" href="javascript:void(0);" title="Base class for InteractiveConsole." alt="" coords="5,6,381,138"/> 81</map> 82 <img src="uml_class_diagram_for_lldb_emb.gif" alt='' usemap="#uml_class_diagram_for_lldb_emb" ismap="ismap" class="graph-without-title" /> 83</center> 84</center> 85<hr /> 86<!-- ==================== INSTANCE METHODS ==================== --> 87<a name="section-InstanceMethods"></a> 88<table class="summary" border="1" cellpadding="3" 89 cellspacing="0" width="100%" bgcolor="white"> 90<tr bgcolor="#70b0f0" class="table-header"> 91 <td colspan="2" class="table-header"> 92 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 93 <tr valign="top"> 94 <td align="left"><span class="table-header">Instance Methods</span></td> 95 <td align="right" valign="top" 96 ><span class="options">[<a href="#section-InstanceMethods" 97 class="privatelink" onclick="toggle_private();" 98 >hide private</a>]</span></td> 99 </tr> 100 </table> 101 </td> 102</tr> 103<tr> 104 <td width="15%" align="right" valign="top" class="summary"> 105 <span class="summary-type"> </span> 106 </td><td class="summary"> 107 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 108 <tr> 109 <td><span class="summary-sig"><a href="lldb.embedded_interpreter.SimpleREPL-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>, 110 <span class="summary-sig-arg">prompt</span>, 111 <span class="summary-sig-arg">dict</span>)</span><br /> 112 Constructor.</td> 113 <td align="right" valign="top"> 114 <span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.__init__">source code</a></span> 115 116 </td> 117 </tr> 118 </table> 119 120 </td> 121 </tr> 122<tr> 123 <td width="15%" align="right" valign="top" class="summary"> 124 <span class="summary-type"> </span> 125 </td><td class="summary"> 126 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 127 <tr> 128 <td><span class="summary-sig"><a href="lldb.embedded_interpreter.SimpleREPL-class.html#interact" class="summary-sig-name">interact</a>(<span class="summary-sig-arg">self</span>)</span><br /> 129 Closely emulate the interactive Python console.</td> 130 <td align="right" valign="top"> 131 <span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.interact">source code</a></span> 132 133 </td> 134 </tr> 135 </table> 136 137 </td> 138 </tr> 139<tr> 140 <td width="15%" align="right" valign="top" class="summary"> 141 <span class="summary-type"> </span> 142 </td><td class="summary"> 143 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 144 <tr> 145 <td><span class="summary-sig"><a name="process_input"></a><span class="summary-sig-name">process_input</span>(<span class="summary-sig-arg">self</span>, 146 <span class="summary-sig-arg">in_str</span>)</span></td> 147 <td align="right" valign="top"> 148 <span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.process_input">source code</a></span> 149 150 </td> 151 </tr> 152 </table> 153 154 </td> 155 </tr> 156<tr> 157 <td width="15%" align="right" valign="top" class="summary"> 158 <span class="summary-type"> </span> 159 </td><td class="summary"> 160 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 161 <tr> 162 <td><span class="summary-sig"><a name="my_raw_input"></a><span class="summary-sig-name">my_raw_input</span>(<span class="summary-sig-arg">self</span>, 163 <span class="summary-sig-arg">prompt</span>)</span></td> 164 <td align="right" valign="top"> 165 <span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.my_raw_input">source code</a></span> 166 167 </td> 168 </tr> 169 </table> 170 171 </td> 172 </tr> 173<tr> 174 <td width="15%" align="right" valign="top" class="summary"> 175 <span class="summary-type"> </span> 176 </td><td class="summary"> 177 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 178 <tr> 179 <td><span class="summary-sig"><a name="read_py_command"></a><span class="summary-sig-name">read_py_command</span>(<span class="summary-sig-arg">self</span>)</span></td> 180 <td align="right" valign="top"> 181 <span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.read_py_command">source code</a></span> 182 183 </td> 184 </tr> 185 </table> 186 187 </td> 188 </tr> 189<tr> 190 <td width="15%" align="right" valign="top" class="summary"> 191 <span class="summary-type"> </span> 192 </td><td class="summary"> 193 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 194 <tr> 195 <td><span class="summary-sig"><a name="one_line"></a><span class="summary-sig-name">one_line</span>(<span class="summary-sig-arg">self</span>, 196 <span class="summary-sig-arg">input</span>)</span></td> 197 <td align="right" valign="top"> 198 <span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.one_line">source code</a></span> 199 200 </td> 201 </tr> 202 </table> 203 204 </td> 205 </tr> 206 <tr> 207 <td colspan="2" class="summary"> 208 <p class="indent-wrapped-lines"><b>Inherited from <code>code.InteractiveConsole</code></b>: 209 <code>push</code>, 210 <code>raw_input</code>, 211 <code>resetbuffer</code> 212 </p> 213 <p class="indent-wrapped-lines"><b>Inherited from <code>code.InteractiveInterpreter</code></b>: 214 <code>runcode</code>, 215 <code>runsource</code>, 216 <code>showsyntaxerror</code>, 217 <code>showtraceback</code>, 218 <code>write</code> 219 </p> 220 </td> 221 </tr> 222</table> 223<!-- ==================== METHOD DETAILS ==================== --> 224<a name="section-MethodDetails"></a> 225<table class="details" border="1" cellpadding="3" 226 cellspacing="0" width="100%" bgcolor="white"> 227<tr bgcolor="#70b0f0" class="table-header"> 228 <td colspan="2" class="table-header"> 229 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 230 <tr valign="top"> 231 <td align="left"><span class="table-header">Method Details</span></td> 232 <td align="right" valign="top" 233 ><span class="options">[<a href="#section-MethodDetails" 234 class="privatelink" onclick="toggle_private();" 235 >hide private</a>]</span></td> 236 </tr> 237 </table> 238 </td> 239</tr> 240</table> 241<a name="__init__"></a> 242<div> 243<table class="details" border="1" cellpadding="3" 244 cellspacing="0" width="100%" bgcolor="white"> 245<tr><td> 246 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 247 <tr valign="top"><td> 248 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>, 249 <span class="sig-arg">prompt</span>, 250 <span class="sig-arg">dict</span>)</span> 251 <br /><em class="fname">(Constructor)</em> 252 </h3> 253 </td><td align="right" valign="top" 254 ><span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.__init__">source code</a></span> 255 </td> 256 </tr></table> 257 258 <p>Constructor.</p> 259 <p>The optional locals argument will be passed to the 260 InteractiveInterpreter base class.</p> 261 <p>The optional filename argument should specify the (file)name of the 262 input stream; it will show up in tracebacks.</p> 263 <dl class="fields"> 264 <dt>Overrides: 265 code.InteractiveInterpreter.__init__ 266 <dd><em class="note">(inherited documentation)</em></dd> 267 </dt> 268 </dl> 269</td></tr></table> 270</div> 271<a name="interact"></a> 272<div> 273<table class="details" border="1" cellpadding="3" 274 cellspacing="0" width="100%" bgcolor="white"> 275<tr><td> 276 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 277 <tr valign="top"><td> 278 <h3 class="epydoc"><span class="sig"><span class="sig-name">interact</span>(<span class="sig-arg">self</span>)</span> 279 </h3> 280 </td><td align="right" valign="top" 281 ><span class="codelink"><a href="lldb.embedded_interpreter-pysrc.html#SimpleREPL.interact">source code</a></span> 282 </td> 283 </tr></table> 284 285 <p>Closely emulate the interactive Python console.</p> 286 <p>The optional banner argument specify the banner to print before the 287 first interaction; by default it prints a banner similar to the one 288 printed by the real Python interpreter, followed by the current class 289 name in parentheses (so as not to confuse this with the real interpreter 290 -- since it's so close!).</p> 291 <dl class="fields"> 292 <dt>Overrides: 293 code.InteractiveConsole.interact 294 <dd><em class="note">(inherited documentation)</em></dd> 295 </dt> 296 </dl> 297</td></tr></table> 298</div> 299<br /> 300<!-- ==================== NAVIGATION BAR ==================== --> 301<table class="navbar" border="0" width="100%" cellpadding="0" 302 bgcolor="#a0c0ff" cellspacing="0"> 303 <tr valign="middle"> 304 305 <!-- Tree link --> 306 <th> <a 307 href="module-tree.html">Trees</a> </th> 308 309 <!-- Index link --> 310 <th> <a 311 href="identifier-index.html">Indices</a> </th> 312 313 <!-- Help link --> 314 <th> <a 315 href="help.html">Help</a> </th> 316 317 <!-- Project homepage --> 318 <th class="navbar" align="right" width="100%"> 319 <table border="0" cellpadding="0" cellspacing="0"> 320 <tr><th class="navbar" align="center" 321 ><a class="navbar" target="_top" href="http://lldb.llvm.org">LLDB python API</a></th> 322 </tr></table></th> 323 </tr> 324</table> 325<table border="0" cellpadding="0" cellspacing="0" width="100%%"> 326 <tr> 327 <td align="left" class="footer"> 328 Generated by Epydoc 3.0.1 on Fri Jul 19 13:22:36 2013 329 </td> 330 <td align="right" class="footer"> 331 <a target="mainFrame" href="http://epydoc.sourceforge.net" 332 >http://epydoc.sourceforge.net</a> 333 </td> 334 </tr> 335</table> 336 337<script type="text/javascript"> 338 <!-- 339 // Private objects are initially displayed (because if 340 // javascript is turned off then we want them to be 341 // visible); but by default, we want to hide them. So hide 342 // them unless we have a cookie that says to show them. 343 checkCookie(); 344 // --> 345</script> 346</body> 347</html> 348