Skip to content

Relocate vm.issubclass to obj.is_subclass#3345

Merged
youknowone merged 4 commits into
RustPython:mainfrom
ChJR:feature/relocate_is_subclass
Oct 23, 2021
Merged

Relocate vm.issubclass to obj.is_subclass#3345
youknowone merged 4 commits into
RustPython:mainfrom
ChJR:feature/relocate_is_subclass

Conversation

@ChJR

@ChJR ChJR commented Oct 19, 2021

Copy link
Copy Markdown
Contributor

This PR fixes Task 7 of #3324.

@Snowapril

Copy link
Copy Markdown
Contributor

How about move also abstract_issubclass and recursive_issubclass to object.rs?
They must be only used in the issubclass method, I think 😉

@DimitrisJim

Copy link
Copy Markdown
Member

Yeah, I agree with @Snowapril but I'd say we leave it to another PR.

@ChJR can you rebase this?

@ChJR ChJR force-pushed the feature/relocate_is_subclass branch from 62e59d2 to ba4dace Compare October 20, 2021 16:07
@youknowone

Copy link
Copy Markdown
Member

I think relocating abstract_issubclass and recursive_issubclass is part of this PR. they are internal functions and not expected to be called outside, but visibility is changed to pub for now.

@Snowapril

Snowapril commented Oct 21, 2021

Copy link
Copy Markdown
Contributor

isinstance in #3344 also need to be handled later, as there is also abstract_isinstance 😁

@DimitrisJim

Copy link
Copy Markdown
Member

Sorry for requesting this once more @ChJR, but #3307 was pushed through with priority, could you rebase again?

@youknowone youknowone added hacktoberfest-accepted Ask us to label this to your PR and removed hacktoberfest-accepted Ask us to label this to your PR labels Oct 23, 2021
@ChJR ChJR force-pushed the feature/relocate_is_subclass branch from ba4dace to 2cd6e88 Compare October 23, 2021 08:43
@youknowone youknowone merged commit e139364 into RustPython:main Oct 23, 2021
@youknowone youknowone added the hacktoberfest-accepted Ask us to label this to your PR label Oct 23, 2021
@ChJR ChJR deleted the feature/relocate_is_subclass branch October 24, 2021 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted Ask us to label this to your PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants