GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — deepreload: don't reload standard-library modules (fixes #14292, closes #13331) by glaziermag · Pull Request #15402 · ipython/ipython Conversation🤖🤖 Agent-written change (Claude Code), per CONTRIBUTING.md.
This PR skips any module whose top-level name is in import os, sys, tempfile, pathlib from IPython.lib.deepreload import reload as dreload from IPython.lib.pretty import pretty d = tempfile.mkdtemp(); sys.path.insert(0, d) pathlib.Path(d, "m.py").write_text("import os\n") import m dreload(m) # main: prints "Reloading os", "Reloading abc", ... print(pretty(os.environ)[:9]) # main: environ({ this branch: environ{' The new Related: the Linux/3.11 skips added in 8ec6f87 blame "an upstream matplotlib marker-style regression" and "an os.environ repr format difference". They match this mechanism. The 07-07 job failed 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsdreload() re-executed any stdlib module imported while its import hook was active (os, enum, re, codecs, ...), replacing os.environ with an instance of a new os._Environ class and enum.Enum with a new class. Closes ipython#13331, fixes ipython#14292. Co-Authored-By: Claude Opus 5.5 <[email protected]> This branch has not been deployedNo deployments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. test_deepreload breaks test_pretty_environ with Python 3.12 Maybe use sys.stdlib_module_names for deepreload.Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |