Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove Sergey from Thanks as per his request
  • Loading branch information
jb2170 committed May 22, 2025
commit 2086547af696a30557c38efb3d8bb015a247cb1c
1 change: 0 additions & 1 deletion peps/pep-0786.rst
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ Thanks

Thank you to

* Sergey B Kirpichev, for discussions and implementation code.
* Raymond Hettinger, for the initial suggestion of the two's complement behavior.
Copy link
Contributor

Choose a reason for hiding this comment

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

Again, Raymond's initial suggestion was very different from proposed here: when value not fits to the two's complement format - error should be raised. In fact, it's now in "Rejected Alternatives", if I have read this huge text correctly.

I suggest you to either drop everything, related to specific handling of the z flag, or ask @rhettinger if he is ok with proposed here behavior (i.e. z will be an alias to value % 2**prec for 'b' type, no errors or anything else to indicate that value not fits).

Copy link
Author

Choose a reason for hiding this comment

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

@rhettinger do you want to be included in the Thanks section? Your suggestion was part of the basis of the z flag in this PEP.

The main difference is that we don't raise a ValueError for 'out of range integers' since the modular arithmetic is more of a feature than a bug!

Copy link
Author

Choose a reason for hiding this comment

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

I'll leave it in

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, it's not just about "thanks".

So far, your new handling of the 'z' flag backed only by Raymond's feature request. But it's not clear if this issue was solved as author expected. Meanwhile, I suggest moving proposal for the 'z' flag to the Open Issues section.



Expand Down