Repository navigation
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
for posix=False or whitespace_split=True
picnixz
left a comment
There was a problem hiding this comment.
The NEWS entry is too aggressive, there shpuld be a What's New, and updated versionchanged directives in the shlex.rst file. Overall we are also lacking tests and there are multiple changes made in a single PR. I do not think this is accpetable and I would rather see this as multiple PRs.
However the issue discussion is still stalled and all PRs werr closed. I believe there should be no PR until we reach a consensus as core devs.
| infile = self.infile | ||
| if lineno is None: | ||
| lineno = self.lineno | ||
| return "\"%s\", line %d: " % (infile, lineno) |
There was a problem hiding this comment.
I do not think we should support infile bytes. This will no longer be emacs compliant I think
There was a problem hiding this comment.
Infile can be read from the input stream.
There was a problem hiding this comment.
If the change in output is the problem it can be formatted differently to provide identical output.
|
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 |
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
|
📖 2 files modified Preview · build overview · cpython-previews · built Dec. 4, 2026, 6:39 p.m. UTC |
- linkify NEWS - the shlex class description should also mention bytes
Removes the annoying limitation that byte arrays are not supported by shlex.
Unlike python shlex actual shells use byte arrays, not python strings.