Show More
@@ -192,15 +192,15 b' MAIN FEATURES' | |||||
192 | 1. Auto-parentheses |
|
192 | 1. Auto-parentheses | |
193 | Callable objects (i.e. functions, methods, etc) can be invoked like |
|
193 | Callable objects (i.e. functions, methods, etc) can be invoked like | |
194 | this (notice the commas between the arguments): |
|
194 | this (notice the commas between the arguments): | |
195 |
|
|
195 | In [1]: callable_ob arg1, arg2, arg3 | |
196 | and the input will be translated to this: |
|
196 | and the input will be translated to this: | |
197 | --> callable_ob(arg1, arg2, arg3) |
|
197 | ------> callable_ob(arg1, arg2, arg3) | |
198 | You can force auto-parentheses by using '/' as the first character |
|
198 | You can force auto-parentheses by using '/' as the first character | |
199 | of a line. For example: |
|
199 | of a line. For example: | |
200 |
|
|
200 | In [1]: /globals # becomes 'globals()' | |
201 | Note that the '/' MUST be the first character on the line! This |
|
201 | Note that the '/' MUST be the first character on the line! This | |
202 | won't work: |
|
202 | won't work: | |
203 |
|
|
203 | In [2]: print /globals # syntax error | |
204 |
|
204 | |||
205 | In most cases the automatic algorithm should work, so you should |
|
205 | In most cases the automatic algorithm should work, so you should | |
206 | rarely need to explicitly invoke /. One notable exception is if you |
|
206 | rarely need to explicitly invoke /. One notable exception is if you | |
@@ -220,16 +220,16 b' MAIN FEATURES' | |||||
220 | 2. Auto-Quoting |
|
220 | 2. Auto-Quoting | |
221 | You can force auto-quoting of a function's arguments by using ',' as |
|
221 | You can force auto-quoting of a function's arguments by using ',' as | |
222 | the first character of a line. For example: |
|
222 | the first character of a line. For example: | |
223 |
|
|
223 | In [1]: ,my_function /home/me # becomes my_function("/home/me") | |
224 |
|
224 | |||
225 | If you use ';' instead, the whole argument is quoted as a single |
|
225 | If you use ';' instead, the whole argument is quoted as a single | |
226 | string (while ',' splits on whitespace): |
|
226 | string (while ',' splits on whitespace): | |
227 |
|
|
227 | In [2]: ,my_function a b c # becomes my_function("a","b","c") | |
228 |
|
|
228 | In [3]: ;my_function a b c # becomes my_function("a b c") | |
229 |
|
229 | |||
230 | Note that the ',' MUST be the first character on the line! This |
|
230 | Note that the ',' MUST be the first character on the line! This | |
231 | won't work: |
|
231 | won't work: | |
232 |
|
|
232 | In [4]: x = ,my_function /home/me # syntax error | |
233 | """ |
|
233 | """ | |
234 |
|
234 | |||
235 | interactive_usage_min = """\ |
|
235 | interactive_usage_min = """\ |
@@ -786,7 +786,7 b' class LoadBalancedView(View):' | |||||
786 |
|
786 | |||
787 | or targets can be specified, to restrict the potential destinations: |
|
787 | or targets can be specified, to restrict the potential destinations: | |
788 |
|
788 | |||
789 |
>>> v = client.client.load_balanced_view( |
|
789 | >>> v = client.client.load_balanced_view([1,3]) | |
790 |
|
790 | |||
791 | which would restrict loadbalancing to between engines 1 and 3. |
|
791 | which would restrict loadbalancing to between engines 1 and 3. | |
792 |
|
792 |
General Comments 0
You need to be logged in to leave comments.
Login now