[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-04 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +23512 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24742 ___ Python tracker ___

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-04 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23513 pull_request: https://github.com/python/cpython/pull/24743 ___ Python tracker ___ _

[issue43397] Incorrect conversion path case with german character

2021-03-04 Thread Сергей М
New submission from Сергей М : I try to normalize case for path with german characters: ``` >os.path.normcase(r'c:\asd\ASDẞ') 'c:\\asd\\asdß' ``` But in OS Windows r'c:\asd\ASDẞ' and r'c:\asd\asdß' are different paths. -- components: Windows messages: 388079 nosy: paul.moore, steve.dow

[issue43369] [sqlite3] Handle out-of-memory errors in sqlite3_column_*()

2021-03-04 Thread Berker Peksag
Berker Peksag added the comment: New changeset e161ec5dd7ba9355eb06757b9304019ac53cdf69 by Erlend Egeberg Aasland in branch 'master': bpo-43369: sqlite3_column_{text,blob} failures now raise MemoryError (GH-24723) https://github.com/python/cpython/commit/e161ec5dd7ba9355eb06757b9304019ac53cdf

[issue43369] [sqlite3] Handle out-of-memory errors in sqlite3_column_*()

2021-03-04 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40642] Cpython "pystate.h" subdirectory wrong

2021-03-04 Thread Xi Ruoyao
Change by Xi Ruoyao : -- keywords: +patch nosy: +xry111 nosy_count: 3.0 -> 4.0 pull_requests: +23514 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24744 ___ Python tracker _

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Correct, fetchone() is a cursor method. Thanks for the report! -- nosy: +berker.peksag, erlendaasland ___ Python tracker ___

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +23515 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24745 ___ Python tracker _

[issue43398] [sqlite3] sqlite3.connect() segfaults if given a faulty Connection factory

2021-03-04 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : If the connection factory __init__ method fails, we hit a seg. fault when pysqlite_do_all_statements() is called to clean up the defect connection: PyList_Size received a NULL pointer. Suggested fix: Split pysqlite_do_all_statements() in two: one f

[issue32824] Docs: Using Python on a Macintosh has bad info per Apple site

2021-03-04 Thread Tomy Hsieh
Change by Tomy Hsieh : -- nosy: +tomy000 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue12594] Docs for "Using Python on a Macintosh" needs to be updated

2021-03-04 Thread Tomy Hsieh
Change by Tomy Hsieh : -- nosy: +tomy000 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue43383] imprecise handling of weakref callbacks

2021-03-04 Thread Konrad Schwarz
Konrad Schwarz added the comment: Unfortunately, my management has impressed other priorities upon me; I can't delve deeper into this subject at the moment. My takeaway is that the error very likely lies on my side; maybe I need to re-check local variables and del them explicitly. In any ca

[issue43383] imprecise handling of weakref callbacks

2021-03-04 Thread Konrad Schwarz
Change by Konrad Schwarz : -- resolution: -> postponed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: > I'm always very hesitant to modify system-wide (or user-wide) settings > like this though. I'd be more comfortable if we made it a PYTHONUTF8_310 > variable that _only_ applies to that specific version. Otherwise someone > might install an update and break existin

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Berker Peksag
Berker Peksag added the comment: Could you please post the full snippet? c is already set to a cursor at https://github.com/python/cpython/blame/e161ec5dd7ba9355eb06757b9304019ac53cdf69/Doc/library/sqlite3.rst#L56: c = conn.cursor() And the following example works fine: >>> import

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Tore Anderson
Tore Anderson added the comment: You're looking in the wrong place, the buggy ones are at https://github.com/python/cpython/blame/e161ec5dd7ba9355eb06757b9304019ac53cdf69/Doc/library/sqlite3.rst#L74-L76 Tore -- ___ Python tracker

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Berker Peksag
Berker Peksag added the comment: https://github.com/python/cpython/blame/e161ec5dd7ba9355eb06757b9304019ac53cdf69/Doc/library/sqlite3.rst#L74-L76 is not a standalone snippet. It uses the cursor object created at https://github.com/python/cpython/blame/e161ec5dd7ba9355eb06757b9304019ac53cdf69/

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Tore Anderson
Tore Anderson added the comment: You're right. I got it confused with the conn object in the code I was working on, because it turns out that it has an execute() method: >>> import sqlite3 >>> c = sqlite3.connect('test.db') >>> c.execute('SELECT * FROM tbl') Closing, apologies for the noise

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Right, got me confused as well! I guess a clarification would be an improvement :) -- ___ Python tracker ___ ___

[issue43395] os.path states that bytes can't represent all MBCS paths under Windows

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: > Vice versa, using bytes objects cannot represent all file names > on Windows (in the standard mbcs encoding), hence Windows > applications should use string objects to access all files. This is outdated advice that should be removed, or at least reworded to emp

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-04 Thread Inada Naoki
Inada Naoki added the comment: User may install Python from python.org installer, scoop, conda, and Windows Store. So envvar is not a right tool to configure only one installation. Anyway, adding more complex way to configure Python can be discussed later. Paul Moore againsted adding more wa

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Berker Peksag
Berker Peksag added the comment: No problem and thank you for taking time to report! I'd be happy to merge a PR that renames c to cur in the documentation (I counted four instances.) We can then reopen and retarget this isssue. -- resolution: -> not a bug __

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: 'con' and 'cur' seems to be used in a majority of the examples. I suggest normalising to always using these two in code examples. -- ___ Python tracker

[issue43396] Non-existent method sqlite3.Connection.fetchone() used in docs

2021-03-04 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Attached patch consists of two commits: one to rename "conn" to "con", and one to rename "c" to "cur". Are you ok with that, Berker? -- Added file: https://bugs.python.org/file49851/patch.diff ___ Python tr

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: The locale_alias database was extended to support "en_AG" and many others, but I'd still prefer Serhiy's suggestion to not guess the codeset when checking the default LC_CTYPE category. Use locale.nl_langinfo(locale.CODESET), if it's available. In Windows, I'd p

[issue43396] Use more descriptive variable names in sqlite3 docs

2021-03-04 Thread Berker Peksag
Berker Peksag added the comment: LGTM! -- resolution: not a bug -> stage: resolved -> needs patch status: closed -> open title: Non-existent method sqlite3.Connection.fetchone() used in docs -> Use more descriptive variable names in sqlite3 docs type: -> enhancement versions: +Pytho

[issue43396] Use more descriptive variable names in sqlite3 docs

2021-03-04 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +23516 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24746 ___ Python tracker ___

[issue43396] Use more descriptive variable names in sqlite3 docs

2021-03-04 Thread Berker Peksag
Berker Peksag added the comment: New changeset 40d1b831ecd1b5b6a4fce9a908a6e61b50b360a0 by Erlend Egeberg Aasland in branch 'master': bpo-43396: Normalise naming in sqlite3 doc examples (GH-24746) https://github.com/python/cpython/commit/40d1b831ecd1b5b6a4fce9a908a6e61b50b360a0 --

[issue43396] Use more descriptive variable names in sqlite3 docs

2021-03-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +23518 pull_request: https://github.com/python/cpython/pull/24748 ___ Python tracker ___ __

[issue43396] Use more descriptive variable names in sqlite3 docs

2021-03-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +23517 pull_request: https://github.com/python/cpython/pull/24747 ___ Python tracker _

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2021-03-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +23519 pull_request: https://github.com/python/cpython/pull/24749 ___ Python tracker ___ __

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2021-03-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +23520 pull_request: https://github.com/python/cpython/pull/24750 ___ Python tracker ___ __

[issue3905] subprocess failing in GUI applications on Windows

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: For whatever the reason and Windows version, it's still the case that _get_handles() should work around any bad standard handles in the current process. In bpo-25492, I suggested checking os.get_handle_inheritable(). That's too permissive. It should require a vali

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-04 Thread Alex
New submission from Alex : This issue is only visible when the C accelerator of ElementTree is *not* used. It is the counterpart of the following issue on PyPy3: https://foss.heptapod.net/pypy/pypy/-/issues/3181 >>> from xml.etree.ElementTree import Element >>> r = Element("root") >>> r.ex

[issue29829] Documentation lacks clear warning of subprocess issue with pythonw

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: I forgot about the much older issue for this problem. I'm closing this issue, because the broken behavior should be fixed, not documented. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> subprocess failing in GUI appl

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-04 Thread Alex
Change by Alex : -- keywords: +patch pull_requests: +23521 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24751 ___ Python tracker ___ ___

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2021-03-04 Thread miss-islington
miss-islington added the comment: New changeset 0e76157b0ca70bd38157fed56680a7752a52668d by Miss Islington (bot) in branch '3.9': [3.9] bpo-37193: Remove thread objects which finished process its request (GH-23127) (GH-24750) https://github.com/python/cpython/commit/0e76157b0ca70bd38157fed56

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list m

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Eddie Peters
New submission from Eddie Peters : The unittest.mock library is very useful and very powerful, but it is not "very easy to use." Docs are useful and important, or we wouldn't be here in a documentation issue. I have watched several of the most experienced Python programmers I know struggle wi

[issue19809] Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: I'm closing this issue because the behavior was addressed for Python 3 in POSIX and mostly addressed in Windows (PEP 443, bpo-19764). The switch to using PROC_THREAD_ATTRIBUTE_HANDLE_LIST with subprocess.Popen() in Windows at least makes scripts safe from race con

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Eddie Peters
Change by Eddie Peters : -- keywords: +patch pull_requests: +23522 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24752 ___ Python tracker ___ ___

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2021-03-04 Thread miss-islington
miss-islington added the comment: New changeset 0064d561b8e44f7a991188d7c5016c165bc89326 by Miss Islington (bot) in branch '3.8': [3.8] bpo-37193: Remove thread objects which finished process its request (GH-23127) (GH-24749) https://github.com/python/cpython/commit/0064d561b8e44f7a991188d7c

[issue42405] Add distutils mvsccompiler support for Windows ARM64 build

2021-03-04 Thread miss-islington
miss-islington added the comment: New changeset cb7bc7640935f6b05e9d2acfe4b33d496e8f8666 by Adrian Vladu in branch 'master': bpo-42405: fix C extensions build on Windows ARM64 (GH-23399) https://github.com/python/cpython/commit/cb7bc7640935f6b05e9d2acfe4b33d496e8f8666 -- nosy: +miss

[issue43396] Use more descriptive variable names in sqlite3 docs

2021-03-04 Thread Berker Peksag
Berker Peksag added the comment: New changeset 374ee449331bc95d18c37f5032aaea1448462e58 by Miss Islington (bot) in branch '3.9': bpo-43396: Normalise naming in sqlite3 doc examples (GH-24746) https://github.com/python/cpython/commit/374ee449331bc95d18c37f5032aaea1448462e58 -- _

[issue43396] Use more descriptive variable names in sqlite3 docs

2021-03-04 Thread Berker Peksag
Berker Peksag added the comment: New changeset 213c155a460b8dd9e43901e4d61aa088cbac4221 by Miss Islington (bot) in branch '3.8': bpo-43396: Normalise naming in sqlite3 doc examples (GH-24746) https://github.com/python/cpython/commit/213c155a460b8dd9e43901e4d61aa088cbac4221 -- _

[issue43396] Use more descriptive variable names in sqlite3 docs

2021-03-04 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8 ___ Python tracker ___ _

[issue4928] tempfile.NamedTemporaryFile: automatic cleanup by OS

2021-03-04 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ __

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I don't have any opinion on removing the part of the sentence. It will be helpful if you can list the scenarios where you feel document is lacking so that it can be improved. One area I have found to be little tricky is patching the correct object

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for the OP's suggestion. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list m

[issue22107] tempfile module misinterprets access denied error on Windows

2021-03-04 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ _

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Doug Harris
Doug Harris added the comment: +1 on this documentation change. @xtreak yes, patching the correct object has bit me a couple times. The pattern that I work with the most is when mocking calls to external services and APIs. I want to test my code that, say, sends email or sends user informat

[issue43364] Add shortcut to enable UTF-8 mode in start menu.

2021-03-04 Thread Steve Dower
Steve Dower added the comment: Maybe as a global setting, the better thing to copy is the button at the end of installation that offers to change the long path policy? That would give a bit more room that a checkbox to explain what is being set and what the implications are, which will help

[issue42405] Add distutils mvsccompiler support for Windows ARM64 build

2021-03-04 Thread Steve Dower
Steve Dower added the comment: Jason, this issue and the associated PR are out of date and should not be merged. The PR also only affects completely unused code, so it has no value whatsoever being in CPython. I don't really care too much about the unused code, but I will *insist* on the NE

[issue43401] dbm module doc page redirects to itself

2021-03-04 Thread Numerlor
New submission from Numerlor : In [32]: requests.get("https://docs.python.org/3/library/dbm.html";, allow_redirects=False) Out[32]: In [33]: _.headers["Location"] Out[33]: 'https://docs.python.org/3/library/dbm.html#module-dbm.ndbm' -- assignee: docs@python components: Documentation

[issue42405] Add distutils mvsccompiler support for Windows ARM64 build

2021-03-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: Hey Steve. Thanks for the clarification. I'd forgotten the context, specifically that any patches needed to be merged before the PEP was accepted, and was working from a memory that we were willing to accept this change. Happy to revert it, as that also sav

[issue42405] Add distutils mvsccompiler support for Windows ARM64 build

2021-03-04 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +23524 pull_request: https://github.com/python/cpython/pull/24753 ___ Python tracker ___ _

[issue43402] IDLE shell adds newline after print even when `end=''` is specificied

2021-03-04 Thread Hugo Nobrega
New submission from Hugo Nobrega : When evaluting a call to the `print` function with argument `end=''` in the IDLE shell, a newline is unexpectedly added at the end, before the next shell prompt. The expected behavior is to have the shell prompt next to the last printed line. The expected b

[issue23946] zero-valued timestamps are mishandled by os.stat() in Windows

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: For example, the named-pipe filesystem (NPFS), doesn't return timestamps for pipes in the directory listing, so the timestamps are all 0 (i.e. 1601-01-01): >>> write_time = win32file.FindFilesW('//./pipe/*')[0][3] >>> format(write_time, '%Y-%m-%d %H:%M')

[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2021-03-04 Thread Eryk Sun
Change by Eryk Sun : -- type: -> enhancement versions: +Python 3.10 -Python 2.7, Python 3.7 ___ Python tracker ___ ___ Python-bugs-

[issue43391] The comments have invalid license information (broken Python 2.4 URL for Python 3)

2021-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b225d91f0a92d657d9a1b62daa53ab239c8191e3 by Kamil Turek in branch 'master': bpo-43391: Remove the broken Python 2.4 link from the comment (GH-24736) https://github.com/python/cpython/commit/b225d91f0a92d657d9a1b62daa53ab239c8191e3 --

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Your proposed fix LGTM. Please open a PR. Don't forget about test and NEWS entry. -- ___ Python tracker ___ __

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-04 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks for the report and the PR. I would argue that this can still be fixed in Py3.8, given the low impact (but not earlier). The behaviour is clearly wrong (in a subtle way) and most users won't notice it because they won't switch off the C accelerator modu

[issue42405] Add distutils mvsccompiler support for Windows ARM64 build

2021-03-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset fbf75b9997e280b1220755d0a17dbed71240d42e by Jason R. Coombs in branch 'master': Revert "bpo-42405: fix C extensions build on Windows ARM64 (GH-23399)" (#24753) https://github.com/python/cpython/commit/fbf75b9997e280b1220755d0a17dbed71240d42e

[issue42129] Support resources in namespace packages

2021-03-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 67148254146948041a77d8a2989f41b88cdb2f99 by Jason R. Coombs in branch 'master': bpo-42129: Add support for resources in namespaces (GH-24670) https://github.com/python/cpython/commit/67148254146948041a77d8a2989f41b88cdb2f99 -- __

[issue42129] Support resources in namespace packages

2021-03-04 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue43403] Misleading statement about bytes not being able to represent windows filenames in documentation

2021-03-04 Thread Gregory P. Smith
New submission from Gregory P. Smith : As noted in the comment on https://github.com/rdiff-backup/rdiff-backup/issues/540#issuecomment-789485896 The Python documentation in https://docs.python.org/3/library/os.path.html makes an odd claim that bytes cannot represent all file names on Windows.

[issue43403] Misleading statement about bytes not being able to represent windows filenames in documentation

2021-03-04 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue43404] No SSL certificates when using the Mac installer

2021-03-04 Thread Sam Bull
New submission from Sam Bull : After installing the latest version of Python on Mac OS X using the installer downloaded from python.org (https://www.python.org/ftp/python/3.9.2/python-3.9.2-macosx10.9.pkg), the installed version of Python is unable to find the system certificates. Using the

[issue36021] [Security][Windows] webbrowser: WindowsDefault uses os.startfile() and so can be abused to run arbitrary commands

2021-03-04 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 2.7, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list maili

[issue43403] Misleading statement about bytes not being able to represent windows filenames in documentation

2021-03-04 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> os.path states that bytes can't represent all MBCS paths under Windows ___ Python tracker _

[issue43403] Misleading statement about bytes not being able to represent windows filenames in documentation

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: > lets not claim that bytes cannot represent everything on a filesystem > with an encoding. Gregory, before changing the filesystem encoding to UTF-8 in Python 3.6, the [A]NSI file API (e.g. CreateFileA) was used for bytes paths and the [W]ide character file API

[issue43375] memory leak in threading ?

2021-03-04 Thread Mark Dickinson
Mark Dickinson added the comment: > Since Timer thread is never joined, should not it be a daemon? Possibly, but I think that's a new question/issue. :-) And presumably there's no reason you can't make your Timer threads into daemon threads if you have a need to. -- ___

[issue30431] input function truncates prompt by NULL byte

2021-03-04 Thread Eryk Sun
Change by Eryk Sun : -- components: +Interpreter Core -IO versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue29561] Interactive mode gives sys.ps2 not sys.ps1 after comment-only line

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: The is fixed in 3.7+. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue43402] IDLE shell adds newline after print even when `end=''` is specificied

2021-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Starting interactive code input on a new line is intentional and not a bug. IDLE has other code to keep user program output separate from user code input, as when there is delayed asynchonous output. I plan to do more work to keep the two separate. ---

[issue43402] IDLE shell adds newline after print even when `end=''` is specificied

2021-03-04 Thread Hugo Nobrega
Hugo Nobrega added the comment: I see, thank you. But, in that case, shouldn't the interactive `python -i` shell have the same (now seen as desired) behavior as the IDLE shell? -- ___ Python tracker ___

[issue43405] DeprecationWarnings in test_unicode

2021-03-04 Thread Zackery Spytz
New submission from Zackery Spytz : ./python -m test test_unicode 0:00:00 load avg: 0.33 Run tests sequentially 0:00:00 load avg: 0.33 [1/1] test_unicode /home/lubuntu2/cpython/Lib/test/test_unicode.py:2941: DeprecationWarning: getargs: The 'u' format is deprecated. Use 'U' instead. self.asse

[issue43405] DeprecationWarnings in test_unicode

2021-03-04 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +23525 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24754 ___ Python tracker ___ __

[issue43356] PyErr_SetInterrupt should have an equivalent that takes a signal number

2021-03-04 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +23526 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24755 ___ Python tracker ___ _

[issue43402] IDLE shell adds newline after print even when `end=''` is specificied

2021-03-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know how many core devs would agree that inserting '\n' would be preferable. They might say that users who want clean interaction should not use the 'end' parameter the way you did in interactive mode. IDLE is more aimed at beginners and can be more

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : We can receive signals (at the C level, in trip_signal() in signalmodule.c) while signal.signal is being called to modify the corresponding handler. Later when PyErr_CheckSignals() is called to handle the given signal, the handler may be a non-callable ob

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a reproducer: https://gist.github.com/pitrou/e5a566e644730516b51de71145c5ea06 If you execute it, it will fail after a few iterations: sig 2 sig 2 sig 2 Traceback (most recent call last): File "/home/antoine/cpython/default/setinterrupt.py", line 30,

[issue28712] Non-Windows mappings for a couple of Windows code pages

2021-03-04 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ _

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-04 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +23527 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24756 ___ Python tracker __

[issue43406] Possible race condition between signal catching and signal.signal

2021-03-04 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue43407] time.monotonic(): Docs imply comparing call N and call N+M is invalid for M>1

2021-03-04 Thread Alex Willmer
New submission from Alex Willmer : I believe the documentation for time.monotonic() and time.perf_counter() could be misleading. Taken literally they could imply that given delta = 0.1 a = time.monotonic() b = time.monotonic() c = time.monotonic() the comparisons `b - a < delta`, and `c - b <

[issue41324] Add a minimal decimal capsule API

2021-03-04 Thread mattip
mattip added the comment: Was expanding the C-API discussed on the mailing list or in any wider forum? It seems vstinner is working hard to reduce the public API exposure while this issue + PR makes it even larger. Please reconsider putting this in for 3.10. -- nosy: +mattip ___

[issue28712] Non-Windows mappings for a couple of Windows code pages

2021-03-04 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue43407] time.monotonic(): Docs imply comparing call N and call N+M is invalid for M>1

2021-03-04 Thread Alex Willmer
Alex Willmer added the comment: Discussion from #python IRC [21:51] Given `a=time.monotonic(); b=time.monotonic(); c=time.monotonic()` is `c-a < delta` a valid comparison? Until this evening I thought so, but I've just read https://docs.python.org/3/library/time.html#time.monotonic and the

[issue43407] time.monotonic(): Docs imply comparing call N and call N+M is invalid for M>1

2021-03-04 Thread Alex Willmer
Change by Alex Willmer : -- keywords: +patch pull_requests: +23528 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24757 ___ Python tracker ___ ___

[issue39169] TypeError: 'int' object is not callable if the signal handler is SIG_IGN

2021-03-04 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> Possible race condition between signal catching and signal.signal ___ Python tracker

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2021-03-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Turns out this didn't fix all possible situations. See bpo-43406 for an updated patch. -- ___ Python tracker ___ ___

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for back porting, but check with the RM first. -- nosy: +rhettinger ___ Python tracker ___

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +23530 pull_request: https://github.com/python/cpython/pull/24758 ___ Python tracker _

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2122e486307d5577cb5fb5e7cfd24095695bc7e9 by Eddie Peters in branch 'master': bpo-43400: Remove "easy to use" from mock docs (GH-24752) https://github.com/python/cpython/commit/2122e486307d5577cb5fb5e7cfd24095695bc7e9 -- ___

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue43399] xml.etree.ElementTree.extend does not work with iterators when using the Python implementation

2021-03-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue43364] Windows: Make UTF-8 mode more accessible

2021-03-04 Thread Inada Naoki
Change by Inada Naoki : -- title: Add shortcut to enable UTF-8 mode in start menu. -> Windows: Make UTF-8 mode more accessible ___ Python tracker ___ _

[issue43400] Remove "Mock is very easy to use" from unittest.mock documentation

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 0dd4cb944b497dc6bd0b3763e461d72e9a7b6490 by Miss Islington (bot) in branch '3.9': bpo-43400: Remove "easy to use" from mock docs (GH-24752) (GH-24758) https://github.com/python/cpython/commit/0dd4cb944b497dc6bd0b3763e461d72e9a7b6490 ---

[issue40578] Deprecate numeric item access for platform.uname()

2021-03-04 Thread Jason R. Coombs
Jason R. Coombs added the comment: For posterity, I'll share my motivation. > Why is it a problem that people are using something which is documented as a > tuple? It's not a problem that they access it by tuple if it's documented. The problem is that it's documented for access as a tuple w

  1   2   >