gh-71759: Deprecate using bytes-like objects in builtins.
Deprecate using bytes-like objects except bytes and bytearray in builtins int(), float(), compile(), eval() and exec().
- Issue: gh-71759
@serhiy-storchaka, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ericvsmith, @benjaminp and @mdickinson to be potential reviewers.
@serhiy-storchaka did you still want to pursue this?
I am not sure. Removing support of general object providing the buffer protocol will simplify the code, but what if somebody needs it?
@serhiy-storchaka yeah, I don't have a good answer. I guess either ask on python-dev or close this PR to err on the side of backwards-compatibility.
This PR is stale because it has been open for 30 days with no activity.
This PR is stale because it has been open for 30 days with no activity.
When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.
This PR is stale because it has been open for 30 days with no activity.
Thanks @hauntsaninja .
I think the discussion above between @serhiy-storchaka and @brettcannon is still unresolved. Not sure whether we will go ahead with this PR.
This PR is stale because it has been open for 30 days with no activity.
I guess either ask on python-dev or close this PR to err on the side of backwards-compatibility.
As the years go by, the current behaviour becomes more entrenched and backwards compatibility more important. Let's keep the status quo.
I'll close this PR next week if there are no objections.