Skip to content

Implement as_sequence for array#4585

Merged
youknowone merged 7 commits into
RustPython:mainfrom
dannasman:array_as_sequence
Mar 2, 2023
Merged

Implement as_sequence for array#4585
youknowone merged 7 commits into
RustPython:mainfrom
dannasman:array_as_sequence

Conversation

@dannasman

Copy link
Copy Markdown
Contributor

Hi!

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

@youknowone

Copy link
Copy Markdown
Member

@Snowapril could you review this pr?

Comment thread stdlib/src/array.rs Outdated
Comment on lines +1324 to +1325
let mut objects = zelf.read().get_objects(vm);
objects.push(other.to_owned());

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.

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

@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.

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