MCPcopy Index your code
hub / github.com/ipython/ipython / replace

Method replace

IPython/core/guarded_eval.py:409–411  ·  view source on GitHub ↗

Return a new copy of the context, with specified changes

(self, /, **changes)

Source from the content-addressed store, hash-verified

407 current_value: ast.AST | None = None
408
409 def replace(self, /, **changes):
410 """Return a new copy of the context, with specified changes"""
411 return dataclasses.replace(self, **changes)
412
413
414class _IdentitySubscript:

Callers 15

update_whatsnew.pyFile · 0.80
mainFunction · 0.80
get_ipython_module_pathFunction · 0.80
get_spstrMethod · 0.80
expand_pathFunction · 0.80
unescapeFunction · 0.80
getoutputMethod · 0.80
filter_nsFunction · 0.80
abbrev_cwdFunction · 0.80
_stdin_raw_nonblockMethod · 0.80
_stdin_raw_blockMethod · 0.80
_elide_pointFunction · 0.80

Calls

no outgoing calls

Tested by 6

expect_tokenFunction · 0.64
test_pretty_environFunction · 0.64