[issue45569] Drop support for 15-bit PyLong digits?

2021-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: How about: create a fake test file test/test_xintperf with test case and test method(s) that run timeit with a suite of int operations and print report. Create 'draft' PRs for main and 3.10 (and 3.9?). Run just this test on buildbots. (I believe I have

[issue45511] Batch-mode input() limited to 4095 characters on *NIX

2021-10-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> test needed title: input() method limited to 4095 characters on *NIX -> Batch-mode input() limited to 4095 characters on *NIX versions: +Python 3.11 -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-22 Thread Stefan Pochmann
Stefan Pochmann added the comment: Yes, I'm more familiar with the issue in the context of strings or lists. Your example of strings like "'x' * 10_000 + str(i)" looks like something I almost certainly used before as counterexample to someone's time complexity claim :-) I the context of

[issue20749] shutil.unpack_archive(): security concerns not documented

2021-10-22 Thread swenson
Change by swenson : -- keywords: +patch nosy: +swenson nosy_count: 3.0 -> 4.0 pull_requests: +27458 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29184 ___ Python tracker

[issue45584] Clarifying truncating in documentation

2021-10-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +27457 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29183 ___ Python tracker

[issue45584] Clarifying truncating in documentation

2021-10-22 Thread Arthur Milchior
New submission from Arthur Milchior : While floor/ceil 's documentation are very precise, `truncate` was not explained. I actually had to search online to understand the difference between `truncate` and `floor` (admittedly, once I remembered that numbers are signed, and that floating

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-22 Thread Tim Peters
Tim Peters added the comment: Stefan, thanks - I think I understand what you're driving at now. You're (re)discovering that sorting by lexicographic ordering rules is _inherently_ suboptimal if list elements can only be compared "starting at index 0" each time. Not just tuples, but also,

[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +27456 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29182 ___ Python tracker

[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-22 Thread Arthur Milchior
New submission from Arthur Milchior : In 3.8, int() default implementation changed, using __index__() if it is available instead of __trunc__(). The file function.rst was updated accordingly, but the redundant information in datamodel.rst contained out of date information I offer a

[issue45305] Unexpected record of call_args_list when passing mutable object to mock.patch

2021-10-22 Thread Andrei Kulakov
Andrei Kulakov added the comment: This issue also came up with MagicMock on stackoverflow: https://stackoverflow.com/questions/23257227/python-mock-method-call-arguments-display-the-last-state-of-a-list/23264042 Dave: glad this helped to clear it up. For the record, the arguments in Python

[issue45566] dataclasses’s `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-22 Thread Eric V. Smith
Change by Eric V. Smith : -- title: dataclasses `test_frozen_pickle` does not use all possible `pickle` protocols -> dataclasses’s `test_frozen_pickle` does not use all possible `pickle` protocols ___ Python tracker

[issue45566] dataclasses `test_frozen_pickle` does not use all possible `pickle` protocols

2021-10-22 Thread Eric V. Smith
Change by Eric V. Smith : -- title: `test_frozen_pickle` does not use all possible `pickle` protocols -> dataclasses `test_frozen_pickle` does not use all possible `pickle` protocols ___ Python tracker

[issue45548] Update Modules/Setup

2021-10-22 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +27455 pull_request: https://github.com/python/cpython/pull/29181 ___ Python tracker ___

[issue45379] Improve errors related to frozen modules.

2021-10-22 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +27454 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29180 ___ Python tracker

[issue45531] field "mro" behaves strangely in dataclass

2021-10-22 Thread Eric V. Smith
Eric V. Smith added the comment: The problem is that dataclasses is looking for a default value for a field by looking at getattr(cls, fieldname), which returns a value when fieldname is "mro". I think the best thing to do, at least for now, is prohibit a field named "mro". Ultimately I'd

[issue45379] Improve errors related to frozen modules.

2021-10-22 Thread Filipe Laíns
Filipe Laíns added the comment: I was looking at the code and it seems PyImport_ImportFrozenModuleObject does not set an error on FROZEN_BAD_NAME, it just returns 0, is this intended? If I pass a bogus object, it will just return 0. This does not seem right. Currently, FROZEN_BAD_NAME is

[issue16889] facilitate log output starting at beginning of line

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.4 ___ Python tracker ___

[issue45582] Rewrite getpath.c in Python

2021-10-22 Thread Steve Dower
Steve Dower added the comment: The PR has more work to do, but the overall layout/changes are more or less there, so happy to discuss feedback/etc. Obviously there are a lot of edge cases here, but they seem to be mostly tested already. And I think we're early enough in alpha to find any

[issue45548] Update Modules/Setup

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27453 pull_request: https://github.com/python/cpython/pull/29179 ___ Python tracker ___

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-22 Thread Eric Snow
Eric Snow added the comment: Thanks for bringing this up, Greg! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45582] Rewrite getpath.c in Python

2021-10-22 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +27452 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29041 ___ Python tracker

[issue45582] Rewrite getpath.c in Python

2021-10-22 Thread Steve Dower
New submission from Steve Dower : As discussed in issue42260, combining the two getpath implementations into a single Python implementation would make it more maintainable and modifiable (particularly where distros need to patch to support alternative layouts). -- assignee:

[issue45305] Incorrect record of call_args_list when using multiple side_effect in mock.patch

2021-10-22 Thread Dave McNulla
Dave McNulla added the comment: I understand. It's a thing I often forget in python that some parameters are passed by value while others are passed by reference (language for parameters I remember from C class about 30 years ago). I do not think I would have caught that with docs, unless

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: i'm considering this fixed based on my testing. we still lack buildbots using out of tree setup. i'll ponder that. But this issue need not track that infrastructure. -- assignee: -> eric.snow resolution: -> fixed stage: patch review ->

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-22 Thread Eric Snow
Eric Snow added the comment: New changeset 17c61045c51512add61a9e75e9c7343cf4e4fb82 by Eric Snow in branch 'main': bpo-45506: Normalize _PyPathConfig.stdlib_dir when calculated. (#29040) https://github.com/python/cpython/commit/17c61045c51512add61a9e75e9c7343cf4e4fb82 --

[issue45292] Implement PEP 654: Exception Groups

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: New changeset f30ad65dbf3c6b1b5eec14dc954d65ef32327857 by Irit Katriel in branch 'main': bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes (GH-28569) https://github.com/python/cpython/commit/f30ad65dbf3c6b1b5eec14dc954d65ef32327857

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +27451 pull_request: https://github.com/python/cpython/pull/29178 ___ Python tracker ___

[issue45477] configure script cannot detect float word ordering on linux

2021-10-22 Thread Sourish Basu
Sourish Basu added the comment: By enabling and disabling optimization flags one by one, I figured out it was '-ipo' (inter-procedural optimization) that was the problem. Without that flag, 'configure' is successful. However, now I have a 'make' error: ./Programs/_testembed.c(1774): error:

[issue45548] Update Modules/Setup

2021-10-22 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +27450 pull_request: https://github.com/python/cpython/pull/29177 ___ Python tracker ___

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-22 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Turns out this was a bug in the freeze.py script I was using. I had added a bug work-around for the modulefinder module and even though it should work as advertised, it seems to be missing some code object attributes when recreating the objects which

[issue45579] [list.append(i) for i in list] causes high resources usage

2021-10-22 Thread Spencer Brown
Spencer Brown added the comment: This is intentional behaviour, you actually created an infinite loop. When you iterate over a list, all Python does is track the current index through the list internally, incrementing it each time. But each iteration, you call list.append() to add a new

[issue45574] Warning: ‘print_escape’ defined but not used

2021-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +27449 pull_request: https://github.com/python/cpython/pull/29176 ___ Python tracker ___

[issue45574] Warning: ‘print_escape’ defined but not used

2021-10-22 Thread miss-islington
miss-islington added the comment: New changeset 4bc5473a42c5eae0928430930b897209492e849d by Nikita Sobolev in branch 'main': bpo-45574: fix warning about `print_escape` being unused (GH-29172) https://github.com/python/cpython/commit/4bc5473a42c5eae0928430930b897209492e849d --

[issue14170] print unicode string error in win8 cmd console

2021-10-22 Thread Tim Golden
Tim Golden added the comment: Closing this as out-of-date. The original bug was reported against 2.7 and Win8, both of which are either end-of-life now. No follow up in 9 years and I'm quite certain that modern Pythons handle all manner of Unicode chars on the console. --

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-22 Thread miss-islington
miss-islington added the comment: New changeset f812fef2f8f12441ce559335645433c8124e7db5 by Miss Islington (bot) in branch '3.10': bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) https://github.com/python/cpython/commit/f812fef2f8f12441ce559335645433c8124e7db5 --

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I've looked at how the importlib freeze logic works, compared to Tools/freeze/freeze.py. The only difference I can spot is that importlib uses C to build the C array and does a compile followed by a marshal.dumps, whereas freeze.py loads all modules

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 423fa1c1817abfa8c3d1bc308ddbbd8f28b69d68 by Dennis Sweeney in branch 'main': bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) https://github.com/python/cpython/commit/423fa1c1817abfa8c3d1bc308ddbbd8f28b69d68 --

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 10.0 -> 11.0 pull_requests: +27448 pull_request: https://github.com/python/cpython/pull/29175 ___ Python tracker

[issue45305] Incorrect record of call_args_list when using multiple side_effect in mock.patch

2021-10-22 Thread Andrei Kulakov
Change by Andrei Kulakov : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45305] Incorrect record of call_args_list when using multiple side_effect in mock.patch

2021-10-22 Thread Andrei Kulakov
Andrei Kulakov added the comment: Dave: what seems to happen here is that mock correctly reporting to you that the object you passed to the mocked func is currently `{}`. What you probably expected it to be is to be equal to what it was at exact time when it was passed, i.e. before it was

[issue44665] asyncio.create_task() documentation should mention user needs to keep reference to the task

2021-10-22 Thread Vincent Bernat
Vincent Bernat added the comment: Hummm, I have a hard time finding a short example when `__del__` is not called until the task is finished. Sorry. I did run into this several time, for example here: https://github.com/ldo/dbussy/pull/45 (and some internal projects as well). So, it happens

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-22 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +27447 pull_request: https://github.com/python/cpython/pull/29174 ___ Python tracker ___

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2021-10-22 Thread Richard van den Berg
Richard van den Berg added the comment: In that case Stijn Hope should create the PR since he wrote the patch. Anyone else could get in trouble for using his code without proper permission. -- ___ Python tracker

[issue40051] Give proper link in help(idlelib/turtledemo/tkinter.sub/test_*/?)

2021-10-22 Thread Éric Araujo
Éric Araujo added the comment: Option 3 seems simple and ok to me. -- nosy: +eric.araujo ___ Python tracker ___ ___

[issue45516] Add protocol description to the Traversable and TraversableResources documentation

2021-10-22 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +27446 pull_request: https://github.com/python/cpython/pull/29173 ___ Python tracker ___

[issue45531] field "mro" behaves strangely in dataclass

2021-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Where does dataclasses call mro()? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-22 Thread Nikita Sobolev
Nikita Sobolev added the comment: I completelly agree that the exable above is out of scope. Because it requires `locals()` to be modified. While this issue is focused on `globals()`. -- ___ Python tracker

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-22 Thread Alex Waygood
Alex Waygood added the comment: @Sergei, I believe that's a much larger issue, and one that's quite difficult to solve. It's one of the principal reasons why `from __future__ import annotations` behaviour wasn't made the default in Python 3.10, as was originally the plan. (This behaviour

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-22 Thread Stefan Pochmann
Stefan Pochmann added the comment: > It's not surprising the 2nd positions are rarely equal _given_ that the > universe has been reduced to the 100 tuples with the same first element. Yes, exactly. > In any case, I don't see the point to this exercise ;-) Just to illustrate why I disagree

[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure

2021-10-22 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: New failure today: https://github.com/python/cpython/runs/3979900415?check_suite_focus=true test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_sendfile.SelectEventLoopTests) ... ok

[issue45574] Warning: ‘print_escape’ defined but not used

2021-10-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- components: +Parser nosy: +lys.nikolaou, pablogsal type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___

[issue45574] Warning: ‘print_escape’ defined but not used

2021-10-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +27445 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29172 ___ Python tracker ___

[issue45531] field "mro" behaves strangely in dataclass

2021-10-22 Thread Éric Araujo
Éric Araujo added the comment: If dataclasses wanted to allow fields named `mro`, it could replace its call to `cls.mro()` with `type.mro(cls)`. But I don’t know if there is a strong use case for such a field. -- nosy: +eric.araujo ___ Python

[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +27444 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29171 ___ Python tracker

[issue45518] Invalid example for typing

2021-10-22 Thread Éric Araujo
Change by Éric Araujo : -- resolution: -> not a bug status: open -> pending type: compile error -> behavior ___ Python tracker ___

[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-22 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Currently, we call _pysqlite_seterror() if sqlite3_open_v2() returns != SQLITE_OK. However, if a memory failure occurs during sqlite3_open_v2(), the database handle is explicitly set to NULL. This _may_ cause _pysqlite_seterror() to segfault, since we

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-10-22 Thread Brett Cannon
Brett Cannon added the comment: I also need to leave a comment on https://github.com/python/typeshed/issues/6030 if/when this is fixed. -- ___ Python tracker ___

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-10-22 Thread Brett Cannon
Brett Cannon added the comment: > One thing I would strongly suggest for consistent terminology: Make > "iterator" mean an object that has both "__next()__" and "__iter()__". The point of this issue, though, is to not make that claim as it's inaccurate. -- stage: patch review ->

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-10-22 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +27443 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29170 ___ Python tracker ___

[issue45580] argparse.ArgumentParser.add_mutually_exclusive_group : metavar create parenthesis undefined behavior

2021-10-22 Thread AbcSxyZ
New submission from AbcSxyZ : Hi, I'm getting a kind of undefined behavior where parenthesis seem handled in a strange way. On display, it has a conflict between parenthesis of the option, and nested parenthesis within a metavar. ## Reproduction script ``` import argparse def main():

[issue45571] Modules/makesetup uses wrong CFLAGS for *shared*

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34958] urllib.error.HTTPError.fp is not closed when error is finalized on Windows

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue24151] test_pydoc fails

2021-10-22 Thread Ned Deily
Change by Ned Deily : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40210] ttk.Combobox focus-out event inheritage

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: Closing as there is not enough information to understand the issue and there was not response to followup questions. -- nosy: +iritkatriel resolution: -> rejected stage: -> resolved status: open -> closed ___

[issue45579] [list.append(i) for i in list] causes high resources usage

2021-10-22 Thread TL
New submission from TL : Version: Python 3.10.0 - Windows 11 (22000.258) x64 Python 3.9.7 - Windows 11, Manjaro Linux 21.1.5 - Kernel 5.13.13-1-MANJARO x64 CPU: 8 × Intel® Core™ i5-8300H CPU @ 2.30GHz Steps to reproduce: 1. Create any list, for example your_list = [1, 2, 3] 2. Execute

[issue45524] Cross-module dataclass inheritance breaks get_type_hints

2021-10-22 Thread Sergei Lebedev
Sergei Lebedev added the comment: Is it worth also addressing the case where a @dataclass/typing.TypeDict class is defined within a function? ``` from __future__ import annotations import

[issue45571] Modules/makesetup uses wrong CFLAGS for *shared*

2021-10-22 Thread miss-islington
miss-islington added the comment: New changeset 269bf56e3d352c415ec38f93017ba8e291ddb18a by Miss Islington (bot) in branch '3.9': bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161) https://github.com/python/cpython/commit/269bf56e3d352c415ec38f93017ba8e291ddb18a --

[issue45578] Missing tests for the dis module

2021-10-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: It looks like it actually -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45578] Missing tests for the dis module

2021-10-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: maybe the latter is not a public function. -- ___ Python tracker ___ ___ Python-bugs-list

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I see this in modules frozen by the Tools/freeze/ tool. The line numbers shown for such frozen modules in the frameinfo stack are a bit off as well, compared normal Python. Could this be an indication that there's something not working quite right,

[issue45571] Modules/makesetup uses wrong CFLAGS for *shared*

2021-10-22 Thread miss-islington
miss-islington added the comment: New changeset 19903085c3ad7a17c8047e1556c700f2eb109931 by Miss Islington (bot) in branch '3.10': bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161) https://github.com/python/cpython/commit/19903085c3ad7a17c8047e1556c700f2eb109931

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: We no longer accept patches. Contributors have to create a PR on GitHub, so we can record contributions and verify the contributor license agreement. -- ___ Python tracker

[issue45578] Missing tests for the dis module

2021-10-22 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- title: Missing tests for he dis module -> Missing tests for the dis module ___ Python tracker ___

[issue45578] Missing tests for he dis module

2021-10-22 Thread Joannah Nanjekye
New submission from Joannah Nanjekye : I don't see any tests for the following: dis.distb dis.findlabels They are documented, I wonder if it was intentional. dis.findlabels is also not dicumented. -- components: Tests messages: 404805 nosy: nanjekyejoannah priority: normal severity:

[issue41222] POpen bufsize=0 ignored with universal_newlines=True

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45571] Modules/makesetup uses wrong CFLAGS for *shared*

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: New changeset f6e8b80d20159596cf641305bad3a833bedd2f4f by Christian Heimes in branch 'main': bpo-45571: use PY_CFLAGS_NODIST for shared Modules/Setup (GH-29161) https://github.com/python/cpython/commit/f6e8b80d20159596cf641305bad3a833bedd2f4f --

[issue45571] Modules/makesetup uses wrong CFLAGS for *shared*

2021-10-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +27441 pull_request: https://github.com/python/cpython/pull/29168 ___ Python tracker

[issue45571] Modules/makesetup uses wrong CFLAGS for *shared*

2021-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +27442 pull_request: https://github.com/python/cpython/pull/29169 ___ Python tracker ___

[issue24151] test_pydoc fails

2021-10-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I wonder if this is worth keeping open, since it's old and no one has reproduced it. I propose closing or OP to share environment details. -- nosy: +nanjekyejoannah ___ Python tracker

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-22 Thread Mark Shannon
Mark Shannon added the comment: If I knew where to look, I would be looking myself :) Is the frozen module one built into CPython or one you have generated? -- ___ Python tracker

[issue24666] Buffered I/O does not take file position into account when reading blocks

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24666] Buffered I/O does not take file position into account when reading blocks

2021-10-22 Thread STINNER Victor
STINNER Victor added the comment: Hi, the io module doesn't use the block size of the filesystem. io.BufferedReader uses a default buffer size of 8 * 1024 bytes. I don't think that it's really important to respect the block size in Python. There are buffers at many levels. io.BufferedReader

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Update: I've been trying hard to find a short version which triggers the issue, but so far it seems to only trigger when using exec() from a frozen Python module. There don't appear to be many ways frame->f_lineno can end up being -1 (which then gets

[issue45487] SSLEOFError regression with certain servers in Python 3.10

2021-10-22 Thread Richard
Richard added the comment: Never mind, I found the root cause after some debugging. Adding AES256-GCM-SHA384 to the cipher string resolved the issue. And now I see that the release notes say this: > The ssl module now has more secure default settings. Ciphers without forward > secrecy or

[issue39838] Possible unnecessary redifinition of _POSIX_C_SOURCE

2021-10-22 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Closing this, someone else can reopen if they see the same. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue22678] An OSError subclass for "no space left on device" would be nice: NoSpaceError

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: Shall we conclude from 7 years of no activity that there isn't much interest in this exception? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2021-10-22 Thread Richard van den Berg
Richard van den Berg added the comment: Here is the updated patch. Is python5004-test.c enough as a test case? -- Added file: https://bugs.python.org/file50390/python2.7-socket-getfqdn.patch ___ Python tracker

[issue45113] [subinterpreters][C API] Add a new function to create PyStructSequence from Heap.

2021-10-22 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > My understanding is that this entire class of code changes has been put on > hold pending Steering Council approval. Can you please point me to the official SC statement regarding this? I cannot find it. > It represents a great deal of code churn and

[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-22 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +27440 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29167 ___ Python tracker ___

[issue45569] Drop support for 15-bit PyLong digits?

2021-10-22 Thread Tim Peters
Tim Peters added the comment: +1 "in theory". But I too don't know whether any platforms would be adversely affected, or how to find out :-( -- nosy: +tim.peters ___ Python tracker

[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-22 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now it only uses a default one. Examples: - `3.9`: https://github.com/python/cpython/blob/aa8c3446c085175e65e736b0d2e32719c4d2/Lib/test/test_zoneinfo/test_zoneinfo.py#L1407 - `3.10`:

[issue45576] Cannot import modules from Zip64 files

2021-10-22 Thread Luis Franca
New submission from Luis Franca : I've tried to import a module from a fat jar file and got a ModuleNotFoundError: No module named ... error. I checked that the jar file had more than 65k files and was created using Zip64. When I unzip the file, Python is capable of importing the modules. I

[issue20937] test_socket: buffer overflow in sock_recvmsg_guts

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: Please create a new issue if you're still seeing this on 3.9+. -- nosy: +iritkatriel ___ Python tracker ___

[issue20937] test_socket: buffer overflow in sock_recvmsg_guts

2021-10-22 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45548] Update Modules/Setup

2021-10-22 Thread Christian Heimes
Christian Heimes added the comment: I added several missing module definitions in https://github.com/python/cpython/pull/29164 math/cmath conflict when _math.c is included twice. -- ___ Python tracker

[issue45570] Simplify setup macros for pyexpat and _elementtree

2021-10-22 Thread miss-islington
miss-islington added the comment: New changeset ec93721e0066c4cbe40085188a9bf0952aa935ef by Christian Heimes in branch 'main': bpo-45570: Simplify setup macros for pyexpat (GH-29159) https://github.com/python/cpython/commit/ec93721e0066c4cbe40085188a9bf0952aa935ef -- nosy:

[issue45570] Simplify setup macros for pyexpat and _elementtree

2021-10-22 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45575] Use a more principled approach to freelists

2021-10-22 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +27439 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29165 ___ Python tracker ___

[issue45575] Use a more principled approach to freelists

2021-10-22 Thread Mark Shannon
New submission from Mark Shannon : We have multiple freelists for performance, but they are adhoc and poorly integrated with the underlying allocator. Improving this should give us a decent speedup. -- assignee: Mark.Shannon components: Interpreter Core messages: 404788 nosy:

  1   2   3   >