Skip to content

Implement as_sequence for array #4585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 2, 2023

Conversation

dannasman
Copy link
Contributor

Hi!

Here is a solution proposal for AsSequence trait's function as_sequence in array.rs. Related to issue #3244.

@youknowone
Copy link
Member

@Snowapril could you review this pr?

Comment on lines 1324 to 1325
let mut objects = zelf.read().get_objects(vm);
objects.push(other.to_owned());
Copy link
Member

Choose a reason for hiding this comment

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

is this different to fn add?

@dannasman dannasman requested review from youknowone and removed request for qingshi163 March 2, 2023 13:23
@fanninpm fanninpm requested a review from qingshi163 March 2, 2023 14:50
Copy link
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

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

looks good, thank you!

@youknowone youknowone merged commit cdf5634 into RustPython:main Mar 2, 2023
@dannasman dannasman deleted the array_as_sequence branch June 17, 2023 19:09
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