Show More
@@ -159,7 +159,7 b' By default results from all matchers are combined, in the order determined by' | |||||
159 | their priority. Matchers can request to suppress results from subsequent |
|
159 | their priority. Matchers can request to suppress results from subsequent | |
160 | matchers by setting ``suppress`` to ``True`` in the ``MatcherResult``. |
|
160 | matchers by setting ``suppress`` to ``True`` in the ``MatcherResult``. | |
161 |
|
161 | |||
162 |
When multiple matchers simultaneously request su |
|
162 | When multiple matchers simultaneously request suppression, the results from of | |
163 | the matcher with higher priority will be returned. |
|
163 | the matcher with higher priority will be returned. | |
164 |
|
164 | |||
165 | Sometimes it is desirable to suppress most but not all other matchers; |
|
165 | Sometimes it is desirable to suppress most but not all other matchers; | |
@@ -2651,7 +2651,7 b' class IPCompleter(Completer):' | |||||
2651 | ) |
|
2651 | ) | |
2652 | can_close_quote = can_close_quote and self.auto_close_dict_keys |
|
2652 | can_close_quote = can_close_quote and self.auto_close_dict_keys | |
2653 |
|
2653 | |||
2654 |
# fast path if closing q |
|
2654 | # fast path if closing quote should be appended but not suffix is allowed | |
2655 | if not can_close_quote and not can_close_bracket and closing_quote: |
|
2655 | if not can_close_quote and not can_close_bracket and closing_quote: | |
2656 | return [leading + k for k in matches] |
|
2656 | return [leading + k for k in matches] | |
2657 |
|
2657 |
@@ -167,7 +167,7 b' def is_possible_submodule(module, attr):' | |||||
167 | try: |
|
167 | try: | |
168 | obj = getattr(module, attr) |
|
168 | obj = getattr(module, attr) | |
169 | except AttributeError: |
|
169 | except AttributeError: | |
170 |
# Is possi |
|
170 | # Is possibly an unimported submodule | |
171 | return True |
|
171 | return True | |
172 | except TypeError: |
|
172 | except TypeError: | |
173 | # https://github.com/ipython/ipython/issues/9678 |
|
173 | # https://github.com/ipython/ipython/issues/9678 |
@@ -19,7 +19,7 b' Global Configuration' | |||||
19 | -------------------- |
|
19 | -------------------- | |
20 |
|
20 | |||
21 | The IPython debugger will by read the global ``~/.pdbrc`` file. |
|
21 | The IPython debugger will by read the global ``~/.pdbrc`` file. | |
22 | That is to say you can list all comands supported by ipdb in your `~/.pdbrc` |
|
22 | That is to say you can list all commands supported by ipdb in your `~/.pdbrc` | |
23 | configuration file, to globally configure pdb. |
|
23 | configuration file, to globally configure pdb. | |
24 |
|
24 | |||
25 | Example:: |
|
25 | Example:: | |
@@ -177,7 +177,7 b' def BdbQuit_excepthook(et, ev, tb, excepthook=None):' | |||||
177 | parameter. |
|
177 | parameter. | |
178 | """ |
|
178 | """ | |
179 | raise ValueError( |
|
179 | raise ValueError( | |
180 |
"`BdbQuit_excepthook` is deprecated since version 5.1. It is still ar |
|
180 | "`BdbQuit_excepthook` is deprecated since version 5.1. It is still around only because it is still imported by ipdb.", | |
181 | ) |
|
181 | ) | |
182 |
|
182 | |||
183 |
|
183 |
@@ -132,7 +132,7 b' def _get_external(module_name: str, access_path: Sequence[str]):' | |||||
132 |
|
132 | |||
133 | Raises: |
|
133 | Raises: | |
134 | * `KeyError` if module is removed not found, and |
|
134 | * `KeyError` if module is removed not found, and | |
135 | * `AttributeError` if acess path does not match an exported object |
|
135 | * `AttributeError` if access path does not match an exported object | |
136 | """ |
|
136 | """ | |
137 | member_type = sys.modules[module_name] |
|
137 | member_type = sys.modules[module_name] | |
138 | for attr in access_path: |
|
138 | for attr in access_path: | |
@@ -235,7 +235,7 b' class SelectivePolicy(EvaluationPolicy):' | |||||
235 | accept = has_original_attr and has_original_attribute |
|
235 | accept = has_original_attr and has_original_attribute | |
236 |
|
236 | |||
237 | if accept: |
|
237 | if accept: | |
238 | # We still need to check for overriden properties. |
|
238 | # We still need to check for overridden properties. | |
239 |
|
239 | |||
240 | value_class = type(value) |
|
240 | value_class = type(value) | |
241 | if not hasattr(value_class, attr): |
|
241 | if not hasattr(value_class, attr): | |
@@ -332,7 +332,7 b' class EvaluationContext(NamedTuple):' | |||||
332 | evaluation: Literal[ |
|
332 | evaluation: Literal[ | |
333 | "forbidden", "minimal", "limited", "unsafe", "dangerous" |
|
333 | "forbidden", "minimal", "limited", "unsafe", "dangerous" | |
334 | ] = "forbidden" |
|
334 | ] = "forbidden" | |
335 | #: Whether the evalution of code takes place inside of a subscript. |
|
335 | #: Whether the evaluation of code takes place inside of a subscript. | |
336 | #: Useful for evaluating ``:-1, 'col'`` in ``df[:-1, 'col']``. |
|
336 | #: Useful for evaluating ``:-1, 'col'`` in ``df[:-1, 'col']``. | |
337 | in_subscript: bool = False |
|
337 | in_subscript: bool = False | |
338 |
|
338 | |||
@@ -373,7 +373,7 b' def guarded_eval(code: str, context: EvaluationContext):' | |||||
373 | # getitem at all, for example it fails on simple `[0][1]` |
|
373 | # getitem at all, for example it fails on simple `[0][1]` | |
374 |
|
374 | |||
375 | if context.in_subscript: |
|
375 | if context.in_subscript: | |
376 |
# syntatic sugar for ellipsis (:) is only available in su |
|
376 | # syntactic sugar for ellipsis (:) is only available in subscripts | |
377 | # so we need to trick the ast parser into thinking that we have |
|
377 | # so we need to trick the ast parser into thinking that we have | |
378 | # a subscript, but we need to be able to later recognise that we did |
|
378 | # a subscript, but we need to be able to later recognise that we did | |
379 | # it so we can ignore the actual __getitem__ operation |
|
379 | # it so we can ignore the actual __getitem__ operation |
@@ -97,7 +97,7 b' def num_ini_spaces(s):' | |||||
97 | """ |
|
97 | """ | |
98 | warnings.warn( |
|
98 | warnings.warn( | |
99 | "`num_ini_spaces` is Pending Deprecation since IPython 8.17." |
|
99 | "`num_ini_spaces` is Pending Deprecation since IPython 8.17." | |
100 |
"It is considered f |
|
100 | "It is considered for removal in in future version. " | |
101 | "Please open an issue if you believe it should be kept.", |
|
101 | "Please open an issue if you believe it should be kept.", | |
102 | stacklevel=2, |
|
102 | stacklevel=2, | |
103 | category=PendingDeprecationWarning, |
|
103 | category=PendingDeprecationWarning, |
@@ -1627,7 +1627,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
1627 | Returns |
|
1627 | Returns | |
1628 | ------- |
|
1628 | ------- | |
1629 | parts_ok: bool |
|
1629 | parts_ok: bool | |
1630 | wether we were properly able to parse parts. |
|
1630 | whether we were properly able to parse parts. | |
1631 | parts: list of str |
|
1631 | parts: list of str | |
1632 | extracted parts |
|
1632 | extracted parts | |
1633 |
|
1633 |
@@ -5,7 +5,7 b' with ast-transformers it is not easy to directly manipulate ast.' | |||||
5 |
|
5 | |||
6 |
|
6 | |||
7 | IPython has pre-code and post-code hooks, but are ran from within the IPython |
|
7 | IPython has pre-code and post-code hooks, but are ran from within the IPython | |
8 | machinery so may be inappropriate, for example for performance mesurement. |
|
8 | machinery so may be inappropriate, for example for performance measurement. | |
9 |
|
9 | |||
10 | This module give you tools to simplify this, and expose 2 classes: |
|
10 | This module give you tools to simplify this, and expose 2 classes: | |
11 |
|
11 |
@@ -460,7 +460,7 b' class Inspector(Colorable):' | |||||
460 |
|
460 | |||
461 | mime_hooks = traitlets.Dict( |
|
461 | mime_hooks = traitlets.Dict( | |
462 | config=True, |
|
462 | config=True, | |
463 |
help="dictionary of mime to callable to add information |
|
463 | help="dictionary of mime to callable to add information into help mimebundle dict", | |
464 | ).tag(config=True) |
|
464 | ).tag(config=True) | |
465 |
|
465 | |||
466 | def __init__( |
|
466 | def __init__( |
@@ -528,7 +528,7 b' def _list_matplotlib_backends_and_gui_loops() -> list[str]:' | |||||
528 |
|
528 | |||
529 |
|
529 | |||
530 | # Matplotlib and IPython do not always use the same gui framework name. |
|
530 | # Matplotlib and IPython do not always use the same gui framework name. | |
531 | # Always use the approprate one of these conversion functions when passing a |
|
531 | # Always use the appropriate one of these conversion functions when passing a | |
532 | # gui framework name to/from Matplotlib. |
|
532 | # gui framework name to/from Matplotlib. | |
533 | def _convert_gui_to_matplotlib(gui: str | None) -> str | None: |
|
533 | def _convert_gui_to_matplotlib(gui: str | None) -> str | None: | |
534 | if gui and gui.lower() == "osx": |
|
534 | if gui and gui.lower() == "osx": |
General Comments 0
You need to be logged in to leave comments.
Login now