[issue35714] Document that the null character '\0' terminates a struct format spec

2021-06-19 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, this looks closeable. Thank you! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2021-06-18 Thread Irit Katriel
Irit Katriel added the comment: This seems resolved, can it be closed? -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 4ea802868460fad54e40cb99eb0ca283b3b293f0 by Miss Islington (bot) in branch '3.7': [3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5ff5edfef63b3dbc1abb004b3fa4b3db87e79ff9 by Zackery Spytz in branch '3.8': [3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +19679 pull_request: https://github.com/python/cpython/pull/20420 ___ Python tracker ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +19678 pull_request: https://github.com/python/cpython/pull/20419 ___ Python tracker ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Zackery, do you mind to create a backport to 3.8? -- ___ Python tracker ___ ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-26 Thread miss-islington
miss-islington added the comment: New changeset 5221a10dde4a3853fe7ace316d95767648055109 by Miss Islington (bot) in branch '3.9': bpo-35714: Reject null characters in struct format strings (GH-16928) https://github.com/python/cpython/commit/5221a10dde4a3853fe7ace316d95767648055109

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3f59b55316f4c6ab451997902579aa69020b537c by Zackery Spytz in branch 'master': bpo-35714: Reject null characters in struct format strings (GH-16928) https://github.com/python/cpython/commit/3f59b55316f4c6ab451997902579aa69020b537c --

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19638 pull_request: https://github.com/python/cpython/pull/20375 ___ Python tracker ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19639 pull_request: https://github.com/python/cpython/pull/20376 ___ Python tracker ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +19637 pull_request: https://github.com/python/cpython/pull/20374 ___ Python tracker ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2020-05-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +19636 pull_request: https://github.com/python/cpython/pull/20373 ___ Python tracker

[issue35714] Document that the null character '\0' terminates a struct format spec

2019-10-26 Thread Zackery Spytz
Zackery Spytz added the comment: I've created a patch to reject null characters in the format string. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2019-10-26 Thread Mark Dickinson
Mark Dickinson added the comment: I agree with Serhiy. Any other unrecognised character would raise an error. The null character should do the same. -- nosy: +mark.dickinson ___ Python tracker

[issue35714] Document that the null character '\0' terminates a struct format spec

2019-10-25 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +16457 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16928 ___ Python tracker ___

[issue35714] Document that the null character '\0' terminates a struct format spec

2019-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think the null character is illegal character in the format string, and struct functions should raise a struct.error for it. -- nosy: +serhiy.storchaka ___ Python tracker

[issue35714] Document that the null character '\0' terminates a struct format spec

2019-01-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm not sure whether having NULLs terminate a struct format string is a feature or a bug. Given that nearly every other string in Python treat NULLs as ordinary characters, I'm inclined to say this is a bug. Or at least an unnecessary restriction that

[issue35714] Document that the null character '\0' terminates a struct format spec

2019-01-10 Thread Dan Snider
New submission from Dan Snider : ie.: >>> from struct import calcsize >>> calcsize('\144\u0064\000xf\U0031000\60d\121\U0051') 16 I'm sure some people think it's obvious or even expect the null character to signal EOF but it probably isn't obvious at all to those without