Skip to content

Conversation

@MannarAmuthan
Copy link
Contributor

@MannarAmuthan MannarAmuthan commented Oct 11, 2023

  1. Implemented 'reduce', 'setstate' methods in product object of python itertools
  2. Uncommented expected failure annotation and ran tests

Issue:
#3611

@MannarAmuthan MannarAmuthan changed the title [VM] Pickle implementation for product object (python itertools) [VM] Object pickling implementation for product object (python itertools) Oct 11, 2023
r: AtomicCell<usize>, // Size of result tuple
exhausted: AtomicCell<bool>, // Set when the iterator is exhausted
pool: Vec<PyObjectRef>,
// Collected input iterable
Copy link
Member

Choose a reason for hiding this comment

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

The comment place here is looking weird. Isn't this expected to be put on upper line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi,

Thanks for response,

Yeah, actually I am not sure how this is getting formatted (maybe because of my IDE).
Anyway will fix it and push this.

Now Ran (cargo fmt -all)

Copy link
Contributor Author

@MannarAmuthan MannarAmuthan Oct 12, 2023

Choose a reason for hiding this comment

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

some tests are failing after this formatting, But I don't think, it is related to this change(formatting comments).
Is it possible to run tests again?

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.

Thank you! The test is looking flaky

@youknowone youknowone merged commit 9241e2e into RustPython:main Oct 12, 2023
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