24 <p> |
24 <p> |
25 Word completion for the eric5 shell |
25 Word completion for the eric5 shell |
26 </p><p> |
26 </p><p> |
27 <h4>NOTE for eric5 variant</h4> |
27 <h4>NOTE for eric5 variant</h4> |
28 </p><p> |
28 </p><p> |
29 This version is a re-implementation of FlexCompleter |
29 This version is a re-implementation of FlexCompleter |
30 as found in the PyQwt package. It is modified to work with the eric5 debug |
30 as found in the PyQwt package. It is modified to work with the eric5 debug |
31 clients. |
31 clients. |
32 </p><p> |
32 </p><p> |
33 |
33 |
34 </p><p> |
34 </p><p> |
35 <h4>NOTE for the PyQwt variant</h4> |
35 <h4>NOTE for the PyQwt variant</h4> |
41 </p><p> |
41 </p><p> |
42 |
42 |
43 </p><p> |
43 </p><p> |
44 <h4>NOTE for FlexCompleter</h4> |
44 <h4>NOTE for FlexCompleter</h4> |
45 </p><p> |
45 </p><p> |
46 This version is a re-implementation of rlcompleter with |
46 This version is a re-implementation of rlcompleter with |
47 selectable namespace. |
47 selectable namespace. |
48 </p><p> |
48 </p><p> |
49 The problem with rlcompleter is that it's hardwired to work with |
49 The problem with rlcompleter is that it's hardwired to work with |
50 __main__.__dict__, and in some cases one may have 'sandboxed' namespaces. So |
50 __main__.__dict__, and in some cases one may have 'sandboxed' namespaces. So |
51 this class is a ripoff of rlcompleter, with the namespace to work in as an |
51 this class is a ripoff of rlcompleter, with the namespace to work in as an |
150 <td>Compute matches when text is a simple name.</td> |
150 <td>Compute matches when text is a simple name.</td> |
151 </tr> |
151 </tr> |
152 </table> |
152 </table> |
153 <a NAME="Completer.__init__" ID="Completer.__init__"></a> |
153 <a NAME="Completer.__init__" ID="Completer.__init__"></a> |
154 <h4>Completer (Constructor)</h4> |
154 <h4>Completer (Constructor)</h4> |
155 <b>Completer</b>(<i>namespace = None</i>) |
155 <b>Completer</b>(<i>namespace=None</i>) |
156 <p> |
156 <p> |
157 Create a new completer for the command line. |
157 Create a new completer for the command line. |
158 </p><p> |
158 </p><p> |
159 Completer([namespace]) -> completer instance. |
159 Completer([namespace]) -> completer instance. |
160 </p><p> |
160 </p><p> |