[issue46005] [doc] replace 'distutils' examples with 'setuptools'

2021-12-12 Thread Elmir
Elmir added the comment: I think it would be very helpful to include an example how to build with setuptools as well. As it in the end boils down to two simple steps: * install 'setuptools' package * change import line: "from distutils.core import setup, Extension" to "from setuptools

[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-12 Thread László Attila Tóth
László Attila Tóth added the comment: According to the documentation only the ArgumentParser has add_argument_group option, which is not true, the code allows me to add a subgroup to any group. The complete example is in issue 4608: https://bugs.python.org/issue46058 If add_argument_group

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2021-12-12 Thread Larry Hastings
Larry Hastings added the comment: I can confirm that the behavior is fixed in ZFS on Linux. My test case C program now prints "Everything is okay." when run on a ZFS partition on Linux, and test_touch_common from the current tree passes every time. ZFS fixing this was the best possible

[issue46060] Clarify asyncio.new_event_loop return value

2021-12-12 Thread Paul Bryan
Change by Paul Bryan : -- keywords: +patch nosy: +pbryan nosy_count: 2.0 -> 3.0 pull_requests: +28299 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30078 ___ Python tracker

[issue46060] Clarify asyncio.new_event_loop return value

2021-12-12 Thread Paul Bryan
New submission from Paul Bryan : Currently, the documentation states it creates a new event loop; it should also indicate that it returns the newly created event loop. -- assignee: docs@python components: Documentation messages: 408425 nosy: docs@python, pbryan2 priority: normal

[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

2021-12-12 Thread Eryk Sun
Eryk Sun added the comment: Try using symlinks if you're allowed, e.g. `python -m venv --symlinks `. Note that a virtual environment created with symlinks is unreliable in some cases because ShellExecute[Ex]W() eagerly resolves a symlink before calling CreateProcessW(). Also, you won't be

[issue20741] Documentation archives should be available also in tar.xz format

2021-12-12 Thread Ned Deily
Ned Deily added the comment: Documentation downloads are still built and provided for each release (as linked to from https://www.python.org/doc/ and https://www.python.org/doc/versions/) as well as daily for the heads of each active bugfix and feature branch, in each case via the "Download

[issue46052] IDLE: make Ctrl, Alt + IME non-ascii letter work on Windows

2021-12-12 Thread Eryk Sun
Eryk Sun added the comment: I think the following wiki article still applies even though it was first discussed in 2003: "KeySyms on platforms other than X11" [1]. In particular, it states the following: On Windows and MacOS X Tk only supports keysyms correctly for a limited number

[issue46052] IDLE: make Ctrl, Alt + IME non-ascii letter work on Windows

2021-12-12 Thread Eryk Sun
Eryk Sun added the comment: The alternate keyboard shortcuts for the clipboard work fine with a Russian keyboard layout: copy: Ctrl+Insert cut: Shift+Delete paste: Shift+Insert Some programs also support Alt+Backspace for undo (Ctrl+Z). Watch out with Shift+Delete in GUI shells,

[issue37584] Multiple test failures with OSError: [Errno 84] Invalid or incomplete multibyte or wide character on ZFS with utf8only=on

2021-12-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: Confirmed. Repro: Do an ubuntu 20.04 install and choose "experimental zfs" support during install - https://ubuntu.com/blog/zfs-focus-on-ubuntu-20-04-lts-whats-new). On such a zfs filesystem, the following tests from a ./python -m test.regrtest run fail

[issue16247] Report failing url in URLError?

2021-12-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: It is going to take a few weeks for me to get to my alerts, I will address this as soon as I get to it . Thanks for the triage, Irit. On Mon, Dec 13, 2021, 12:31 AM Irit Katriel wrote: > > Change by Irit Katriel : > > > -- > status: open ->

[issue40059] Provide a toml module in the standard library

2021-12-12 Thread Shantanu
Shantanu added the comment: Given that this currently seems blocked on the broad question of "how should additions and removals to the stdlib be managed", I'd like to not focus too hard just yet on the specifics of tomli. I assume it's unlikely, but for all we know, the SC could determine

[issue46052] IDLE: make Ctrl, Alt + IME non-ascii letter work on Windows

2021-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed #31244 as a duplicate of this. The modifier code for tkinter.Event.__repr__ can be used to construct the modifier part of the reconstructed event sequence. Just join with '-' instead of '|'. -- title: Ctrl+C, C+V in tk.Text on Windows do

[issue31244] IDLE: work around shortcuts bug in Windows' IMEs and tk

2021-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: What makes IDLE different from other desktop apps is that is it written in Python, uses the tkinter wrapping of cross-platform tcl/tk, and allows users to customize nearly all hotkey shortcuts. But tk only allows Ascii chars, with modifiers, for hotkeys.

[issue46059] Typo in match Statement example

2021-12-12 Thread Vivek Vashist
New submission from Vivek Vashist : Possible Typo in match statement example. https://docs.python.org/3/tutorial/controlflow.html#match-statements BROKEN: > python Python 3.10.0b4 (default, Nov 15 2021, 18:26:05) [Clang 12.0.0 (clang-1200.0.32.29)] on darwin Type "help", "copyright",

[issue46052] Ctrl+C, C+V in tk.Text on Windows do not work with Cyrillic keys

2021-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a duplicate of #31244, but I continue here with more experiments using the code above. I first confirmed that on Windows, CapsLock is really 'caps inversion. Keycode 67 is the keycode for 'C' given in https://www.tcl.tk/man/tcl/TkCmd/keysyms.html

[issue45995] string formatting: normalize negative zero

2021-12-12 Thread John Belmonte
John Belmonte added the comment: potential short-term solution for Decimal: if negative zero option is set and sign is negative: pre-round into a temp using mpd_qrescale() if mpd_iszero(temp): change sign to positive -- ___

[issue22047] argparse improperly prints mutually exclusive options when they are in a group

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: While I was unable to reproduce this rendering error, there are other issues due to nesting of argument groups, and I wonder if we should deprecate those operations, along the lines of Paul's patch on this issue (but with deprecation rather than raising an

[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: According to the docs it should be >>> xgrp = parser.add_argument_group() rather than >>> xgrp = grp.add_argument_group() This seems to work: >>> parser = argparse.ArgumentParser() >>> grp = parser.add_argument_group('Database settings') >>>

[issue20751] Harmonize descriptor protocol documentation: direct call, super binding with Descriptor Howto docs

2021-12-12 Thread Jan Kaliszewski
Jan Kaliszewski added the comment: Sure. But don't you think there should be ``.__get__(a, type(a))`` rather than ``.__get__(a, A)``? Then the whole statement would be true regardless of whether A is the actual type of a, or only a superclass of the type of a. That would also be more

[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-12 Thread László Attila Tóth
László Attila Tóth added the comment: The fix is something like this for _ArgumentGroup, but as the container may not be an _ArgumentGroup, it breaks the tests. --- Lib/argparse.py +++ Lib/argparse.py @@ -1635,9 +1640,13 @@ def __init__(self, container, title=None, description=None,

[issue39071] [doc] email.parser.BytesParser - parse and parsebytes work not equivalent

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: The relevant section in the docs is https://docs.python.org/3/library/email.parser.html#email.parser.Parser It currently doesn't advise against using the text parser in any way. At the top of the page, the second paragraph says: "You can pass the parser a

[issue45985] AttributeError from @property inadvertantly flows into __getattr__

2021-12-12 Thread Alex Waygood
Change by Alex Waygood : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45729] [doc] "history and license" link has wrong target

2021-12-12 Thread Alex Waygood
Change by Alex Waygood : -- nosy: -AlexWaygood ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46058] argparse: arg groups and mutually exclusive groups behave inconsitently

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- versions: -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45840] Improve cross-references in the data model documentation

2021-12-12 Thread Alex Waygood
Change by Alex Waygood : -- pull_requests: +28298 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/30077 ___ Python tracker ___

[issue46058] argparse: arg groups and mutually exclusive groups behave inconsitently

2021-12-12 Thread László Attila Tóth
László Attila Tóth added the comment: Checking the code the add_mutually_exclusive_group has only kwargs, so one part can be fixed (POC, breaks tests): --- Lib/argparse.py +++ Lib/argparse.py @@ -1648,8 +1648,8 @@ def _remove_action(self, action): class

[issue28884] Python 3.5.2 non-segfaulting bugs (from PyPy)

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: B7 passes on 3.11. -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6642] returning after forking a child thread doesn't call Py_Finalize

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___

[issue17120] Mishandled _POSIX_C_SOURCE and _XOPEN_SOURCE in pyconfig.h

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue34135] The results of time.tzname print broken.

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17763] test_pydoc fails with the installed testsuite

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

[issue46058] argparse: arg groups and mutually exclusive groups behave inconsitently

2021-12-12 Thread László Attila Tóth
New submission from László Attila Tóth : I tried to add arguments to process DB-related settings, either from typing import Optional from a file or explicitly specifying them. In theory with nested groups (by add_argument_group and add_mutually_exlusive_group) this can be implemented in almost

[issue16247] Report failing url in URLError?

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20741] Documentation archives should be available also in tar.xz format

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- status: closed -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20741] Documentation archives should be available also in tar.xz format

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

[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12165] [doc] clarify documentation of nonlocal

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: The doc has been updated by now and mentions "excluding globals". I'm changing the title to reflect Terry's last comment. One comment on his suggestion: I would remove/change "the nonlocal statement is similar to the global statement" because it's not obvious

[issue46051] Make @atexit.register work for functions with arguments

2021-12-12 Thread quapka
quapka added the comment: I'm adding the tests I've written for this issue. First, the tests that do pass already: https://github.com/quapka/cpython/commit/913055932be4be1c61ac8383615045f8bceee4e8 Secondly, the ones that I'd expect to pass as well, but fail atm:

[issue39306] Lib/configparser.py - RawConfigParser.set does not pass non-truthy values through to Interpolation.before_set

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: Hans, as mentioned on the PR, the merit of this change needs to be discussed. If you would like to pursue this, please begin by explaining the use case. If you lost interest in this problem, let's close this issue. -- nosy: +iritkatriel status: open

[issue25299] argparse: TypeError: __init__() takes at least 4 arguments (4 given)

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: This is working on 3.11: >>> from argparse import ArgumentParser >>> parser = ArgumentParser() >>> parser.add_argument("--foo", help="foo", action='store_const') _StoreConstAction(option_strings=['--foo'], dest='foo', nargs=0, const=None, default=None,

[issue37602] nonzero fixer problem

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +iritkatriel nosy_count: 5.0 -> 6.0 pull_requests: +28297 status: pending -> open pull_request: https://github.com/python/cpython/pull/30075 ___ Python tracker

[issue46052] Ctrl+C, C+V in tk.Text on Windows do not work with Cyrillic keys

2021-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: It appears that your particular keyboard program is translating Ctrl + letter key combinations to something other than the default Ascii Control-letter code. Do you see the same problem with Notepad? To test what tcl/tk and hence tkinter see, expand the

[issue46054] Incorrect error when parsing non-utf8 files

2021-12-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c6d1c52c166968fb722ae26d44aa2c1c030dc613 by Pablo Galindo Salgado in branch 'main': bpo-46054: Correct non-utf8 character tests in test_exceptions (GH-30074)

[issue46054] Incorrect error when parsing non-utf8 files

2021-12-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 94483f1e3cec182fabe19268e579f63045bc984a by Miss Islington (bot) in branch '3.10': bpo-46054: Fix parsing error when parsing non-utf8 characters in source files (GH-30068) (GH-30069)

[issue27258] Exception in BytesGenerator.flatten

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: I am also unable to reproduce the issue on 3.11 with the attached script and input. Please create a new issue if this problem still exists in a current python version (>= 3.9). -- nosy: +iritkatriel resolution: -> works for me stage: -> resolved

[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-12 Thread László Attila Tóth
László Attila Tóth added the comment: And the leading part is the same for both the mutually exclusive and the argument groups: usage: test1.py [-h] [--db-config DB_CONFIG] [--db-password DB_PASSWORD] optional arguments: -h, --helpshow this help message and exit Database

[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread E. Paine
E. Paine added the comment: Sorry for the spam... OK, making the corresponding ctypes calls to the commands reported in issue31244 succeeds in the Python REPL, but the Tk text's behaviour doesn't change. In IDLE, the ctypes calls fail. ctypes.windll.Kernel32.SetConsoleCP(1251)

[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-12 Thread László Attila Tóth
László Attila Tóth added the comment: Sorry, these are two bugs in fact. The current one, the help with minmal code: import argparse parser = argparse.ArgumentParser() grp = parser.add_argument_group('Database settings') grp.add_argument('--db-config') xgrp = grp.add_argument_group()

[issue1599254] mailbox: other programs' messages can vanish without trace

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11 - the test in mailbox-test.patch fails. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker

[issue46054] Incorrect error when parsing non-utf8 files

2021-12-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +28296 pull_request: https://github.com/python/cpython/pull/30074 ___ Python tracker ___

[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread E. Paine
E. Paine added the comment: Actually, doing a bit more research, issue31244 came up (and more specifically msg300716). It was concluded there that the issue should not be fixed, though there was some C/C++ code reported in the last message that the OP claims could potentially solve the

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28294 pull_request: https://github.com/python/cpython/pull/30073 ___ Python tracker ___

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +28295 pull_request: https://github.com/python/cpython/pull/30073 ___ Python tracker ___

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: -28293 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +iritkatriel nosy_count: 3.0 -> 4.0 pull_requests: +28293 pull_request: https://github.com/python/cpython/pull/30073 ___ Python tracker ___

[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread E. Paine
E. Paine added the comment: I have reproduced the behaviour described in Wish (from the Tk head). Having tried other applications, I can also confirm that it is normal for inputs to be treated in this manner (e.g. using Ctrl-C on my Latin keyboard with the input device set to Russian copies

[issue20369] concurrent.futures.wait() blocks forever when given duplicate Futures

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20369] concurrent.futures.wait() blocks forever when given duplicate Futures

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- components: +Library (Lib) nosy: +iritkatriel type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3, Python 3.4 ___ Python tracker

[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: Please complete the bug report: How did you run this function, what output did you get and what output did you expect? -- nosy: +iritkatriel ___ Python tracker

[issue46057] argparse: embedded groups may prevent options from being in help output

2021-12-12 Thread László Attila Tóth
New submission from László Attila Tóth : I tried to use the following code where the --db-password is not shown in the --help output (Originally I wanted to use mutually exclusive groups but that feature also works strangely, so I changed them to regular groups). def register_db_args(parser:

[issue1525919] email package content-transfer-encoding behaviour changed

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: The encoding functions are now doing orig = msg.get_payload(decode=True) Does this fix the double-encoding issue? This change was made in https://github.com/python/cpython/commit/00ae435deef434f471e39bea3f3ab3a3e3cd90fe -- nosy: +iritkatriel

[issue40477] Python Launcher app on macOS 10.15+ fails to run scripts

2021-12-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: Pfff Apple's documentation is too incomplete. In recent versions the apple events entitlement only works when the program also has an NSAppleEventsUsageDescription key in Info.plist with a string value that describes why it needs the entitlement, this

[issue16594] SocketServer should set SO_REUSEPORT along with SO_REUSEADDR when present

2021-12-12 Thread AnLong
Change by AnLong : -- keywords: +patch nosy: +asaka nosy_count: 2.0 -> 3.0 pull_requests: +28292 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30072 ___ Python tracker

[issue46056] Cannot use virtual environment on Windows 10 in corporate security settings

2021-12-12 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware title: Cannot use virtual environment on Windows 10 in cooperate security settings -> Cannot use virtual environment on Windows 10 in corporate security settings

[issue46055] Speed up binary shifting operators

2021-12-12 Thread Xinhang Xu
Xinhang Xu added the comment: I post a comment to the PR showing its performance improvement. I paste it below. I think the result not bad. - I use timeit to measure time costs and any other operators or calls are excluded. For each testcase, the former is dcd2796 and the

[issue40477] Python Launcher app on macOS 10.15+ fails to run scripts

2021-12-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: It looks like this is related to code signing and entitlements, in particular: * On my system Terminal.app is in the "Automation" list in the Security & Privacy control panel, and none of the installed Python Launchers are * The script let below works

[issue6942] email.generator.Generator memory consumption

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: Ross, the link to your code no longer works. Do you still have it, and if so could you paste/upload it here? -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread Anton Bryl
Anton Bryl added the comment: > Also, how do you make your keyboard a Cyrillic keyboard. On Windows, just install a keyboard layout for e.g. Russian. As soon as you switch to it, all Ctrl+Letter combinations stop working. Switch back to EN, and everything's working again. As the code is

[issue46052] Ctrl+C, C+V in IDLE on Windows do not work with Cyrillic keys

2021-12-12 Thread Anton Bryl
Anton Bryl added the comment: Tried the tkinter example. The exact same problem occurs there as well: when a Cyrillic layout is on, Ctrl+Letter combinations do not work (it's in fact not just Ctrl+C and Ctrl+V, but apparently all of them). -- ___

[issue18778] email docstrings and comments use python 2 language (Unicode strings)

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation nosy: +docs@python title: email docstrings and comments say about Unicode strings -> email docstrings and comments use python 2 language (Unicode strings) ___ Python

[issue46056] Cannot use virtual environment on Windows 10 in cooperate security settings

2021-12-12 Thread wolfgang kuehn
Change by wolfgang kuehn : -- title: Cannot use virtual environment on Windows 10 in cooperate security settingss -> Cannot use virtual environment on Windows 10 in cooperate security settings type: -> behavior ___ Python tracker

[issue46056] Cannot use virtual environment on Windows 10 in cooperate security settingss

2021-12-12 Thread wolfgang kuehn
New submission from wolfgang kuehn : I just installed Python3.10.1 from the Windows 10 App Store. Most workflows depend on creating virtual environments, but (1) python -m venv venv # -> Error 1260: Windows cannot open this program because it has been prevented by a software

[issue40477] Python Launcher app on macOS 10.15+ fails to run scripts

2021-12-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: FWIW, I'm experimenting with using Scripting Bridge instead of raw Apple Events in Python Laucher. Mostly to check if that fixes the issue because I can run scripts in Terminal using Scripting Bridge from a Python script using PyObjC. Scripting Bridge

[issue27920] Embedding python in a shared library fails to import the Python module

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: 3.4 is no longer maintained. Please create a new issue if you are still having this problem on a current python version (>= 3.9). -- resolution: -> out of date stage: -> resolved status: pending -> closed ___

[issue25668] Deadlock in logging caused by a possible race condition with "format"

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

[issue18778] email docstrings and comments say about Unicode strings

2021-12-12 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: issue15745 has been fixed in the meantime (about 6 years ago). If nobody objects I will close this as out of date. If there is still a problem with the test is will be reported for a current python version. -- nosy: +iritkatriel resolution: -> out of

[issue22833] The decode_header() function decodes raw part to bytes or str, depending on encoded part

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5 ___ Python tracker ___

[issue24224] test_msilib is inadequate

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: It seems that most of the tests in this script were written after this issue was created. If there is still need to extend them, it would help to elaborate here on what is still needed. Otherwise, we could close this. -- nosy: +iritkatriel

[issue6634] [doc] sys.exit() called from threads other than the main one: undocumented behaviour

2021-12-12 Thread Irit Katriel
Irit Katriel added the comment: Since 3.8 we have threading.excepthook() so the situation is different now: https://github.com/python/cpython/pull/13515 I think it still makes sense to change the wording of the doc for sys.exit() a bit, and add a reference to the relevant section of the

[issue13966] Add disable_interspersed_args() to argparse.ArgumentParser

2021-12-12 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 5.0 -> 6.0 pull_requests: +28291 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30071 ___ Python tracker

[issue45684] `functools.singledispatchmethod` does not define `__class_getitem__`

2021-12-12 Thread Alex Waygood
Alex Waygood added the comment: Closing this, as I don't think the use case I presented is strong enough, and there are ultimately more important things to worry about. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed

[issue46055] Speed up binary shifting operators

2021-12-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please show any microbenchmarking results? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue45855] Replace PyImport_ImportModuleNoBlock with PyImport_ImportModule in std modules

2021-12-12 Thread Georg Brandl
Change by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45855] Replace PyImport_ImportModuleNoBlock with PyImport_ImportModule in std modules

2021-12-12 Thread Georg Brandl
Georg Brandl added the comment: New changeset f4095e53ab708d95e019c909d5928502775ba68f by Georg Brandl in branch 'main': bpo-45855: document that `no_block` has no use anymore in PyCapsule_Import (#29665) https://github.com/python/cpython/commit/f4095e53ab708d95e019c909d5928502775ba68f

[issue44674] dataclasses should allow frozendict default value

2021-12-12 Thread Eric V. Smith
Eric V. Smith added the comment: @gianni: can you verify that your use case works in 3.11? -- ___ Python tracker ___ ___

[issue45855] Replace PyImport_ImportModuleNoBlock with PyImport_ImportModule in std modules

2021-12-12 Thread Georg Brandl
Change by Georg Brandl : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45855] Replace PyImport_ImportModuleNoBlock with PyImport_ImportModule in std modules

2021-12-12 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: PyCapsule_Import still using PyImport_ImportModuleNoBlock -> Replace PyImport_ImportModuleNoBlock with PyImport_ImportModule in std modules

[issue45855] PyCapsule_Import still using PyImport_ImportModuleNoBlock

2021-12-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 41026c3155012d6ea50e01205c163b6739c675b8 by Kumar Aditya in branch 'main': bpo-45855: Replaced deprecated `PyImport_ImportModuleNoBlock` with PyImport_ImportModule (GH-30046)

[issue45874] urllib.parse.parse_qsl does not parse empty query string with strict parsing

2021-12-12 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset e6fe10d34096a23be7d26271cf6aba429313b01d by Christian Sattler in branch 'main': bpo-45874: Handle empty query string correctly in urllib.parse.parse_qsl (#29716) https://github.com/python/cpython/commit/e6fe10d34096a23be7d26271cf6aba429313b01d

[issue45995] string formatting: normalize negative zero

2021-12-12 Thread John Belmonte
John Belmonte added the comment: > For Decimal, we'd need to "own" the string formatting, taking that > responsibility away from mpdecimal, but there are already other reasons to do > that. After some digging, I believe this is the background on forking pieces of mpdecimal (and why the