Skip to content

Use inspect.getmodule to prevent redundant output in whats_left.sh - #2760

Merged
youknowone merged 1 commit into
RustPython:masterfrom
jamestwebber:dedup-whats-left
Jul 29, 2021
Merged

youknowone merged 1 commit into
RustPython:masterfrom
jamestwebber:dedup-whats-left

Conversation

@jamestwebber

Copy link
Copy Markdown
Contributor

As I (very slowly) progress toward making an actual contribution, I wanted to propose a tweak to whats_left.sh. In its current form, the script uses dir to crawl the modules and this means that there is some redundant output from items defined somewhere else. A big culprit is __loader__ (see #2732) but there are others. In total this shaves 388 (redundant) lines from the output. The missing_items and mismatched_items go down but I think that was because they overcounted before.

Another thing I noticed in the output is that for some entries, RustPython is actually better than the CPython implementation. Many of the entries in operator have a signature, where the CPython version returns None. I'm not sure it makes sense to include those in the output but that's a separate change.

@youknowone youknowone left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! now it will look even better.

@youknowone

Copy link
Copy Markdown
Member

Do you have any suggestion about the signature check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants