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

2021-12-13 Thread Irit Katriel
Irit Katriel added the comment: You’re right that the api should not be there. See issue22047. I don’t think it should be patches to call super/return self. That would just be confusing. -- resolution: -> duplicate superseder: -> argparse improperly prints mutually exclusive

[issue45915] Use fcntl(fd, F_GETFD) to check whether an fd is valid

2021-12-13 Thread Eryk Sun
Eryk Sun added the comment: PR 29821 adds __APPLE__ to the platforms that use fcntl(fd, F_GETFD). Is this okay on macOS, given bpo-30225? Apparently fstat() fails if the other end of a pipe is closed. -- ___ Python tracker

[issue46068] Change use of warnings.warn to logging.warning in a few places

2021-12-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The downside of making this change is that it may break 3rd party unit tests. I don’t see any upside. The modules in question have been stable for a good while. There’s no benefit to changing them. Also, there is no strong agreement that the standard

[issue46068] Change use of warnings.warn to logging.warning in a few places

2021-12-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg408512 ___ Python tracker ___ ___ Python-bugs-list

[issue46068] Change use of warnings.warn to logging.warning in a few places

2021-12-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: > The downside of making this change is that it may break 3rd party unit tests. I don’t see any upside. The modules in question have been stable for a good while. There’s no benefit to changing them. Also, there is no strong agreement that the standard

[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 9130a4d62032468e0d4949aaa49c29afb0d854ca by Dong-hee Na in branch 'main': bpo-45919: Remove out of date comment (GH-30090) https://github.com/python/cpython/commit/9130a4d62032468e0d4949aaa49c29afb0d854ca --

[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 94234228abbb84945a48049a7515dea960bc9834 by Miss Islington (bot) in branch '3.9': [3.9] bpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093) (GH-30095)

[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset f84e2f6c0aca97c59ec8ce21715ae9bd89893307 by Miss Islington (bot) in branch '3.10': [3.10] bpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093) (GH-30094)

[issue45953] Statically allocate interpreter states as much as possible.

2021-12-13 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +28319 pull_request: https://github.com/python/cpython/pull/30096 ___ Python tracker ___

[issue31370] Remove support for threads-less builds

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: > This has unfortunately turned out to be a blocker on getting WASI support as > there's not direct threading support in WebAssembly. This issue is now closed and unrelated to WASI support. Can you please open a new separated issue for it? --

[issue45953] Statically allocate interpreter states as much as possible.

2021-12-13 Thread Eric Snow
Eric Snow added the comment: New changeset 121f1f893a39d0b58d3d2b5597505c154ecaac2a by Eric Snow in branch 'main': bpo-45953: Statically initialize the small ints. (gh-30092) https://github.com/python/cpython/commit/121f1f893a39d0b58d3d2b5597505c154ecaac2a --

[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +28318 pull_request: https://github.com/python/cpython/pull/30095 ___ Python tracker ___

[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +28317 pull_request: https://github.com/python/cpython/pull/30094 ___ Python tracker

[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset cb589d1b6bad4b75852c2e2a471a3800d5efdca7 by Vinay Sajip in branch 'main': bpo-46063: Improve algorithm for computing which rolled-over log file… (GH-30093) https://github.com/python/cpython/commit/cb589d1b6bad4b75852c2e2a471a3800d5efdca7

[issue40059] Provide a toml module in the standard library

2021-12-13 Thread Martin Reboredo
Martin Reboredo added the comment: > Not officially, no. But I'm personally not going to bring it forward right > now. If someone else wants to formulate a complete proposal for the SC on > this then they are definitely welcome to! You will need to address where the > code is coming from,

[issue26528] NameError for built in function open when re-raising stored exception from yielded function

2021-12-13 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 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue40059] Provide a toml module in the standard library

2021-12-13 Thread Brett Cannon
Brett Cannon added the comment: > I just noticed that tomli has dropped support for Python 3.6. That's a road > block for general adoption of the package in the Python ecosystem. It's already in pip, so I think it's already generally adopted .

[issue23148] Missing the charset parameter in as_encoded_word()

2021-12-13 Thread Irit Katriel
Irit Katriel added the comment: I can't find as_encoded_word anywhere. Even on 3.7 branch. -- nosy: +iritkatriel ___ Python tracker ___

[issue31370] Remove support for threads-less builds

2021-12-13 Thread Brett Cannon
Brett Cannon added the comment: > https://web.dev/webassembly-threads/ suggests otherwise. It actually doesn't as that post isn't for WASI, it's for WASM in the browser (I chose my acronyms carefully ). WASI is like POSIX for WebAssembly, so it's meant for desktop usage and thus no browser

[issue25948] Invalid MIME encoding generated by email.mime (line too long)

2021-12-13 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue12489] email.errors.HeaderParseError if base64url is used

2021-12-13 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11: >>> from email.header import decode_header >>> decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=') Traceback (most recent call last): File "/Users/iritkatriel/src/cpython-1/Lib/email/header.py", line 126,

[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: One option is to keep the current behavior by default, but support a new "/regex/" format. The /regex/ format is commonly used in Perl and sed. Example to ignore warnings containing "deprecated" string in their message: python3 -W "ignore:/deprecated/"

[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: > Adding regular expression support to -W and PYTHONWARNINGS env var turns the > options into potential attack vectors. Why would an attacker control these options? If an attacker controls how Python is run, they are more efficient way to take control of

[issue43862] warnings: -W option and PYTHONWARNINGS now use the message as a regex

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: I mark this issue as a duplicate of bpo-34624. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> -W option and PYTHONWARNINGS env variable does not accept module regexes

[issue34624] -W option and PYTHONWARNINGS env variable does not accept module regexes

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: Oh, I didn't know this issue. I closed my issue bpo-43862 as a duplicate. -- nosy: +vstinner ___ Python tracker ___

[issue23469] Delete Misc/*.wpr files

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: IMO it's ok to remove these files. If WING is maintained again, it will be trivial to add again these configuratin files. I suggest to only remove these files in Python 3.11. -- nosy: +vstinner ___ Python tracker

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Ned Batchelder
Ned Batchelder added the comment: Demonstration of a problem with only stdlib, and no undocumented features. This is on a Mac: This works: $ python3.10 -V Python 3.10.0 $ python3.10 -m venv v310 $ v310/bin/python -m venv v310-nested $ v310-nested/bin/python -V Python 3.10.0 This does

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Steve Dower
Steve Dower added the comment: > Because we never actually use the executable referenced by the 'home' path in > a pyvenv.cfg. This is actually not true on Windows or (I believe) some situations on macOS, where we need to use a redirecting launcher to actually launch the binary specified

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Steve Dower
Steve Dower added the comment: > But the value as it's calculated now seems to give a file that doesn't exist > - how can that be correct? Because we never actually use the executable referenced by the 'home' path in a pyvenv.cfg. It's only used as a starting point to locate a couple of

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Steve Dower
Steve Dower added the comment: Is sys._base_executable correct without a venv? It should be the same as sys.executable in that case. venv calculates 'home' here: Lib/venv/__init__.py#L117 executable = sys._base_executable dirname, exename =

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Ned Batchelder
Ned Batchelder added the comment: This started because a set of tests in the coverage.py test suite fail with 3.11.0a3. They attempt to create a venv in the test, and the test is already running inside a virtualenv. The venv creation fails, with a reference to a non-existent file. I

[issue14484] missing return in win32_kill?

2021-12-13 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Vinay Sajip
Vinay Sajip added the comment: > This is the intended behaviour, and yes it's changed from previous versions > ... The previous value was incorrect, hence it was marked as an internal > field. But the value as it's calculated now seems to give a file that doesn't exist - how can that be

[issue46068] Change use of warnings.warn to logging.warning in a few places

2021-12-13 Thread Andrei Kulakov
New submission from Andrei Kulakov : In discussion on https://github.com/python/cpython/pull/29910 related to whether to use warnings.warn or logging.warning, I found two places in the library where it might make sense to change to logging.warning. There's probably other instances where the

[issue14484] missing return in win32_kill?

2021-12-13 Thread Steve Dower
Steve Dower added the comment: > Windows should have its own specific function. Either that or mimic it properly. Having a single function that requires different parameters based on OS is a very user-hostile design. If someone wants to shepherd it through the process, I'd support either

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

2021-12-13 Thread Steve Dower
Steve Dower added the comment: Also, if you see people discussing PEP 582, you might want to throw in a vote of support. It is intended to provide the benefits of a venv without needing to do tricks like we do for the current design, but it keeps being rejected for "not being sufficiently

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

2021-12-13 Thread Steve Dower
Steve Dower added the comment: If you execute "python -m venv --without-pip ..." to create, then as a workaround you can set the __PYVENV_LAUNCHER__ environment variable to the full path to the venv's python.exe and run the normal python3.10.exe. As Eryk mentioned, you'll need to run

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Steve Dower
Steve Dower added the comment: I'm downgrading this from release blocker. If Vinay thinks there's a venv-related release blocker here he's welcome to raise the priority again, but I only see an intentional change to an internal value. Tools relying on internal fields will have to adapt for

[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong

2021-12-13 Thread Steve Dower
Steve Dower added the comment: > $ cat venv_a3/pyvenv.cfg > home = /home/ss/.pyenv/versions/3.11.0a3/bin > $ venv_a3/bin/python -c "import sys,os.path; print(e := > sys._base_executable); print(os.path.exists(e))" > /home/ss/.pyenv/versions/3.11.0a3/bin/python > True This is the intended

[issue45959] Teach pprint about dict views

2021-12-13 Thread David Peled
Change by David Peled : -- nosy: +david-peled ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +28316 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30093 ___ Python tracker ___

[issue16392] [doc] import crashes on circular imports in ext modules

2021-12-13 Thread Stefan Behnel
Stefan Behnel added the comment: Given that PEP-489 has landed in Py3.5, which is already retired and has been for more than a year, I think we can just close this issue as outdated. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed

[issue45953] Statically allocate interpreter states as much as possible.

2021-12-13 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +28315 pull_request: https://github.com/python/cpython/pull/30092 ___ Python tracker ___

[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building

2021-12-13 Thread Eric Snow
Eric Snow added the comment: You're welcome! Thanks for doing the work! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20949] Missing platform security integrations

2021-12-13 Thread Ammar Askar
Ammar Askar added the comment: Hi Jeffrey, your second solution where you omit `-pie` is almost there. Instead of modifying the Makefile you can pass `-pie` in `LINKFORSHARED`: export CFLAGS="-fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2" export CXXFLAGS="-fPIC -fstack-protector-all

[issue46062] tkinter.filedialog.SaveAs: create new folder on Ubuntu?

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On other systems it opens a simple dialog window implemented in Tk. AFAIK it does not support creating new directories. Ask Tk core developers for a new feature. -- resolution: -> third party stage: -> resolved status: open -> closed

[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building

2021-12-13 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your review, Eric! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45949] Provide pure-Python implementation of Programs/_freeze_module for cross building

2021-12-13 Thread Christian Heimes
Christian Heimes added the comment: New changeset eb483c46d62707bdf705491f76cf1fa9642fb47e by Christian Heimes in branch 'main': bpo-45949: Pure Python freeze module for cross builds (GH-29899) https://github.com/python/cpython/commit/eb483c46d62707bdf705491f76cf1fa9642fb47e --

[issue46066] [doc] TypedDict alternative definition syntax with keyword args is confusing

2021-12-13 Thread Guido van Rossum
Guido van Rossum added the comment: This is not really just a doc issue then, is it? Maybe we should just deprecate the feature? -- ___ Python tracker ___

[issue19888] Three argument type() super call sets __name__ but not __qualname__

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

[issue24116] --with-pydebug has no effect when the final python binary is compiled

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

[issue17505] [doc] email.header.Header.__unicode__ does not decode header

2021-12-13 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: email.header.Header.__unicode__ does not decode header -> [doc] email.header.Header.__unicode__ does not decode header versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4

[issue16392] [doc] import crashes on circular imports in ext modules

2021-12-13 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: import crashes on circular imports in ext modules -> [doc] import crashes on circular imports in ext modules versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5 ___ Python

[issue21910] [doc] File protocol should document if writelines must handle generators sensibly

2021-12-13 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: File protocol should document if writelines must handle generators sensibly -> [doc] File protocol should document if writelines must handle generators sensibly versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4,

[issue46062] tkinter.filedialog.SaveAs: create new folder on Ubuntu?

2021-12-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not an IDLE issue, as IDLE merely calls tkinter.filedialog.SaveAS(args).show() and uses the returned path to open and write the file. This is likely not a tkinter issue either, but I will leave it open for now for others to comment. SaveAs

[issue46060] Clarify asyncio.new_event_loop return value

2021-12-13 Thread Paul Bryan
Change by Paul Bryan : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45653] Freeze the encodings module.

2021-12-13 Thread Christian Heimes
Christian Heimes added the comment: Eric, I have a simple reproducer for the issue: This works: $ LC_ALL=en_US.utf-8 TESTPATH=$(pwd)/Lib:$(pwd)/build/lib.linux-x86_64-3.11 ./Programs/_testembed test_init_setpath_config This fails because it cannot load ISO-8859-1 / latin-1 codec $

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

2021-12-13 Thread László Attila Tóth
László Attila Tóth added the comment: my idea regarding _ArgumentGroup,add_argument_group is in the attached file. This doesn't solve the complete help output issue, but addresses the incorrectly called _ArgumentGroup.add_argument_group - a warn() call and return self. As a result the help

[issue39757] EmailMessage bad encoding for international domain

2021-12-13 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.5 ___ Python tracker ___

[issue23747] [doc] platform module exposes win32_ver function on posix systems

2021-12-13 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: platform module exposes win32_ver function on posix systems -> [doc] platform module exposes win32_ver function on posix systems versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5

[issue46066] [doc] TypedDict alternative definition syntax with keyword args is confusing

2021-12-13 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12411] cgi.parse_multipart is broken on 3.x

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

[issue12411] cgi.parse_multipart is broken on 3.x

2021-12-13 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21390] readline: setlocale() returns NULL on Android

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: Since 2014, Android got getter support for Unix locales. Since nobody was able to say if the issue still exists on Android since 2014, nor if my patch fix the issue, I perfer to close the issue as out of date. -- resolution: -> out of date stage:

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: It seems like this issue has been fixed in bpo-27425. -- resolution: out of date -> duplicate superseder: -> Tests fail because of git's newline preferences on Windows ___ Python tracker

[issue40927] ./python -m test test___all__ test_binhex fails

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: Oh thanks Irit! It's too easy to forget closing an issue! -- ___ Python tracker ___ ___

[issue45643] Add signal.SIGSTKFLT constant (Linux)

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: I merged your PR, thanks! I'm curious how people use this signal :-) -- ___ Python tracker ___

[issue45643] Add signal.SIGSTKFLT constant (Linux)

2021-12-13 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: SIGSTKFLT is missing from the signals module on Linux -> Add signal.SIGSTKFLT constant (Linux) ___ Python tracker

[issue45643] SIGSTKFLT is missing from the signals module on Linux

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset a62be77266b1beadd42d4952186332bc0847b7d6 by Gareth Rees in branch 'main': bpo-45643: Add signal.SIGSTKFLT on platforms where this is defined (GH-29266) https://github.com/python/cpython/commit/a62be77266b1beadd42d4952186332bc0847b7d6

[issue46067] SSLContext.set_npn_protocols broken in Python 3.10, tries to call non-existing _set_npn_protocols

2021-12-13 Thread Jonas Witschel
New submission from Jonas Witschel : Consider the following minimal example: import ssl context = ssl.create_default_context() context.set_npn_protocols(['http/1.1', 'spdy/2']) In Python 3.10, it fails with the following error: AttributeError: 'SSLContext' object has no attribute

[issue40927] ./python -m test test___all__ test_binhex fails

2021-12-13 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33099] test_poplib hangs with the changes done in PR

2021-12-13 Thread Irit Katriel
Irit Katriel added the comment: #32706 is now fixed, does that resolve this issue as well? -- nosy: +iritkatriel ___ Python tracker ___

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2021-12-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> out of date stage: -> resolved status: pending -> closed ___ Python tracker ___ ___

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

2021-12-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you Eryk. The X/Ubuntu behavior is what I want to simulate. I can only wonder why tk has not fixed that for non-X systems. Are Alt+letter combinations also fixed on Ubuntu, so that, for instance, Alt+M-key is seen as Alt-M even with Russian layout?

[issue30716] Failing tests with installed 3.6.2rc1 on Win 10-64

2021-12-13 Thread Irit Katriel
Irit Katriel added the comment: Shall we close this? I don't think 3.6 test failures will still be looked into. -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue21390] readline: setlocale() returns NULL on Android

2021-12-13 Thread Irit Katriel
Irit Katriel added the comment: Neither of the patches were applied. Is this still needed? -- nosy: +iritkatriel ___ Python tracker ___

[issue12411] cgi.parse_multipart is broken on 3.x

2021-12-13 Thread Irit Katriel
Irit Katriel added the comment: Senthil, was this last part done in issue29979? -- nosy: +iritkatriel status: open -> pending ___ Python tracker ___

[issue20392] Inconsistency with uppercase file extensions in MimeTypes.guess_type

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

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

2021-12-13 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +28314 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30091 ___ Python tracker ___

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Limit the number of repetitions. For example use "{1,100}" (or what is the expected maximal length of email) instead of "+". -- ___ Python tracker

[issue46063] TimedRotatingFileHandler deletes wrong files

2021-12-13 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46066] [doc] TypedDict alternative definition syntax with keyword args is confusing

2021-12-13 Thread 97littleleaf11
Change by 97littleleaf11 <97littlelea...@gmail.com>: -- title: Docs: TypedDict alternative definition syntax with keyword args is confusing -> [doc] TypedDict alternative definition syntax with keyword args is confusing ___ Python tracker

[issue46066] Docs: TypedDict alternative definition syntax with keyword args is confusing

2021-12-13 Thread 97littleleaf11
New submission from 97littleleaf11 <97littlelea...@gmail.com>: According to the docs: https://docs.python.org/3/library/typing.html?#typing.TypedDict, there are two additional equivalent syntax for TypedDict definition. Point2D = TypedDict('Point2D', x=int, y=int, label=str) Point2D =

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ramzi Trabelsi
Ramzi Trabelsi added the comment: thanks for the answer. Is there any workaround for this ? -- ___ Python tracker ___ ___

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The simplest example is: re.search('a@', 'a'*10) -- ___ Python tracker ___ ___

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It ends, but it tooks several minutes to complete. It is a limitation of the regular expression implementation in Python. Your input contains a sequence of 588431 characters which match the pattern [a-zA-Z0-9_.+-] not following by '@'. The engine finds

[issue46059] Typo in match Statement example

2021-12-13 Thread Alex Waygood
Change by Alex Waygood : -- type: -> behavior versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +28313 pull_request: https://github.com/python/cpython/pull/30090 ___ Python tracker ___

[issue14484] missing return in win32_kill?

2021-12-13 Thread STINNER Victor
STINNER Victor added the comment: IMO trying to mimic POSIX behavior on Windows in the single function os.kill() was a bad design idea. Windows should have its own specific function. -- ___ Python tracker

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

2021-12-13 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 2.7 ___ Python tracker ___

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ned Deily
Change by Ned Deily : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett, serhiy.storchaka -ned.deily, ronaldoussoren type: crash -> behavior ___ Python tracker

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ramzi Trabelsi
Change by Ramzi Trabelsi : -- components: -macOS ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46065] re.findall takes forever and never ends

2021-12-13 Thread Ramzi Trabelsi
New submission from Ramzi Trabelsi : parsing emails from this text took forever and never ends. Here the code and the file res.html is attached. The Behavior is same on Windows 10, 11 and Ubuntu 18.04 CODE: import re pattern_email = r"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]{2,3}"

[issue46060] Clarify asyncio.new_event_loop return value

2021-12-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +28312 pull_request: https://github.com/python/cpython/pull/30089 ___ Python tracker ___

[issue45915] Use fcntl(fd, F_GETFD) to check whether an fd is valid

2021-12-13 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 3.0 -> 4.0 pull_requests: +28311 pull_request: https://github.com/python/cpython/pull/30082 ___ Python tracker ___

[issue46064] Permalinks to underscored documentation entries don't work.

2021-12-13 Thread Alex Waygood
Alex Waygood added the comment: I can't reproduce this -- the permalink to __debug__ that I get is the same as the one you have posted here, and works fine for me on my laptop, phone and iPad. -- nosy: +AlexWaygood ___ Python tracker

[issue46064] Permalinks to underscored documentation entries don't work.

2021-12-13 Thread Fabian Dill
New submission from Fabian Dill : As an example, go to https://docs.python.org/3/library/constants.html and request a permalink to __debug__. The link you get will not jump to it. The link I get is https://docs.python.org/3/library/constants.html#debug__ -- assignee: docs@python

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

2021-12-13 Thread Alex Waygood
Alex Waygood added the comment: Thanks, Serhiy! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue45919] Use WinAPI GetFileType() in is_valid_fd()

2021-12-13 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 191c431de7d9b23484dd16f67e62c6e85a1fac7f by Dong-hee Na in branch 'main': bpo-45919: Use WinAPI GetFileType() in is_valid_fd() (GH-30082) https://github.com/python/cpython/commit/191c431de7d9b23484dd16f67e62c6e85a1fac7f --

  1   2   >