[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-03-04 Thread 狂男风
狂男风 added the comment: We know Windows reslove: `http=host:port;https=host:port;ftp=host:port;socks=host:port` as: `http=http://host:port;https=http://host:port;ftp=http://host:port;socks=socks://host:port` means: Using HTTP type proxy for HTTP, HTTPS and FTP requests, but Socks4/4a type prox

[issue43300] "bisect" module should support reverse-sorted sequences

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you for the suggestion, but am going close this for the reasons mentioned above. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

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

2021-03-04 Thread Eric L.
Eric L. added the comment: Very confusing but very interesting. I'm trying to follow as I'm the main maintainer of the rdiff-backup software, which goes cross-platforms, so these small differences might become important. Now, looking into the docs, following your explanations, I noticed that

[issue42627] urllib.request.getproxies() misparses Windows registry proxy settings

2021-03-04 Thread 狂男风
Change by 狂男风 : -- nosy: +CrazyBoyFeng ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue43390] Set the SA_ONSTACK in PyOS_setsig to play well with other VMs like Golang

2021-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: I expect zero fallout from this given the semantics. SA_ONSTACK really appears to be something that should've been the POSIX default since it was introduced as a feature in ~BSD4.2 in the early 80s. But it never was. It'll be good to have in the beta rel

[issue43390] Set the SA_ONSTACK in PyOS_setsig to play well with other VMs like Golang

2021-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 02ac6f41e5569ec28d625bb005155903f64cc9ee by Gregory P. Smith in branch 'master': bpo-43390: Set SA_ONSTACK in PyOS_setsig (GH-24730) https://github.com/python/cpython/commit/02ac6f41e5569ec28d625bb005155903f64cc9ee -- __

[issue43404] No SSL certificates when using the Mac installer

2021-03-04 Thread Ned Deily
Ned Deily added the comment: When installing current Pythons for macOS downloaded from python.org, you will need to run the "Install Certificates.command" file installed into the /Applications/Python 3.x" folder for the version installed. This is noted in the initial screen when running the

[issue43372] ctypes: test_frozentable fails when make regen-frozen

2021-03-04 Thread Neil Schemenauer
Change by Neil Schemenauer : -- assignee: -> nascheme ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue42246] Implement PEP 626 -- Precise line numbers for debugging

2021-03-04 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +23532 pull_request: https://github.com/python/cpython/pull/24759 ___ Python tracker ___

[issue43372] ctypes: test_frozentable fails when make regen-frozen

2021-03-04 Thread Neil Schemenauer
Change by Neil Schemenauer : -- pull_requests: +23531 pull_request: https://github.com/python/cpython/pull/24759 ___ Python tracker ___

[issue43400] Improve recipes and howtos for the unittest.mock

2021-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Renaming this issue to reflect a shift in focus towards broader improvements to the documentation. -- title: Remove "Mock is very easy to use" from unittest.mock documentation -> Improve recipes and howtos for the unittest.mock versions: -Python

[issue43400] Improve recipes and howtos for the unittest.mock

2021-03-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43405] DeprecationWarnings in test_unicode

2021-03-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The changes were introduced in https://bugs.python.org/issue36346 -- nosy: +methane, xtreak ___ 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: Mock has a section on getting started that has several recipes but it's not under howto section. Perhaps this page could be updated if you want to make a PR : https://docs.python.org/3/library/unittest.mock-examples.html There is also a section on

[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

[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 ---

[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 ___ _

[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://

[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

[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 -- ___

[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 ___

[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 ___ ___

[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

[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 ___ ___

[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

[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

[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 ___

[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 <

[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

[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 __

[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
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,

[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

[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

[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 ___ _

[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 ___ __

[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

[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 ___

[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. ---

[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 ___

[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 ___ ___

[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. -- ___

[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

[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 _

[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

[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

[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

[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.

[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 ___ _

[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 -- __

[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

[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

[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 ___ __

[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 --

[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-

[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')

[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

[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 ___ _

[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

[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 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

[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

[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

[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 Raymond Hettinger
Raymond Hettinger added the comment: +1 for the OP's suggestion. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list m

[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

[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 ___ __

[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 ___ _

[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
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 -- _

[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

[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

[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 ___ ___

[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
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

[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

[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 Alex
Change by Alex : -- keywords: +patch pull_requests: +23521 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24751 ___ Python tracker ___ ___

[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
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

[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

[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 ___ __

[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 ___ __

[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 _

[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 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 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: 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

[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] 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

[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 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 __

[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

[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

[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 ___ ___

[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 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 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: 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

  1   2   >