[issue38835] pyfpe.h: Exclude PyFPE_START_PROTECT and PyFPE_END_PROTECT from the Py_LIMITED_API

2019-11-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset be143ec99674ba38c5811f34cdb85ef39c2dc8f8 by Victor Stinner in branch 'master': bpo-38835: Don't use PyFPE_START_PROTECT and PyFPE_END_PROTECT (GH-17231) https://github.com/python/cpython/commit/be143ec99674ba38c5811f34cdb85ef39c2dc8f8

[issue38860] GenericPyCData_new does not invoke new or init

2019-11-19 Thread Justin Capella
New submission from Justin Capella : When subclassing the ctypes.Structure class, __new__ and __init__ are not invoked when using the inherited classmethod from_buffer_copy to create the object. I think this is because tp_alloc is ultimately used by GenericPyCData_new when creating the objec

[issue38861] zipfile: Corrupts filenames containing non-UTF8 characters

2019-11-19 Thread John Goerzen
New submission from John Goerzen : The zipfile.py standard library component contains a number of pieces of questionable handling of non-UTF8 filenames. As the ZIP file format predated Unicode by a significant number of years, this is actually fairly common with older code. Here is a very s

[issue23706] pathlib.Path.write_text should include a newline argument

2019-11-19 Thread Tzu-ping Chung
Change by Tzu-ping Chung : -- nosy: +uranusjr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue38853] set.repr breaches docstring contract

2019-11-19 Thread Josh Rosenberg
Josh Rosenberg added the comment: To be clear, the docstring is explicitly disclaiming any ordering contract. If you're reading "unordered" as meaning "not reordered" (like a list or tuple, where the elements appear in insertion order), that's not what "unordered" means here. It means "arbit

[issue38855] test_unpack.py does not catch the unpacking of a set

2019-11-19 Thread Zachary Ware
Zachary Ware added the comment: It's not clear what you're asking for here. Your example works, though the contents of `a` and `c` will each be an arbitrary member of S and `b` the rest of the members of S and you have no guarantee of what you'll get. If you want to be sure of what each na

[issue37367] octal escapes applied inconsistently throughout the interpreter and lib

2019-11-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I can't find who wrote this block treating octal escapes beginning with 4-7 the same as those beginning with 0-3. case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': c = s[-1] - '0'; if (s <

[issue38765] `ast.AST._attributes` is used by `ast.dump()` but not documented

2019-11-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nosying the ast experts, which I meant to do before. -- nosy: +benjamin.peterson, brett.cannon, yselivanov ___ Python tracker ___ ___

[issue38712] add signal.pidfd_send_signal

2019-11-19 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 7483451577916e693af6d20cf520b2cc7e2174d2 by Benjamin Peterson in branch 'master': closes bpo-38712: Add signal.pidfd_send_signal. (GH-17070) https://github.com/python/cpython/commit/7483451577916e693af6d20cf520b2cc7e2174d2 -- resolu

[issue38823] Improve stdlib module initialization error handling.

2019-11-19 Thread Brandt Bucher
Brandt Bucher added the comment: Thanks Victor. These obviously aren’t urgent, so feel free to return to them whenever’s convenient. I also pinged you on #17235 (_tracemalloc) too. -- ___ Python tracker ___

[issue38862] IDLE: Include end whitespace in whitespace fix.

2019-11-19 Thread Terry J. Reedy
New submission from Terry J. Reedy : Format => Strip Trailing Whitespace should strip extra newlines at the end of the file after stripping each line, and make sure that there is at least one. The latter is done when saving, and that code can be reused. -- assignee: terry.reedy compo

[issue38862] IDLE: Include end newlines in whitespace fix.

2019-11-19 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: IDLE: Include end whitespace in whitespace fix. -> IDLE: Include end newlines in whitespace fix. ___ Python tracker ___ __

[issue37367] octal escapes applied inconsistently throughout the interpreter and lib

2019-11-19 Thread Guido van Rossum
Guido van Rossum added the comment: For sure the Python tokenizer/parser should reject octal escapes that produce values >= 256. Certainly in bytes strings. Probably also in text strings (nobody using Unicode thinks in octal). This is ancient behavior though (it's the same in 2.7) so it may

[issue33046] IDLE option to strip trailing whitespace automatically on save

2019-11-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I want to add EOF newline stripping before making this automatic. Otherwise, the new feature will give people a false sense that it is all taken care of. I opened #38862 and hope to do it tomorrow. I may then merge Zackary's PR with any still edits of exis

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16768 pull_request: https://github.com/python/cpython/pull/17275 ___ Python tracker ___ __

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-11-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b8462477bfd01ff21461065d5063e6b0238ca809 by Terry Jan Reedy in branch 'master': bpo-38636: Fix IDLE tab toggle and file indent width (GH-17008) https://github.com/python/cpython/commit/b8462477bfd01ff21461065d5063e6b0238ca809 -- _

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-11-19 Thread miss-islington
Change by miss-islington : -- pull_requests: +16767 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/17274 ___ Python tracker ___ ___

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-11-19 Thread miss-islington
miss-islington added the comment: New changeset 755caaa753577b907bb7e94560f8adf5eb694d6b by Miss Islington (bot) in branch '3.7': bpo-38636: Fix IDLE tab toggle and file indent width (GH-17008) https://github.com/python/cpython/commit/755caaa753577b907bb7e94560f8adf5eb694d6b -- nosy

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-11-19 Thread miss-islington
miss-islington added the comment: New changeset 132243957ce834cf5ffced4bf8e39d00f6e34e5f by Miss Islington (bot) in branch '3.8': bpo-38636: Fix IDLE tab toggle and file indent width (GH-17008) https://github.com/python/cpython/commit/132243957ce834cf5ffced4bf8e39d00f6e34e5f -- ___

<    1   2