bpo-39584: raise ValueError when creating shared memory of size greater than 1TB#21877
bpo-39584: raise ValueError when creating shared memory of size greater than 1TB#21877vinay0410 wants to merge 1 commit into
Conversation
7ca8853 to
7468c1c
Compare
|
reopened PR to re-trigger CI |
There was a problem hiding this comment.
I don't think this is a valid use of the code role.
There was a problem hiding this comment.
Can you have a look at this: #21556 (comment)
There was a problem hiding this comment.
Hmm. Okay. But double backquotes are usually used in cases like this (as specified by the developer's guide https://devguide.python.org/documenting/#inline-markup).
There was a problem hiding this comment.
I guess both of them work. See this https://devguide.python.org/documenting/#module-specific-markup .
I was going for this because it is tried and tested.
Although, if you still want me to change to double back ticks, I will make changes.
There was a problem hiding this comment.
I don't think there's a need for this comment.
There was a problem hiding this comment.
I added this comment because similar tests around this test use such comments.
There was a problem hiding this comment.
There's no need for a variable here.
There was a problem hiding this comment.
Totally agree, I will remove that.
But, if you see there are similar tests around this test assigning an unnecessary variable, should I remove those too ? Or should raise another pull request removing those.
6eaa6da to
691f27c
Compare
691f27c to
84bb92d
Compare
ronaldoussoren
left a comment
There was a problem hiding this comment.
This PR changes the limit for all systems, not just on macOS. I'd prefer to have the limit only on macOS, the behaviour of other unix-y systems (and in particular Linux) is different and likely don't need this artificial limit.
| if not isinstance(item, (str, bytes)) | ||
| else self._types_mapping[type(item)] % ( | ||
| self._alignment * (len(item) // self._alignment + 1), | ||
| ) |
There was a problem hiding this comment.
Please don't mix actual changes with formatting changes.
| try: | ||
| offset = self._offset_data_start + self._allocated_offsets[position] | ||
| offset = self._offset_data_start + \ | ||
| self._allocated_offsets[position] |
| else: | ||
| allocated_length = self._allocated_offsets[position + 1] - item_offset | ||
| allocated_length = self._allocated_offsets[position + | ||
| 1] - item_offset |
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
Also: I don't feel qualified to approve changes to multiprocessing. This is a complex library that I don't use myself. |
tiran
left a comment
There was a problem hiding this comment.
Please read my most recent comment on bpo. 1 TB is arbitrary and far too low.

https://bugs.python.org/issue39584