[issue45742] python -h can't find -R option

2021-11-07 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.11, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45743] Cleanup and simplify setup.py

2021-11-07 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +27712 pull_request: https://github.com/python/cpython/pull/29457 ___ Python tracker ___

[issue45739] The Python implementation of Decimal does not support the "N" format

2021-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: I don’t think “N” should be supported. It was never the intention to have it work. -- ___ Python tracker ___

[issue45741] entry points singular?

2021-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: I think “provide” would be better. -- keywords: +easy nosy: +eric.smith ___ Python tracker ___ ___

[issue45742] python -h can't find -R option

2021-11-07 Thread Eryk Sun
Eryk Sun added the comment: Apparently -R is still implemented in Python 3, even though hash randomization is enabled by default now. Unlike Python 2, in Python 3 -R overrides the PYTHONHASHSEED environment variable, making it effectively the same as "PYTHONHASHSEED=random". For example:

[issue45710] Junction/symbolic folder access error on Windows 11

2021-11-07 Thread Fabio Storino
Fabio Storino added the comment: Hello, Eryk. Just to let you know that a regular Python installation was able to access my junction folder in AppData and run scripts there. Thank you for the information on how store apps handle reads/writes in the AppData folder. This is my first bug

[issue43073] Adding a ctypes.Union to a ctypes.BigEndianStructure results in an error

2021-11-07 Thread rindeal
rindeal added the comment: I have created a workaround, since it might take years to fix this in master. Hope it'll come in useful. For the example in https://bugs.python.org/issue43073#msg385970, but probably any combination of Unions and BigEndianStructures can be constructed this way.

[issue45742] python -h can't find -R option

2021-11-07 Thread Eryk Sun
Eryk Sun added the comment: Either the documentation [1] or the behavior needs to be fixed. The following statement is false: Turn on hash randomization. This option only has an effect if the PYTHONHASHSEED environment variable is set to 0, since hash randomization is enabled by

[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: I think your option 2 makes the most sense. -- ___ Python tracker ___ ___ Python-bugs-list

[issue45743] Cleanup and simplify setup.py

2021-11-07 Thread Christian Heimes
New submission from Christian Heimes : Motivated by deprecation of distutils, I like to move more logic and checks from setup.py into configure.ac. Eventually I like to get rid of setup.py. The file contains a bunch of complicated checks and macOS-specific adjustments that I cannot verify on

[issue45710] Junction/symbolic folder access error on Windows 11

2021-11-07 Thread Eryk Sun
Eryk Sun added the comment: All we can do here is document the store app's limitation on cross-volume reparse points (junctions, symlinks) in "%UserProfile%\AppData". I suppose it's a rare enough problem that it can just be closed as a third-party issue. -- resolution: works for me

[issue45743] Cleanup and simplify setup.py

2021-11-07 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch, patch pull_requests: +27710, 27711 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29456 ___ Python tracker

[issue45743] Cleanup and simplify setup.py

2021-11-07 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +27710 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29456 ___ Python tracker

[issue22708] httplib/http.client in method _tunnel used HTTP/1.0 CONNECT method

2021-11-07 Thread Éric Araujo
Change by Éric Araujo : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-11-07 Thread Martin
Martin added the comment: Could the participants of this issue please have a look at my pull request: https://github.com/python/cpython/pull/29299 What do you like, what don't you like? Does it work for your use case? -- ___ Python tracker

[issue41544] multiprocessing.dummy.Process lacks daemon parameter

2021-11-07 Thread Martin
Change by Martin : -- nosy: +davin, pitrou type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45723] Improve and simplify configure.ac checks

2021-11-07 Thread Christian Heimes
Christian Heimes added the comment: New changeset be3cd5c05d9fb1d1cdb55cb98ca6ef8f866774be by Christian Heimes in branch 'main': bpo-45723: Detect missing pkg-config (GH-29442) https://github.com/python/cpython/commit/be3cd5c05d9fb1d1cdb55cb98ca6ef8f866774be --

[issue45615] Missing test for type of error when printing traceback for non-exception

2021-11-07 Thread Nikita Sobolev
Nikita Sobolev added the comment: 1. Thanks! Yes, this is exactly the case I am talking about. Right now, this test won't pass: ``` def test_print_exception_bad_type_python(self): with self.assertRaises(TypeError): traceback.print_exception(42) ``` Why? Because we

[issue45708] PEP 515-style formatting with underscores does not seem to work for Decimal

2021-11-07 Thread Mark Dickinson
Mark Dickinson added the comment: Christian Heimes pointed out in the PR discussion that we can't simply modify libmpdec, since some vendors unbundle the mpdecimal library. So some options are: 0. Do nothing. 1. Request that this feature to be added upstream, so that it eventually makes

[issue42369] Reading ZipFile not thread-safe

2021-11-07 Thread Spencer Brown
Change by Spencer Brown : -- nosy: +Spencer Brown ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45724] Segmentation fault

2021-11-07 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45745] ./python -m test --help output for refleaks seems wrong

2021-11-07 Thread Skip Montanaro
New submission from Skip Montanaro : Just preparing to make a refleaks test run, so I ran: ./python -m test --help The output related to refleaks seemed suspicious: ... Special runs: -l, --findleaks deprecated alias to --fail-env-changed ... --fail-env-changedif a test file

[issue45743] Cleanup and simplify setup.py

2021-11-07 Thread Christian Heimes
Christian Heimes added the comment: For reference: https://opensource.apple.com/source/ld64/ld64-242/doc/man/man1/ld.1.auto.html > search_paths_first > This is now the default (in Xcode4 tools). When processing -lx the linker > now searches each directory > in its library search paths for

[issue45745] ./python -m test --help output for refleaks seems wrong

2021-11-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: IIUC you're looking for --huntrleaks/-R, not the unrelated --findleaks/-l: In that -m test -h menu: -l, --findleaks deprecated alias to --fail-env-changed -R RUNCOUNTS, --huntrleaks RUNCOUNTS search for reference leaks

[issue45644] Make json.tool soak up input before opening output for writing

2021-11-07 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: The proposed path does not work for `python -m json.tool --json-lines test.json test.json`. There is also https://github.com/python/cpython/pull/7865 that aims to fix this bug but I did not have the time to get back to it. -- nosy: +remi.lapeyre

[issue21436] Consider leaving importlib.abc.Loader.load_module()

2021-11-07 Thread Nick Coghlan
Nick Coghlan added the comment: FWIW, I think it would be desirable to retain/restore some form of API that allows the creation of modules from files without requiring the user to know about module specs (or loaders, or anything else). My current preference would be for a

[issue45366] dataclass init=False field with default works but default_factory does not

2021-11-07 Thread Andrei Kulakov
Andrei Kulakov added the comment: I think a good possible solution is to raise an error if `default_factory` is provided on a `init=False` dataclass that doesn't have a `__init__()` defined. However, it will create a slight inconsistency because there will be an error when `__init__` is not

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

2021-11-07 Thread Zachary Ware
Change by Zachary Ware : -- pull_requests: +27713 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/29459 ___ Python tracker ___

[issue41663] Support Windows pseudoterminals in pty and termios modules

2021-11-07 Thread Pradyun Gedam
Pradyun Gedam added the comment: https://github.com/spyder-ide/pywinpty might be relevant; although it's implemented in Rust. -- nosy: +pradyunsg ___ Python tracker ___

[issue45743] Cleanup and simplify setup.py

2021-11-07 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45746] ftplib please revisit retrlines('RETR as it produces files without newlines

2021-11-07 Thread Matthew H. McKenzie
New submission from Matthew H. McKenzie : Lib/ftplib.py function retrlines Inspired by documentation the following writes a file without line-endings: from ftplib import FTP ftp=FTP() ftp.connect('hostname') ftp.login('user','') ftp.sendcmd('pasv') with open('crap2.txt', 'w') as

[issue45744] Fix Flawfinder C Errors

2021-11-07 Thread Abdur-rahmaan Janhangeer
New submission from Abdur-rahmaan Janhangeer : Greetings all, I was doing a security audit using https://dwheeler.com/flawfinder/ There are quite some issues. Before i PR, i am opening an issue as per the dev guide. Await further comments. Thanks! -- messages: 405910 nosy: appinv

[issue45743] Cleanup and simplify setup.py

2021-11-07 Thread Ned Deily
Ned Deily added the comment: It seems to me that some (most?) of the macOS-specific workarounds in setup.py were added to make it easy to build with the system-provided copies of the third-party libraries, like zlib and sqlite3 and openssl. At least one of the workarounds,

[issue45743] Cleanup and simplify setup.py

2021-11-07 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the detailed explanation, Ned. Much appreciated! For non-Mac users: macOS 10.6 was released in 2009 and 10.9 in 2013. IMHO it is reasonable to ask people to provide their own copies of libraries on older system. We also require OpenSSL 1.1.1,

[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-11-07 Thread Andrei Kulakov
Andrei Kulakov added the comment: Martin: I'm not sure what is the best way to fix this issue, so I hope someone else will look into this. -- ___ Python tracker ___

[issue41544] multiprocessing.dummy.Process lacks daemon parameter

2021-11-07 Thread Martin
Martin added the comment: Could someone have a look at my pull request? I have trouble with the tests. -- ___ Python tracker ___

[issue45615] Missing test for type of error when printing traceback for non-exception

2021-11-07 Thread Irit Katriel
Irit Katriel added the comment: 1. I don't think we need such a clone of exception. We just need something like these two tests: @cpython_only def test_print_exception_bad_type_ct(self): with self.assertRaises(TypeError): from _testcapi import exception_print

[issue45739] The Python implementation of Decimal does not support the "N" format

2021-11-07 Thread Mark Dickinson
Mark Dickinson added the comment: Interesting. I think the behaviour of the Python implementation behaviour is actually more correct here: neither `int` nor `float` supports 'N', and I'm not seeing any indication in tests or documentation that 'N' should be supported. So is this a bug in

[issue45615] Missing test for type of error when printing traceback for non-exception

2021-11-07 Thread Irit Katriel
Irit Katriel added the comment: I see what you mean. I think it's ok in traceback.py to reject an exception clone which is not an instance of BaseException. I agree this should not be backported. You could make that explicit by adding a few words to this sentence in the doc, to make it about

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

2021-11-07 Thread Éric Araujo
Éric Araujo added the comment: I think that second PR was linked using the GitHub PR link field present in the bug comment form. -- ___ Python tracker ___

[issue45741] entry points singular?

2021-11-07 Thread miss-islington
miss-islington added the comment: New changeset 19b107e9b52dbd73f4c52adcb91e8185a53b45ae by Rafael Fontenelle in branch 'main': bpo-45741: docs: fix plural (GH-29461) https://github.com/python/cpython/commit/19b107e9b52dbd73f4c52adcb91e8185a53b45ae -- nosy: +miss-islington

[issue45741] entry points singular?

2021-11-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +27716 pull_request: https://github.com/python/cpython/pull/29463 ___ Python tracker ___

[issue45723] Improve and simplify configure.ac checks

2021-11-07 Thread Christian Heimes
Christian Heimes added the comment: New changeset 57c50c9c7c701a8301c5a89b2b2d050550f62022 by Christian Heimes in branch 'main': bpo-45723: Add helper macros and more caching to configure.ac (GH-29429) https://github.com/python/cpython/commit/57c50c9c7c701a8301c5a89b2b2d050550f62022

[issue39228] traceback.FrameSummary does not handle exceptions from `repr()`

2021-11-07 Thread Martin
Martin added the comment: I submitted a pull request for the related issue43656: https://github.com/python/cpython/pull/29299 It introduces a format_locals parameter that enables the customized formatting of a FrameSummary. This way, a user of traceback could provide a function that

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

2021-11-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: PR-29419 solves the issue in #45717 of not giving a link for _* modules with no doc. It does not solve this issue of giving the proper link for module that need non-standard links, which typically need a '#' suffix, as in

[issue45712] Typo in "control flow" documentation

2021-11-07 Thread jiahua wang
Change by jiahua wang : -- keywords: +patch nosy: +180909 nosy_count: 2.0 -> 3.0 pull_requests: +27714 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29460 ___ Python tracker

[issue45741] entry points singular?

2021-11-07 Thread Rafael Fontenelle
Change by Rafael Fontenelle : -- keywords: +patch pull_requests: +27715 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29461 ___ Python tracker

[issue45741] entry points singular?

2021-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 77afb76942ea7067d74d9c07fb4da6f5f23ad2f5 by Miss Islington (bot) in branch '3.10': bpo-45741: docs: fix plural (GH-29461) (GH-29463) https://github.com/python/cpython/commit/77afb76942ea7067d74d9c07fb4da6f5f23ad2f5 --

[issue45741] entry points singular?

2021-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for your contribution! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45746] ftplib please revisit retrlines('RETR as it produces files without newlines

2021-11-07 Thread Matthew H. McKenzie
Matthew H. McKenzie added the comment: On the face of it it is my mistake for using the write method for my file. But read on. your write_line() adds an EOL, OK, because it wraps print(). So the retrlines() function strips them in anticipation? The error is arguably in my own code as I

[issue45746] ftplib please revisit retrlines('RETR as it produces files without newlines

2021-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: Please tell us: - What the file contains, and what you're expecting it to contain. - What system are you running on? crap2.txt (the source file) is a single line, so I'm not sure what you're expecting to happen. -- nosy: +eric.smith

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-07 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: ThreadPool handles tasks concurrently through Threads so users need not worry about the creation/deletion of Threads, it uses reuses threads whenever possible and it can handle any tasks. However, it should be possible for users to at least

[issue40139] mimetypes module racy

2021-11-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Without assurance that the problem exists in current python, let alone a reproducing code, there is nothing we can do. If this or a related problem occurs again, this can be reopened, or a new issue started. -- resolution: -> out of date stage:

[issue45746] ftplib please revisit retrlines('RETR as it produces files without newlines

2021-11-07 Thread Matthew H. McKenzie
Matthew H. McKenzie added the comment: To answer your original questions : Linux Host and Client, amd MVS (EBCDIC records) to Linux. hacks to overcome (in libftp): def print_line(line): '''Default retrlines callback to print a line.''' print(line, end='')< suppress