[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also, we should document the meaning of the other fields. Several of them are not self explanatory: min_10_exp = -307 does not mean that 2.3e-308 isn't normalized does mean that 10**-307 is normalized and 10**-308 isn't min_exp = -1021 does

[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python does not set the meaning and the value of these fields itself. It exposes C constants. Should we just copy definitions from corresponding C or floating-point standards? -- ___ Python tracker

[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, seems it was what Raymond proposed initially. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue42066] CookieJar cookies should not be sorted

2020-10-18 Thread Iman Kermani
New submission from Iman Kermani : Lib/http/cookiejar.py By default python handle cookies based on regular Netscape cookie protocol and the protocol defined by RFC 2965. There is a behavior in python which sort cookies in CookieJar by default: https://github.com/python/cpython/blob/975d10a4f8

[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's a link: http://c0x.coding-guidelines.com/5.2.4.2.2.html -- ___ Python tracker ___ ___

[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-10-18 Thread Tal Einat
Tal Einat added the comment: After further reading, especially the docs for OSError which describe the filename and filename2 attributes, I agree that setting .filename on the FileNotFoundError exception is the way to go. -- ___ Python tracker

[issue26423] Integer overflow in wrap_lenfunc() on 64-bit build of Windows with len > 2**31-1

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36583] Do not swallow exceptions in the _ssl module

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36398] A possible crash in structseq.c's structseq_repr()

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36285] Integer overflow in array.array.remove()

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35436] Add missing PyErr_NoMemory() calls

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35414] A reference counting bug in PyState_RemoveModule()

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42004] Allow uploading files with SimpleHTTPRequestHandler

2020-10-18 Thread Jake
Change by Jake : -- nosy: +jacobsorme ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2020-10-18 Thread Tal Einat
Tal Einat added the comment: Thanks for the reminder Irit! No, this should not be closed yet, as there is still the possibility of improving the exception in version 3.8. -- versions: +Python 3.8 ___ Python tracker

[issue42067] Type annotation in for-loops

2020-10-18 Thread barak dopama
New submission from barak dopama : Why do I have to do this: for element in my_list: element: ElementType = element process(element) And can't do this: for element: ElementType in my_list: process(element) -- components: Build message

[issue42066] CookieJar cookies should not be sorted

2020-10-18 Thread Iman Kermani
Change by Iman Kermani : -- keywords: +patch pull_requests: +21707 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22745 ___ Python tracker ___ ___

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Marc Culler
New submission from Marc Culler : Packaging Tcl and Tk within the python framework is a great idea and a big improvement. But the way it is being done is pretty crazy, and makes it unnecessarily difficult to upgrade the version of Tcl/Tk that python is using. That is something which should be

[issue42051] plistlib inherits XML vulnerabilities: we should document them

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems that we can not control entity definitions and expansions. We only can limit the number of expanded entities per element (the size of self.data). What is the reasonable default limit (taking into account that every < and 〹 is a separate entity)? How

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Eric V. Smith
Eric V. Smith added the comment: It sounds like your solution is macOS only, where as Python needs to be cross platform. Further, I assume there are good reasons that it's implemented the way it is. Perhaps there was no alternative when it was initially developed? And we're constrained by b

[issue42051] plistlib inherits XML vulnerabilities: we should document them

2020-10-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: One option is to copy what defusedxml does to forbid a number of unsafe operations, see https://github.com/tiran/defusedxml/blob/eb38a2d710b67df48614cb5098ddb8472289ce6d/defusedxml/ElementTree.py#L68 Defusedxml uses an XMLParser subclass that optionally dis

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Marc Culler
Marc Culler added the comment: Dear Eric, I am aware that python is cross platform. The change that I am proposing would be almost entirely limited to the file: Mac/BuildScript/build-installer.py which is entirely mac-specific. It controls how the Mac installer is constructed. Specifically

[issue42067] Type annotation in for-loops

2020-10-18 Thread Ken Jin
Ken Jin added the comment: That's an interesting syntax suggestion, you might want to suggest that in the python-ideas mailing list for other people to read about it rather than post it on python bugs. IMO, this isn't really an issue since you can specify the type of the elements in generic

[issue42004] Allow uploading files with SimpleHTTPRequestHandler

2020-10-18 Thread Jake
Jake added the comment: I would find this very useful. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure what you are trying to accomplish. It is already possible to replace the Tcl/Tk libraries by replacing the relevant files in Python.framework. However: these aren't meant to be user serviceable parts, the copy of Tcl/Tk that we include is test

[issue42051] plistlib inherits XML vulnerabilities: we should document them

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I missed that there is a handler for EntityDecl. Well, then we can fix this issue in few lines of code. I think it should be backported. We can add private flag (global or class variable) to enable entity declarations, but do not support them in 3.10.

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2020-10-18 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +21709 pull_request: https://github.com/python/cpython/pull/22746 ___ Python tracker ___

[issue38252] Use 8-byte step to detect ASCII sequence in 64bit Windows builds

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a0c603cb9d4dbb9909979313a88bcd1f5fde4f62 by Ma Lin in branch 'master': bpo-38252: Use 8-byte step to detect ASCII sequence in 64bit Windows build (GH-16334) https://github.com/python/cpython/commit/a0c603cb9d4dbb9909979313a88bcd1f5fde4f62 -

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2020-10-18 Thread Irit Katriel
Irit Katriel added the comment: Ah yes, I missed that. I've pushed a PR for 3.8 that does this: >>> urllib.parse.unquote(b'abc%20def') Traceback (most recent call last): File "", line 1, in File "C:\Users\User\src\cpython\lib\urllib\parse.py", line 635, in unquote raise TypeError('Exp

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c304c9a7efa8751b5bc7526fa95cd5f30aac2b92 by scaramallion in branch 'master': bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) https://github.com/python/cpython/commit/c304c9a7efa8751b5bc7526fa95cd5f30aac2b92 -- _

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +21710 pull_request: https://github.com/python/cpython/pull/22747 ___ Python tracker _

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +21711 pull_request: https://github.com/python/cpython/pull/22748 ___ Python tracker ___ __

[issue20184] Derby #16: Convert 50 sites to Argument Clinic across 9 files

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1bcaa81e520e30f920bd69e46fbf1d67a9107ce1 by Serhiy Storchaka in branch 'master': bpo-20184: Convert termios to Argument Clinic. (GH-22693) https://github.com/python/cpython/commit/1bcaa81e520e30f920bd69e46fbf1d67a9107ce1 --

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Marc Culler
Marc Culler added the comment: Dear Ronald, You are correct that "It is already possible to replace the Tcl/Tk libraries by replacing the relevant files in Python.framework." I know that because I have done it. Moreover, having done it, I know that it is much more difficult than it should be

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a055ced9d43630cadc3c1d5edab0884f2c5131ea by Miss Skeleton (bot) in branch '3.9': bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22747) https://github.com/python/cpython/commit/a055ced9d43630cadc3c1d5edab0884f2c5131ea --

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1040299e9283609f3de0f6e32a0d43458fe7f4f6 by Miss Skeleton (bot) in branch '3.8': bpo-41966: Fix pickling pure datetime.time subclasses (GH-22731) (GH-22748) https://github.com/python/cpython/commit/1040299e9283609f3de0f6e32a0d43458fe7f4f6 --

[issue41966] datetime.time issue with pickling in PyPy

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Paul Moore
Paul Moore added the comment: OK, PR updated as per discussion. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue38252] Use 8-byte step to detect ASCII sequence in 64bit Windows builds

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42069] Make filecmp more pythonic

2020-10-18 Thread Alex
New submission from Alex : Cleanup the filecmp file add typing and make it more pythonic -- components: Library (Lib) messages: 378877 nosy: alex.briskin priority: normal severity: normal status: open title: Make filecmp more pythonic versions: Python 3.9 __

[issue42069] Make filecmp more pythonic

2020-10-18 Thread Alex
Change by Alex : -- keywords: +patch pull_requests: +21712 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22750 ___ Python tracker ___ ___

[issue28660] TextWrapper break_long_words=True, break_on_hyphens=True on long words

2020-10-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b81c833ab51fb7d7f0f8eaace37f60ef7455aa85 by Irit Katriel in branch 'master': bpo-28660: Make TextWrapper break long words on hyphens (GH-22721) https://github.com/python/cpython/commit/b81c833ab51fb7d7f0f8eaace37f60ef7455aa85 -- ___

[issue28660] TextWrapper break_long_words=True, break_on_hyphens=True on long words

2020-10-18 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42069] Make filecmp more pythonic

2020-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: In general, we don't accept patches like this: * It risks breaks (in fact the tests are failing. * We're not apply Black's quoting preferences to existing files. * We're not yet adding type annotations through out. * The PR introduces multiple new dependenc

[issue37931] crash reimporting posix after Py_Finalize on mac

2020-10-18 Thread STINNER Victor
STINNER Victor added the comment: Right, I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: I don't know how much should be documented for subprocess.Popen, but here are the details for how searching works with shell=False (default) and shell=True. For shell=False, the search path used by WinAPI CreateProcessW checks %__APPDIR__%; %__CD__% (unless %NoDef

[issue42066] CookieJar cookies should not be sorted

2020-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: The seems reasonable to me. Likely, the sorting was originally added to make the execution order deterministic. Now that dicts remember insertion order, that is no longer necessary. Helpfully, the docs do not specify sorting, so there is no guaranteed

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Ned Deily
Change by Ned Deily : -- assignee: -> ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue42068] For macOS, package the included Tcl and Tk frameworks in a rational way.

2020-10-18 Thread Ned Deily
Ned Deily added the comment: Marc, thanks for your suggestion. I'm the one responsible for how Tcl and Tk are currently packaged in the python.org framework build and I know exactly what you are suggesting so there is no need for you to make a PR. There were reasons why I chose to set things

[issue42070] I think the rationale to keep IsoCalendarDate private from the pickle perspective should get revisited

2020-10-18 Thread Msimpasona
New submission from Msimpasona : IsoCalendarDate is pickled as a regular tuple and so requires a slightly different code flow in case the pickle file is used as cache. More details here: https://stackoverflow.com/questions/64408303/python-3-9-unpickling-of-isocalendardate-data-returns-a-tuple

[issue42070] I think the rationale to keep IsoCalendarDate private from the pickle perspective should get revisited

2020-10-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue42071] Shelve should default to the default Pickle protocol instead of hardcoding version 3

2020-10-18 Thread Marco Castelluccio
New submission from Marco Castelluccio : Shelve is currently defaulting to Pickle protocol 3, instead of using Pickle's default protocol for the Python version in use. This way, Shelve's users don't benefit from improvements introduced in newer Pickle protocols, unless they notice it and manu

[issue42071] Shelve should default to the default Pickle protocol instead of hardcoding version 3

2020-10-18 Thread Marco Castelluccio
Change by Marco Castelluccio : -- keywords: +patch pull_requests: +21713 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22751 ___ Python tracker _

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Paul Moore
Paul Moore added the comment: I don't think we should document this level of detail, both because it's basically Windows standard behaviour and therefore not up to us to document, and because it's *way* too overwhelming for the average user. -- __

[issue42071] Shelve should default to the default Pickle protocol instead of hardcoding version 3

2020-10-18 Thread Zackery Spytz
Zackery Spytz added the comment: Unfortunately, this is a duplicate of bpo-34204 (which already has a pull request). -- nosy: +ZackerySpytz resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Bump the default pickle protocol in shelve versi

[issue42071] Shelve should default to the default Pickle protocol instead of hardcoding version 3

2020-10-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: This seems reasonable to me. There might be some issue is existing code where different versions of Python are sharing the same shelf, but I don't think this is common. -- nosy: +rhettinger ___ Python tracker

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: > I don't think we should document this level of detail But a lot of it -- most of it -- is also strange behavior that no one would expect without reading about it somewhere. Most users of subprocess.Popen() will never wade through the documentation of CreateProce

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Paul Moore
Paul Moore added the comment: Well, I'm not convinced that using `shutil.which` is the right answer for anything other than "python". And even there, I'd recommend using `sys.executable` over `shutil.which` in pretty much every case. My view is that if we ignore the "weirdness" introduced by

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: > Also, why would we document the Windows rules, but not the POSIX > rules? They are arguably just as strange to someone who doesn't > know them. POSIX rules are simply to search PATH for the filename as passed, and if it has a slash in it, the path is resolved a

[issue42072] requests

2020-10-18 Thread Grisha Lukovnikov
New submission from Grisha Lukovnikov : Traceback (most recent call last): File "C:\Users\dns\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen httplib_response = self._make_request( File "C:\Users\dns\AppData\Local\Programs\Pyth

[issue42073] classmethod does not pass "type/owner" when invoking wrapped __get__

2020-10-18 Thread Erik Welch
New submission from Erik Welch : The following is new to Python 3.9, and I consider the implementation incomplete. I have code that works for Python 3.8 and before, but not for Python 3.9: "Class methods can now wrap other :term:`descriptors ` such as :func:`property`." https://github.com/

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Paul Moore
Paul Moore added the comment: Exactly. Why isn't the current directory searched? Why isn't foo/bar searched for on PATH? Why is it possible for the user to accidentally remove system commands from PATH and lose access to them? Any system is confusing and surprising to users only familiar wit

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Tal Einat added the comment: New changeset 3c0ac18504cfeed822439024339d5717f42bdd66 by Anthony Sottile in branch 'master': bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910) https://github.com/python/cpython/commit/3c0ac18504cfeed822439024339d5717f

[issue42070] I think the rationale to keep IsoCalendarDate private from the pickle perspective should get revisited

2020-10-18 Thread Paul Ganssle
Paul Ganssle added the comment: That's a reasonable enough objection, though what use case do you have for storing the IsocalendarDate object? The main reason we switched to using a named tuple like this was because the vast majority of uses of `isocalendar()` that I saw were people doing st

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +21715 pull_request: https://github.com/python/cpython/pull/22752 ___ Python tracker ___ _

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +21716 pull_request: https://github.com/python/cpython/pull/22753 ___ Python tracker ___ ___

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Change by Tal Einat : -- pull_requests: +21717 pull_request: https://github.com/python/cpython/pull/22754 ___ Python tracker ___ ___

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +21718 pull_request: https://github.com/python/cpython/pull/22755 ___ Python tracker ___ _

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Tal Einat added the comment: Many thanks for the report and the PR, Anthony! Serhiy, do you think it is worth also calling abspath in the profile._Utils as you mentioned, for cases where those may be called directly? -- ___ Python tracker

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Change by Tal Einat : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2020-10-18 Thread Tal Einat
Tal Einat added the comment: New changeset 1a3f7c042a32fb813835243bd7f96e47c665bfdc by Irit Katriel in branch '3.8': [3.8] bpo-32498: Improve exception message on passing bytes to urllib.parse.unquote (GH-22746) https://github.com/python/cpython/commit/1a3f7c042a32fb813835243bd7f96e47c665bfd

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2020-10-18 Thread Tal Einat
Tal Einat added the comment: Thanks for the report and the PR, Stein! And thanks for the PR for 3.8, Irit! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Tal Einat added the comment: New changeset 1c5a65723e623be32e246f58b8797a263f616295 by Anthony Sottile in branch '3.8': bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910) https://github.com/python/cpython/commit/1c5a65723e623be32e246f58b8797a263f61

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-10-18 Thread Tal Einat
Tal Einat added the comment: New changeset 7c949020ef2520d7a7cbc978f0b34423e6c2a94c by Anthony Sottile in branch '3.9': bpo-40492: Fix --outfile with relative path when the program changes it working dir (GH-19910) https://github.com/python/cpython/commit/7c949020ef2520d7a7cbc978f0b34423e6c2

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: > You can build a cross-platform wrapper on top of native behaviour > (witness `shutil.which`) but you can't do the opposite. Nothing would prevent adding a parameter to use the platform semantics, if that had been in the design from the outset. But it's not somet

[issue42060] Usage of assert in http/client.py

2020-10-18 Thread Vedran Čačić
Vedran Čačić added the comment: If I understand correctly, those are _private methods_ (names start with underscore). In such cases, asserts can be completely fine, since the library writer controls the situations where the method is called. If it is never called with _UNKNOWN argument, asser

[issue42074] f***ing setup failed is driving me insane

2020-10-18 Thread CaptainMitsumoto
New submission from CaptainMitsumoto : I am frustrated now. I was about to install Python 3.9.0 in my gaming laptop then I get this thing. I tried to google the hex error and the error name. I tried getting help in Python Discord but no good luck, they're weren't any good solutions. I got thi

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2020-10-18 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI, WIP branch for this bpo is here: https://github.com/erlend-aasland/cpython/commits/bpo-42064/all This currently includes items 1 though 6. I'll update the WIP branch with a draft of items 7 and 8, hopefully tomorrow. --

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-10-18 Thread Chris Jerdonek
Change by Chris Jerdonek : -- pull_requests: +21719 pull_request: https://github.com/python/cpython/pull/22756 ___ Python tracker ___ __

[issue42074] setup error on windows

2020-10-18 Thread Steven D'Aprano
Change by Steven D'Aprano : -- title: f***ing setup failed is driving me insane -> setup error on windows ___ Python tracker ___ ___

[issue42075] Verbose/confusing default format on warnings

2020-10-18 Thread Mithil
New submission from Mithil : The default format prints a lot of details like filename, line number, and the source code on that line. A particular case where the warn message is written on the next line like - warn( "Message here") Will only print warn( as the source code and not the entire

[issue42074] setup error on windows

2020-10-18 Thread Steven D'Aprano
Change by Steven D'Aprano : -- components: +Installation -Unicode type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-lis

[issue42074] setup error on windows

2020-10-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi CaptainMitsumoto, Did you follow the instructions given by the installer to read the log file? We don't have access to your log file, only you do. Can you see what file cannot be found? Did you try some basic googling? I'm not a Windows guru, but this:

[issue42073] classmethod does not pass "type/owner" when invoking wrapped __get__

2020-10-18 Thread Erik Welch
Change by Erik Welch : -- keywords: +patch pull_requests: +21720 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22757 ___ Python tracker ___ _

[issue19072] classmethod doesn't honour descriptor protocol of wrapped callable

2020-10-18 Thread Erik Welch
Change by Erik Welch : -- nosy: +eriknw nosy_count: 8.0 -> 9.0 pull_requests: +21721 pull_request: https://github.com/python/cpython/pull/22757 ___ Python tracker ___ _

[issue42075] Verbose/confusing default format on warnings

2020-10-18 Thread Steven D'Aprano
Steven D'Aprano added the comment: 3.9 and older are all in feature freeze, so no changes in behaviour will be considered for them. I'm afraid I cannot replicate the behaviour you describe. When I try, the full warning message is correctly displayed. See the attached file. Importing it from

[issue42041] venv subprocess call to python resolves to wrong interpreter

2020-10-18 Thread Eryk Sun
Eryk Sun added the comment: > For platform semantics, I'd prefer a link to the CreateProcessW docs, > with advice to read about the lpApplicationName parameter with > respect to `executable` and lpCommandLine with respect to `args` > and the platform search semantics. For example, let's he

[issue42075] Verbose/confusing default format on warnings

2020-10-18 Thread Mithil
Mithil added the comment: I ran the file that you linked and this is what it printed. C:\Users\mithi\p\test\file.py:3: UserWarning: Danger danger danger Will Robinson!!! warnings.warn( As you see, the warnings.warn( line is not desirable. More details about my machine - Windows 10 python 3

[issue42076] urllib ResourceWarning in case of usage of FTP

2020-10-18 Thread Serhiy Ivanov
New submission from Serhiy Ivanov : In case when FTP url is successfully connected via default FTPHandler in FTPHandler.connect_ftp then release of this stuff becomes total responsibility of user i.e. socket remains open, which leads to ResourceWarning in the garbage collector, in case if the

[issue42075] Verbose/confusing default format on warnings

2020-10-18 Thread Mithil
Mithil added the comment: I also ran this on Fedora 32, python 3.8.6 and still got the same result. -- ___ Python tracker ___ ___ P

[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

2020-10-18 Thread Irit Katriel
Irit Katriel added the comment: If I change Foo in your code to: @dataclass(init=False) class Foo: callback: Callable[[int], int] = lambda x: x**2 Then the same TypeError exception is raised for Foo. If I then change it back (remove the init=False so that it picks up the def

[issue38947] dataclass defaults behave inconsistently for init=True/init=False when default is a descriptor

2020-10-18 Thread Irit Katriel
Irit Katriel added the comment: I think you may have meant this issue (which is not related to field()): from dataclasses import dataclass from typing import Callable @dataclass(init=True) class Foo: callback: Callable[[int], int] = lambda x: x**2 @dataclass(init=False) class Bar:

[issue40484] Document existing compiler flags under ast

2020-10-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 155938907c2b3df71608ddeaa0a43d2ec1f2c699 by Batuhan Taskaya in branch 'master': bpo-40484: Document compiler flags under AST module (GH-19885) https://github.com/python/cpython/commit/155938907c2b3df71608ddeaa0a43d2ec1f2c699 --

[issue40484] Document existing compiler flags under ast

2020-10-18 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +21723 pull_request: https://github.com/python/cpython/pull/22758 ___ Python tracker _

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: Below is one of the tests that got run when I happened to import something, and I thought it was a good illustration of the Boyer-Moore bad character shift table. It's worth noting in particular that the table is the dominant force for speed in some common

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-18 Thread Dennis Sweeney
Dennis Sweeney added the comment: FWIW, one of the "# Made the spaces line up" is actually a "skip ahead by the needle length". -- ___ Python tracker ___

[issue41982] [Python 3.8] Wrong location flagged as syntax error

2020-10-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Closing this as the new parser in Python3.9+ handles this correctly -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue42077] Some Absolute domain name not work in urllib

2020-10-18 Thread Zheng SHAO
New submission from Zheng SHAO : ``` import ssl import urllib.request url_string = "https://kubernetes.default.svc.cluster.local./api/"; ctx = ssl._create_unverified_context() with urllib.request.urlopen(url_string, context=ctx) as f: f.read() ``` In running this sample code will got a f

[issue42077] Some absolute domain name not work in urllib

2020-10-18 Thread Zheng SHAO
Change by Zheng SHAO : -- title: Some Absolute domain name not work in urllib -> Some absolute domain name not work in urllib ___ Python tracker ___ __

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-18 Thread Tim Peters
Tim Peters added the comment: Dennis, I think that's expected, right? Two-way on its own can exploit nothing about individual characters - it only preprocesses the needle to break the possibility for quadratic-time behavior due to periods in the needle. It sounds like you switched the curren

[issue40814] Update typing module documentation based on PEP 585

2020-10-18 Thread Ken Jin
Ken Jin added the comment: The PR should be ready for review now. Thanks for your patience. -- ___ Python tracker ___ ___ Python-bu

  1   2   >