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 — gh-140870: PyREPL auto-complete module attributes in import statements by loic-simon · Pull Request #140871 · python/cpython Conversation
|
Could you extract those into a separate PR? I think those are nice to have in any case and we can merge it quickly :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sure, #143244 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Quick initial question, can we disable the prompt for stdlib modules? I don't think there should be any concerns with auto-importing from the stdlib |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We could, yes. I don't think we can decide to auto-import solely on module name (to take care of potential shadowing by first/third-party modules), so we would need to look the module spec location, but since we already have (I'll won't be to get my hands on the code until early January tho) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yup, we definitely need to look at the module location, not just the name |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
The new test is quite platform-dependant (I just fixed an iOS + Andoid only fail), it may be a good idea to trigger buildbots on this PR! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks!
I can run the buildbots, do you want them now? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Yes please! I don't plan any more change on my side. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @StanFromIreland for commit 9c80367 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140871%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Okay that was useful, buildbot failures analysis:
DetailsMissing compression.ztsd: AMD64 Debian root PR AMD64 RHEL8 FIPS Only Blake2 Builtin Hash PR AMD64 RHEL8 LTO + PGO PR AMD64 RHEL8 LTO PR AMD64 RHEL8 PR AMD64 RHEL8 Refleaks PR AMD64 Ubuntu Shared PR ARM64 MacOS M1 NoGIL PR ARM64 MacOS M1 Refleaks NoGIL PR ARM64 Raspbian Debug PR ARM64 Raspbian PR PPC64LE RHEL8 LTO + PGO PR PPC64LE RHEL8 LTO PR PPC64LE RHEL8 PR PPC64LE RHEL8 Refleaks PR s390x Fedora Stable Clang Installed PR s390x Fedora Stable Clang PR s390x Fedora Stable LTO + PGO PR s390x Fedora Stable LTO PR s390x Fedora Stable PR s390x Fedora Stable Refleaks PR s390x RHEL8 LTO + PGO PR s390x RHEL8 LTO PR s390x RHEL8 PR s390x RHEL8 Refleaks PR s390x RHEL9 LTO + PGO PR s390x RHEL9 LTO PR s390x RHEL9 PR s390x RHEL9 Refleaks PR x86-64 MacOS Intel ASAN NoGIL PR x86-64 MacOS Intel NoGIL PR Missing collections.abc.Buffer: Missing AMD64 CentOS9 NoGIL Refleaks PR AMD64 FreeBSD Refleaks PR AMD64 RHEL8 Refleaks PR ARM64 MacOS M1 Refleaks NoGIL PR PPC64LE RHEL8 Refleaks PR s390x Fedora Stable Refleaks PR s390x RHEL8 Refleaks PR s390x RHEL9 Refleaks PR A lot of fails: iOS ARM64 Simulator PR |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@StanFromIreland if you could trigger a builbots run again, that would be great! Thanks |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @StanFromIreland for commit da6cf7f 🤖 Results will be shown at: https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F140871%2Fmerge If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Ok, good news: iOS Siumlator is green! Bad news: all Refleaks builds now fail ~all attribute completion tests 😞 Good news: I reproduced in local ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
That check fail doesn't look related to this PR ( Refleak tests pass locally, may I ask for a last run with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
However, it is. You need to update the branch, the current version is incompatible with our CI. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Tighten the pyrepl completer around a few import-completion edge cases. Relative imports now share one resolver, find_spec failures no longer bubble out, failed-import tracking resets when sys.path changes, and double-tab import actions are cleared once consumed. The patch also keeps empty message lines intact in reader output and updates the targeted tests and comments to match the intended behavior.
a7116a1 to
d57de37
Compare
|
Thanks a lot @loic-simon! I made a small commit fixing a bunch of small things and adding fixes for edge cases and related test cleanups. I also rebased the branch onto the latest main and reran the relevant smoke/tests locally. With this I am happy to land :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks a lot Pablo! If don't want to abuse your time, but while you have PyREPL import suggestions in mind, I have this one-line bugfix PR that could use a merge too 😄 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Landed! Thank you for your time :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Heh, of course these two would conflict 😅 fixing it |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks a lot for your contribution @loic-simon 🚀 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…tements (python#140871) Co-authored-by: Pablo Galindo Salgado <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.