[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Nikita Sobolev added the comment: Important note, in practice there's also a difference in how one calls some test module: - python Lib/test/test_contextlib.py - python ./Lib/test/test_contextlib.py Example of a test failure because of that: https://github.com/python/cpython/pull/30681

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28880 pull_request: https://github.com/python/cpython/pull/30681 ___ Python tracker ___

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-18 Thread Inada Naoki
Inada Naoki added the comment: I am not happy about exposing every internal types. I prefer duck typing. Like OrderedDict, not all dict subtypes uses `dict_keys`, `dict_views`, and `dict_items`. If typeshed annotate dict.keys() returns `dict_keys`, "incompatible override" cano not be

[issue46429] Merge all deepfrozen files into one

2022-01-18 Thread Guido van Rossum
New submission from Guido van Rossum : This saves some space when strings are shared across deep-frozen module. Kumar measured this at around 0.2 Mbyte. See discussion https://github.com/faster-cpython/ideas/issues/218 -- ___ Python tracker

[issue46429] Merge all deepfrozen files into one

2022-01-18 Thread Kumar Aditya
Change by Kumar Aditya : -- keywords: +patch pull_requests: +28879 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30572 ___ Python tracker ___

[issue46429] Merge all deepfrozen files into one

2022-01-18 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: gvanrossum, kumaraditya303 priority: normal severity: normal status: open title: Merge all deepfrozen files into one versions: Python 3.11 ___ Python tracker

[issue46368] faulthandler: add the ability to dump all interpreters, not only the current interpreter

2022-01-18 Thread Hai Shi
Change by Hai Shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46399] Addition of `mapping` attribute to dict views classes has inadvertently broken type-checkers

2022-01-18 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: The types of `.keys()`, `.items()`, and `.values()` on `collections.OrderedDict` are distinct from those for dict, and they are also not exposed anywhere. Should we put them in a public, documented place too for consistency? >>> import collections >>> od =

[issue46391] Library multiprocess leaks named resources.

2022-01-18 Thread XD Trol
Change by XD Trol : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: PR without mapping protocol and context manager submitted: GH-30680. I've also changed the open API to reflect that of apsw. -- ___ Python tracker

[issue24905] Allow incremental I/O to blobs in sqlite3

2022-01-18 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28878 pull_request: https://github.com/python/cpython/pull/30680 ___ Python tracker ___

[issue41791] mimetypes module does not recognize jp2 type

2022-01-18 Thread Andrés Delfino
Change by Andrés Delfino : -- nosy: -adelfino ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28477] Add optional user argument to pathlib.Path.home()

2022-01-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue28169] shift exponent overflow

2022-01-18 Thread Irit Katriel
Irit Katriel added the comment: 3.7 is no longer maintained. Please open a new issue if you are still seeing this problem on a current version (>= 3.9). -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed

[issue34526] Path.relative_to() taking multiple arguments could be better documented

2022-01-18 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7 ___ Python tracker ___ ___

[issue39854] f-strings with format specifiers have wrong col_offset

2022-01-18 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11: >>> ast.parse('f"{x}"').body[0].value.values[0].value.col_offset 3 >>> ast.parse('f"{x!r}"').body[0].value.values[0].value.col_offset 3 -- nosy: +iritkatriel ___ Python tracker

[issue46392] MessageIDHeader is too strict for message-id

2022-01-18 Thread bpoaugust
bpoaugust added the comment: Sorry, I think '' is not valid, as spaces are not allowed between words. However I am not seeing the original unfolded source if there is an error, unless I am misunderstanding the API. For example: --- cut here --- import email.header import email.utils

[issue29860] smtplib.py doesn't capitalize EHLO.

2022-01-18 Thread Irit Katriel
Irit Katriel added the comment: It's been 5 years, it's not really a bug, and nobody seems to be interested enough to submit a patch so I'm closing this. Feel free to reopen if you want to pursue this. -- nosy: +iritkatriel resolution: -> not a bug stage: -> resolved status: open

[issue35107] untokenize() fails on tokenize output when a newline is missing

2022-01-18 Thread Irit Katriel
Irit Katriel added the comment: I am unable to reproduce this on 3.11: >>> tokenize.untokenize(tokenize.generate_tokens(io.StringIO('#').readline)) '#' -- nosy: +iritkatriel status: open -> pending ___ Python tracker

[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-18 Thread neonene
neonene added the comment: Defenition in general_advanced.xml These options above are corresponded to the following folders in my case: Microsoft Visual Studio\.\VC\Tools\MSVC\\bin\Hostx86 Microsoft Visual Studio\.\VC\Tools\MSVC\\bin\Hostx64 And

[issue13649] termios.ICANON is not documented

2022-01-18 Thread Irit Katriel
Irit Katriel added the comment: I agree, there is no point copying over the documentation just for this one constant, there are many others and the doc clearly says where they are listed. -- nosy: +iritkatriel resolution: -> wont fix stage: -> resolved status: open -> closed

[issue45535] Enum's dir() does not contain inherited members

2022-01-18 Thread Ethan Furman
Ethan Furman added the comment: New changeset 7c0914d35eaaab2f323260ba5fe8884732533888 by Ethan Furman in branch 'main': bpo-45535: [Enum] include special dunders in dir() (GH-30677) https://github.com/python/cpython/commit/7c0914d35eaaab2f323260ba5fe8884732533888 --

[issue45535] Enum's dir() does not contain inherited members

2022-01-18 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +28877 pull_request: https://github.com/python/cpython/pull/30677 ___ Python tracker ___

[issue43118] inspect.signature() raises RuntimeError on failed to resolve the default argument value

2022-01-18 Thread Irit Katriel
Change by Irit Katriel : -- type: -> behavior versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Nikita Sobolev added the comment: Terry, yes I am using this script to run tests locally: ```bash #!/usr/bin/env bash set -e while read line; do ./python.exe "$line" done < files.txt ``` And this one to populate `files.txt`: ```bash find ./Lib -iname 'test*.py' -o -iname '*tests.py'

[issue46045] NetBSD: do not use POSIX semaphores

2022-01-18 Thread Thomas Klausner
Thomas Klausner added the comment: Thanks for merging this, @serhiy.storchaka! -- ___ Python tracker ___ ___ Python-bugs-list

[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-18 Thread neonene
neonene added the comment: >This also rolls _freeze_module.exe's architecture back to x64 Correcting: from x86 back to x64 In my recognition, only Win32 _freeze_module.exe is built currently and run on non-ARM machines to generate the code for Win32/x64/ARM/ARM64 targets. --

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread Eryk Sun
Change by Eryk Sun : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread Eryk Sun
Eryk Sun added the comment: PR 30142 is sufficient for Unix, but it's missing a bit for Windows. In Windows, the C runtime library maps the console event for Ctrl+Break to SIGBREAK. The default handler for SIGBREAK exits with 0xC13A (i.e. STATUS_CONTROL_C_EXIT). This value is unrelated

[issue46428] Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’

2022-01-18 Thread YoSTEALTH
YoSTEALTH added the comment: Thanks @iritkatriel will close this, seems like people are aware of this bug as working on fix it :) -- stage: -> resolved status: open -> closed ___ Python tracker

[issue46428] Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’

2022-01-18 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Closing this. Thanks, Ned and Eric! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Change by Nikita Sobolev : -- pull_requests: +28876 pull_request: https://github.com/python/cpython/pull/30676 ___ Python tracker ___

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington
miss-islington added the comment: New changeset 0be4760d85399a308421d9229b5d7f1b4ec718a2 by Miss Islington (bot) in branch '3.9': [3.9] bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142) (GH-30675)

[issue46428] Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’

2022-01-18 Thread Dennis Sweeney
Change by Dennis Sweeney : -- title: 3.11.0a3 vs 3.11.0a4 -> Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’ ___ Python tracker ___

[issue46428] Cython Build: '_PyErr_StackItem’ has no member named ‘exc_traceback’

2022-01-18 Thread Irit Katriel
Irit Katriel added the comment: This is issue45711. See Stefan’s comment there. -- ___ Python tracker ___ ___ Python-bugs-list

[issue46428] 3.11.0a3 vs 3.11.0a4

2022-01-18 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 0ae22577606f1b52e3b6c2de6c5b307518044605 by Erlend Egeberg Aasland in branch '3.9': [3.9] bpo-46402: Promote SQLite URI tricks in sqlite3 docs (GH-30660) (#30672) https://github.com/python/cpython/commit/0ae22577606f1b52e3b6c2de6c5b307518044605

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 01e6cbefd3d0f60c942ed711131f5d638dde1227 by Erlend Egeberg Aasland in branch '3.10': [3.10] bpo-46402: Promote SQLite URI tricks in sqlite3 docs (GH-30660) (GH-30671)

[issue46428] 3.11.0a3 vs 3.11.0a4

2022-01-18 Thread YoSTEALTH
New submission from YoSTEALTH : Getting compilation error for an Cython project, since upgrade from `3.11.0a3` to `3.11.0a4`, same code. /opt/python/3.11/bin/python3 setup.py build_ext --inplace -j18 clean --all # 3.11.0a3 # prefix/usr includedir

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington
miss-islington added the comment: New changeset 4449a1694a0fd2c63fcef5eb7d0ad1d7dfbb6077 by Miss Islington (bot) in branch '3.10': bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142) https://github.com/python/cpython/commit/4449a1694a0fd2c63fcef5eb7d0ad1d7dfbb6077

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Géry
Géry added the comment: Thanks for the review Serhiy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15500] Python should support exporting thread names to the OS

2022-01-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Two things: 1) I agree this is an extremely valuable addition for any package or application that does a non-trivial use of threads in Python. 2) It should at least be exposed as a standalone function in the `threading` module, *and* ideally also be called

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +28875 pull_request: https://github.com/python/cpython/pull/30675 ___ Python tracker ___

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +28874 pull_request: https://github.com/python/cpython/pull/30674 ___ Python tracker

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread miss-islington
miss-islington added the comment: New changeset 3852269b91fcc8ee668cd876b3669eba6da5b1ac by John Marshall in branch 'main': bpo-45554: Document multiprocessing.Process.exitcode values (GH-30142) https://github.com/python/cpython/commit/3852269b91fcc8ee668cd876b3669eba6da5b1ac --

[issue15500] Python should support exporting thread names to the OS

2022-01-18 Thread Oleg Iarygin
Oleg Iarygin added the comment: @r.david.murray > It is indeed the compatibility that is the worse issue. The problem is what > people have gotten used to and may have coded their applications to > expect/deal > with. I agree with you that most people would *not* find it surprising to see

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +davin, pitrou versions: +Python 3.10, Python 3.11, Python 3.9 ___ Python tracker ___ ___

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > BTW, I'm fine with this being closed, since the functionality I wanted is > available and documented. Great. I was considering closing it as soon as the backports have landed (I had to manually fix them bco. make suspicious failures). --

[issue45554] multiprocessing exitcode is insufficiently documented

2022-01-18 Thread John Marshall
John Marshall added the comment: Ping -- This issue has an associated PR that expands the multiprocessing.Process.exitcode documentation to cover normal, sys.exit(), and exception-raised termination of the child process. https://github.com/python/cpython/pull/30142 The PR has been

[issue46392] MessageIDHeader is too strict for message-id

2022-01-18 Thread R. David Murray
R. David Murray added the comment: The general idea is that the string version of the header should contain all of the original information, but the parsed elements (the things returned by special header attributes) will contain the valid data, if any. So if the string version of the

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Ned Batchelder
Ned Batchelder added the comment: BTW, I'm fine with this being closed, since the functionality I wanted is available and documented. -- ___ Python tracker ___

[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-18 Thread neonene
Change by neonene : -- keywords: +patch pull_requests: +28873 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30673 ___ Python tracker ___

[issue46427] Correct MSBuild's configuration for _freeze_module.exe

2022-01-18 Thread neonene
New submission from neonene : In pcbuild.proj, "PreferredToolArchitecture" property looks misused, which I think is useful giving us two selections of a compiler (32bit or 64bit) for any target architecture (Win32/x64/ARM/ARM64). I think the property can be unused there. This means a partial

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28872 pull_request: https://github.com/python/cpython/pull/30672 ___ Python tracker ___

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Géry. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2022-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 16bf9bd157c7bf5f9c60414fa8e0fe5047c55a9b by Géry Ogam in branch 'main': bpo-44024: Improve the TypeError message in getattr and hasattr (GH-25863) https://github.com/python/cpython/commit/16bf9bd157c7bf5f9c60414fa8e0fe5047c55a9b --

[issue46402] Enhance sqlite3 to avoid implicit creation?

2022-01-18 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +28871 pull_request: https://github.com/python/cpython/pull/30671 ___ Python tracker ___

[issue46045] NetBSD: do not use POSIX semaphores

2022-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 60ceedbdd5b5fb22803039a59954798d931f659a by Thomas Klausner in branch 'main': bpo-46045: Do not use POSIX semaphores on NetBSD (GH-30047) https://github.com/python/cpython/commit/60ceedbdd5b5fb22803039a59954798d931f659a -- nosy:

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nikita, thanks for doing this. Ethan's suggestion has two advantages. 1. It would fix most backport issues. By containing a mix of changes, PR-30666 cannot be backported as is. 'unittest.main' should always backport unless there is a context conflict.

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Nikita Sobolev added the comment: Thank you, Ethan. Good idea! Will do from the second PR. Thanks for merging, Serhiy. -- ___ Python tracker ___

[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread miss-islington
miss-islington added the comment: New changeset 8527f7a722aee3d9025267cc7ff2eb8afa38d166 by Miss Islington (bot) in branch '3.9': bpo-20823: Clarify copyreg.pickle() documentation (GH-30230) https://github.com/python/cpython/commit/8527f7a722aee3d9025267cc7ff2eb8afa38d166 --

[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread miss-islington
miss-islington added the comment: New changeset 9238a52cbc39c17ca6c7a8cbda32808dd5522a59 by Miss Islington (bot) in branch '3.10': bpo-20823: Clarify copyreg.pickle() documentation (GH-30230) https://github.com/python/cpython/commit/9238a52cbc39c17ca6c7a8cbda32808dd5522a59 --

[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +28869 pull_request: https://github.com/python/cpython/pull/30669 ___ Python tracker

[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 65940fa5c12a4b4a0650c7845044ffd63b94e227 by Kumar Aditya in branch 'main': bpo-20823: Clarify copyreg.pickle() documentation (GH-30230) https://github.com/python/cpython/commit/65940fa5c12a4b4a0650c7845044ffd63b94e227 --

[issue20823] [doc] Clarify copyreg.pickle() documentation

2022-01-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +28870 pull_request: https://github.com/python/cpython/pull/30670 ___ Python tracker ___

[issue46426] Improve tests for the dir_fd argument

2022-01-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +28868 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30668 ___ Python tracker

[issue46426] Improve tests for the dir_fd argument

2022-01-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There is a flaw in tests for the dir_fd argument in test_posix. All these tests open a current directory as dir_fd, so all paths are relative to the current directory. They will pass in case of the following errors: 1. dir_fd, src_dir_fd or dst_dir_fd

[issue12067] Doc: remove errors about mixed-type comparisons.

2022-01-18 Thread Humbdrag
Change by Humbdrag : -- pull_requests: +28867 pull_request: https://github.com/python/cpython/pull/30667 ___ Python tracker ___ ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1292aa6db5bed889a3c87df443754fcae0177801 by Nikita Sobolev in branch 'main': bpo-46425: Fix direct invocation of multiple test modules (GH-30666) https://github.com/python/cpython/commit/1292aa6db5bed889a3c87df443754fcae0177801 --

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Ethan Furman
Ethan Furman added the comment: I suggest your grouping of PRs be by error type -- so have batches of "relative import" fixes and batches of "TESTFN" fixes, etc. -- nosy: +ethan.furman ___ Python tracker

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28866 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30666 ___ Python tracker ___

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46425] Multiple test modules fail to run if invoked directly

2022-01-18 Thread Nikita Sobolev
New submission from Nikita Sobolev : While working on a similar issue for `test_typing.py` (https://bugs.python.org/issue46416) I wondered: how many other modules also have this problem? So, after several hours of local testing, I got several problems: - Lib/test/test_compileall.py Uses

[issue43869] Fix documentation of epoch/time.time

2022-01-18 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-18 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- nosy: +phsilva ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46392] MessageIDHeader is too strict for message-id

2022-01-18 Thread bpoaugust
bpoaugust added the comment: I think an id of the form should be allowed, but it generates obs-id-left => local-part => obs-local-part => word *("." word) word => atom => [CFWS] 1*atext [CFWS] '' should also be allowed but generates ' (A A)' and '' gives ' ' --

[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread milahu
milahu added the comment: python-ideas thread https://mail.python.org/archives/list/python-id...@python.org/thread/V53XGQPIY7ZAISMTQHPHKGWZNSN5EXQG/ -- ___ Python tracker ___

[issue43869] Fix documentation of epoch/time.time

2022-01-18 Thread STINNER Victor
STINNER Victor added the comment: I was going to close the change, but I had a last look and... oh... I found that the Python test suite checks that the Epoch is 1970-01-01 at 00:00 since 2008! I wrote GH-30664 to add an explicit test and I updated the doc. --

[issue43869] Fix documentation of epoch/time.time

2022-01-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +28865 pull_request: https://github.com/python/cpython/pull/30664 ___ Python tracker ___

[issue43869] Fix documentation of epoch/time.time

2022-01-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset ff7703c4b609a697ada8165fd1c52a73404b6d07 by Miguel Brito in branch 'main': bpo-43869: Improve epoch docs (GH-25777) https://github.com/python/cpython/commit/ff7703c4b609a697ada8165fd1c52a73404b6d07 --

[issue46410] TypeError when parsing regexp with unicode named character sequence escape

2022-01-18 Thread Matthew Barnett
Matthew Barnett added the comment: They're not supported in string literals either: Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> "\N{KEYCAP NUMBER SIGN}" File "",

[issue46424] `typing.Annotated` one type argument usage is not covered in tests

2022-01-18 Thread Nikita Sobolev
Change by Nikita Sobolev : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2022-01-18 Thread Steve Dower
Steve Dower added the comment: Merged my PR, but I want to leave this open in commit review for now - I'm not sure it deals with all the issues here, and probably not everything from the Discourse thread linked by Victor (though it might come close). -- stage: patch review -> commit

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

2022-01-18 Thread Steve Dower
Steve Dower added the comment: New changeset 7407fe4c25ba0308d49e3e88e4a107ef32251cdc by Steve Dower in branch 'main': bpo-46028: Calculate base_executable by resolving symlinks in a venv (GH-30144) https://github.com/python/cpython/commit/7407fe4c25ba0308d49e3e88e4a107ef32251cdc

[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel
Irit Katriel added the comment: Ok, I reopened this as an enhancement request for mimetypes to know about the 'deprecated' types. If you want to push it forward it might be a good idea to bring this up on python-ideas as well. -- ___ Python

[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel
Change by Irit Katriel : -- stage: resolved -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: duplicate -> status: closed -> open type: behavior -> enhancement ___ Python tracker ___

[issue46424] `typing.Annotated` one type argument usage is not covered in tests

2022-01-18 Thread Ken Jin
Ken Jin added the comment: New changeset 32398294fb3fcf4ee74da54722fd0221c4e6cb74 by Nikita Sobolev in branch 'main': bpo-46424: [typing] cover `Annotation[arg]` invalid usage in tests (GH-30663) https://github.com/python/cpython/commit/32398294fb3fcf4ee74da54722fd0221c4e6cb74 --

[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread milahu
milahu added the comment: edit: - mimetype_of_ext[ext] = mimetype + else: +# add new entry +mimetype_of_ext[ext] = mimetype -- ___ Python tracker ___

[issue46035] mimetypes.guess_type returns deprecated mimetype application/x-javascript

2022-01-18 Thread milahu
milahu added the comment: this issue is different than Issue32462 because here, both entries are valid ``` cat /etc/mime.types | grep javascript application/javascriptjs application/x-javascript js ``` but the alphabetical ordering of the file makes the last entry take

[issue46423] CLI: Addition assignment for tuples

2022-01-18 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report. This is a long-standing and known behaviour. It's been discussed a good few times before, and (quite apart from potential problems with backwards compatibility) no-one has yet come up with convincing alternative behaviours. See

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-18 Thread STINNER Victor
Change by STINNER Victor : -- title: [subinterpreters] Clear static types in Py_Finalize() -> Clear static types in Py_Finalize() for embedded Python ___ Python tracker ___

[issue46417] Clear static types in Py_Finalize() for embedded Python

2022-01-18 Thread STINNER Victor
Change by STINNER Victor : -- components: +Interpreter Core -Subinterpreters ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46417] [subinterpreters] Clear static types in Py_Finalize()

2022-01-18 Thread STINNER Victor
STINNER Victor added the comment: > If we have static types, that means there is a mechanism to share some > objects across interpreters. Sharing objects between interpreters is bad and is causing complex bugs. See a recent example of an object traveling from one interpreter to another and

[issue40255] Fixing Copy on Writes from reference counting and immortal objects

2022-01-18 Thread STINNER Victor
Change by STINNER Victor : -- title: Fixing Copy on Writes from reference counting -> Fixing Copy on Writes from reference counting and immortal objects ___ Python tracker

[issue43975] Incorrect MIME type returned for .js files Windows 10.

2022-01-18 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> validate mime types loaded from system files. Document that system files take precedence. ___ Python tracker

[issue32462] validate mime types loaded from system files. Document that system files take precedence.

2022-01-18 Thread Irit Katriel
Irit Katriel added the comment: I've closed Issue43975 as a duplicate of this. -- ___ Python tracker ___ ___ Python-bugs-list

[issue32462] validate mime types loaded from system files. Document that system files take precedence.

2022-01-18 Thread Irit Katriel
Irit Katriel added the comment: I've closed Issue46035 as a duplicate of this. -- nosy: +iritkatriel ___ Python tracker ___ ___

  1   2   >