[issue40639] Strange behavior in changing nested dictionaries

2020-05-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: Hi Jacob, and welcome. You said: "I was experimenting with nested dictionaries when I came across strange behavior that I can not figure out at all." This is a bug tracker, for reporting bugs, not a help desk for asking how to figure out Python's

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-15 Thread Dennis Sweeney
Dennis Sweeney added the comment: The attached recursive_merge.py should be much less ugly and still somewhat performant. It should be the same algorithm as that PR, just written recursively rather than iteratively. I got some text files from http://www.gwicks.net/dictionaries.htm and

[issue40622] Tests fail with python3.6 built with VS2019

2020-05-15 Thread Ned Deily
Ned Deily added the comment: P.S. If you *do* want to build the current HEAD of the 3.6 branch including as yet unreleased fixes: git checkout 3.6 If you want to build a specific release, use the v^ tags provided for each release: git checkout v3.6.8 --

[issue40622] Tests fail with python3.6 built with VS2019

2020-05-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Unfortunately, you are not actually building Python 3.6 here. Revision f3a5b7a is on the master branch, not 3.6. The fact that you are seeing a failure of test_peg_generator confirms that you are building from master (i.e. a pre-release

[issue40477] Python Launcher app on macOS 10.15 Catalina fails to run scripts

2020-05-15 Thread Werner
Werner added the comment: I believe, I found a simple way to get what you are looking for: Open Automator and create an app. Select »execute Shell script« put in the editor: python3 $1 Save this as MyPythonLauncher or what you want. Test it: Drop a Python script on the app. It should execute

[issue40639] Strange behavior in changing nested dictionaries

2020-05-15 Thread Jacob Underwood
New submission from Jacob Underwood : I was experimenting with nested dictionaries when I came across strange behavior that I can not figure out at all. The following function, at least for me, has some weird behavior. Originally, it was a bit longer, but somehow it achieved its intended

[issue40477] Python Launcher app on macOS 10.15 Catalina fails to run scripts

2020-05-15 Thread Ned Deily
Ned Deily added the comment: > After your final fix, if I understood you correctly, we will no longer have > to open Terminal? That's correct. That's the way the Launcher works on previous version on macOS. > will it ever be possible to not have the terminal run in the future? That's the

[issue40633] json.dumps() should encode float number NaN to null

2020-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: One other issue just came to mind. While we could convert NaN to null during encoding, there isn't a reasonable way to reverse the process (a null could either be a NaN or a legitimate None). That would limit the utility of a new optional conversion.

[issue40633] json.dumps() should encode float number NaN to null

2020-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: [Eric] > this is documented behavior [Mark] > I definitely wouldn't want to see nans translated to > "null" by default. I concur with both of these statements. I would support adding an option (off by default) to convert NaNs to None. While NaNs were

[issue13601] sys.stderr should be line-buffered when stderr is not a TTY

2020-05-15 Thread Shantanu
Shantanu added the comment: I'm wondering if this should be mentioned in Python 3.9's What's New, potentially at https://docs.python.org/3.9/whatsnew/3.9.html#sys ? This change broke one of mypy's tests on 3.9 and it was a little tricky to find what had changed. -- nosy:

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +macOS ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40590] test_subprocess stuck on Windows, x64

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: CI now passes. -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please write out a manual test example (steps 1, 2, ..., N) that fails now and passes with the patch. -- title: IDLE preserve clipboard on closure (Windows) -> IDLE: preserve clipboard on closure on Windows versions: +Python 3.7, Python 3.8

[issue40590] test_subprocess stuck on Windows, x64

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: python -m test.testsubprocessing on my Win 10-64 with repository 3.9.0a6+, without your patch, produces minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN) minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) :

[issue40586] Pydoc should support https for hyperlinks.

2020-05-15 Thread Shantanu
Shantanu added the comment: This looks like a duplicate of https://bugs.python.org/issue38786, which was fixed in https://github.com/python/cpython/pull/17143 That PR wasn't backported, but maybe it should be. -- nosy: +hauntsaninja ___ Python

[issue40622] Tests fail with python3.6 built with VS2019

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Runtest itself ran to completion but the 4 tests listed failed. I suspect that this should be closed as "won't fix" because A. 3.6 only gets security fixes since Dec 2018. B. Locally built Windows binaries often fail a few tests, either occasionally or

[issue40583] Runtime type annotation mutation leads to inconsistent behavior

2020-05-15 Thread Saumitro Dasgupta
Change by Saumitro Dasgupta : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40620] Range tutorial shorthand could be made clearer

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This block is the same in 3.9 and 3.8. My first though is this block is a holdover from 2.7, where range returned list. But looking at what is written previously, I think your interpretation is correct -- and agree that something other that code and

[issue40457] Python fails to compile/load _ssl module if OpenSSL is compiled with no-tls1-method

2020-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +19431 pull_request: https://github.com/python/cpython/pull/20126 ___ Python tracker ___

[issue40457] Python fails to compile/load _ssl module if OpenSSL is compiled with no-tls1-method

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 6e8cda91d92da72800d891b2fc2073ecbc134d98 by Christian Heimes in branch 'master': bpo-40457: Support OpenSSL without TLS 1.0/1.1 (GH-19862) https://github.com/python/cpython/commit/6e8cda91d92da72800d891b2fc2073ecbc134d98 -- nosy:

[issue40605] «python»: Aucun fichier ou dossier de ce type

2020-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39075] types.SimpleNamespace should preserve attribute ordering (?)

2020-05-15 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40605] «python»: Aucun fichier ou dossier de ce type

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Titles should be in English (translated if quoting output). I am closing because there is no indication that there is a bug in Python, as opposed to a misunderstanding of how to use it. Extended help discussion is better conducted on python-list. For one

[issue39075] types.SimpleNamespace should preserve attribute ordering (?)

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 6b6092f533f0e4787b8564c4fad6ec6d1018af0d by Zackery Spytz in branch 'master': bpo-39075: types.SimpleNamespace no longer sorts attributes in its repr (GH-19430) https://github.com/python/cpython/commit/6b6092f533f0e4787b8564c4fad6ec6d1018af0d

[issue40600] Add option to disallow > 1 instance of an extension module

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Title clarified. Leaving subinterpreters aside, only one instance, AFAIK, is true for stdlib and python modules unless imported with different names, as can happen with main module (which is a nuisance if not a bug). So only once per interpreter seems

[issue31033] Add argument to .cancel() of Task and Future

2020-05-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: I just want to flag one issue after rebasing my traceback PR onto what was merged. If task.cancel() is called like this-- task.cancel("POSSIBLY LONG CANCEL MESSAGE") There is the question of whether the passed message should be repeated each time the

[issue40587] [regression] inspect.getdoc not returning docstring.

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This change was part of #40257 and is being discussed there (where I suggested reverting it). -- nosy: +terry.reedy resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue40586] Pydoc should support https for hyperlinks.

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Agreed. pydoc is a library module. 3.5 and 3.6 only get security patches. -- components: +Library (Lib) -Demos and Tools nosy: +serhiy.storchaka, terry.reedy ___ Python tracker

[issue40586] Pydoc should support https for hyperlinks.

2020-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40257] Improve the use of __doc__ in pydoc

2020-05-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whether or not an object has a docstring is implementation defined, and I do not consider it to be part of its API. I just backported some new docstrings (with Brett Cannon's concurrence), and I would consider it OK for Serhiy to do the same with his

[issue40635] Documentation for socket.getfqdn incorrect?

2020-05-15 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: The nested generators approach looks promising. I hope you keep working on that :-) I'm not too keen on PR 18427 because it is a massive explosion in code volume and complexity. With some continued effort, I expect we'll get to something much simpler and

[issue31033] Add argument to .cancel() of Task and Future

2020-05-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: The msg argument has now been added (second PR). I'm going to keep this issue open until the traceback issue has also been addressed (the other PR), as that was one part of the discussions here. -- ___ Python

[issue31033] Add argument to .cancel() of Task and Future

2020-05-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: New changeset 1ce5841eca6d96b1b1e8c213d04f2e92b1619bb5 by Chris Jerdonek in branch 'master': bpo-31033: Add a msg argument to Future.cancel() and Task.cancel() (GH-19979) https://github.com/python/cpython/commit/1ce5841eca6d96b1b1e8c213d04f2e92b1619bb5

[issue40583] Runtime type annotation mutation leads to inconsistent behavior

2020-05-15 Thread Saumitro Dasgupta
Saumitro Dasgupta added the comment: Fair enough. If that's the consensus, I'll close the issue. -- ___ Python tracker ___ ___

[issue40583] Runtime type annotation mutation leads to inconsistent behavior

2020-05-15 Thread Eric V. Smith
Eric V. Smith added the comment: Perhaps it should be better documented. I don't see the behavior changing. -- ___ Python tracker ___

[issue40583] Runtime type annotation mutation leads to inconsistent behavior

2020-05-15 Thread Saumitro Dasgupta
Saumitro Dasgupta added the comment: I'd argue that the situation is a bit different from class variables here, since __annotations__ is indirectly brought into existence by the presence of statically-established type annotations. You can be perfectly aware of how class variables work yet

[issue40583] Runtime type annotation mutation leads to inconsistent behavior

2020-05-15 Thread Eric V. Smith
Eric V. Smith added the comment: But this is no different from every other mutable class variable in Python: class Base: data = {} class Alpha(Base): pass class Beta(Base): data = {} Alpha.data['injected'] = bool assert Alpha.data is Base.data Beta.data['injected'] = bool I'm

[issue40638] input() with malformed input stream triggers assertion failure

2020-05-15 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- keywords: +patch pull_requests: +19430 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20125 ___ Python tracker

[issue40638] input() with malformed input stream triggers assertion failure

2020-05-15 Thread Maxwell Bernstein
New submission from Maxwell Bernstein : builtin_input_impl does multiple attribute lookups in a row assuming they will succeed, but part of attribute lookup assumes that there is no pending exception. I propose doing the lookups one by one and checking for an error after each. There is an

[issue40637] Allow users to disable builtin hash modules on compile time

2020-05-15 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40637] Allow users to disable builtin hash modules on compile time

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 9b60e55db2897acc30d6b9ef1dbc49674eed40c7 by Christian Heimes in branch 'master': bpo-40637: Add option to disable builtin hashes (GH-20121) https://github.com/python/cpython/commit/9b60e55db2897acc30d6b9ef1dbc49674eed40c7 -- nosy:

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset c3d025a86a60348f19551bd9921304c5db322531 by Miss Islington (bot) in branch '3.8': bpo-40636: Clarify the zip built-in docstring. (GH-20118) https://github.com/python/cpython/commit/c3d025a86a60348f19551bd9921304c5db322531 --

[issue40583] Runtime type annotation mutation leads to inconsistent behavior

2020-05-15 Thread Saumitro Dasgupta
Saumitro Dasgupta added the comment: In my opinion, the main problem here is the element of surprise. Given a statement like this: foo.__annotations__['injected'] = bool the expressed intent is "extend this object's annotations". It's surprising that it can sometimes result in

[issue40445] compileall.compile_dir docs aren't updated for bpo-38112

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset a2b3cdd661a4b6c6c74adbfcb6ac1865bfd2a011 by Shantanu in branch 'master': bpo-40445: Update compileall.compile_dir docs (GH-19806) https://github.com/python/cpython/commit/a2b3cdd661a4b6c6c74adbfcb6ac1865bfd2a011 -- nosy:

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-05-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +19429 pull_request: https://github.com/python/cpython/pull/20124 ___ Python tracker

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-05-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 6a5d3ff67644af42b1a781be2eacb2e82913441c by Gregory P. Smith in branch 'master': bpo-40636: Clarify the zip built-in docstring. (GH-20118) https://github.com/python/cpython/commit/6a5d3ff67644af42b1a781be2eacb2e82913441c --

[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

2020-05-15 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja nosy_count: 6.0 -> 7.0 pull_requests: +19428 pull_request: https://github.com/python/cpython/pull/19806 ___ Python tracker ___

[issue40583] Runtime type annotation mutation leads to inconsistent behavior

2020-05-15 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This is actually a specified behavior (motivated by memory savings for class objects, that are already pretty large). If you scroll down the link you posted it says: > Note that if annotations are not found statically, then the > ``__annotations__``

[issue40163] multissl doesn't support tarballs in /source/old/

2020-05-15 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker ___

[issue40606] Copy property return annotations to __annotations__

2020-05-15 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40632] AttributeError: type object 'Callable' has no attribute '_abc_registry'

2020-05-15 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I think a better question is why the `typing` in site packages is ever imported? I thought that an stdlib module always takes precedence over an installed one with the same name. -- nosy: +levkivskyi ___ Python

[issue40163] multissl doesn't support tarballs in /source/old/

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 7a89f9b4e2c05a6abdf59e8a96a1fc80a47a1144 by Miss Islington (bot) in branch '3.7': bpo-40163: Fix multissltest download of old OpenSSL (GH-19329) https://github.com/python/cpython/commit/7a89f9b4e2c05a6abdf59e8a96a1fc80a47a1144 --

[issue40163] multissl doesn't support tarballs in /source/old/

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset fcea08059f46d2d9582bb7ce5b2e905b20b86e8e by Miss Islington (bot) in branch '3.8': bpo-40163: Fix multissltest download of old OpenSSL (GH-19329) https://github.com/python/cpython/commit/fcea08059f46d2d9582bb7ce5b2e905b20b86e8e --

[issue40595] AttributeError from type annotation

2020-05-15 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Yes, this is as expected. A recommended workaround is to define a type alias like `Match = re.Match` before the class body. You can also suppress the exception with `from __future__ import annotations` (so that the annotations are not evaluated), but

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-15 Thread Christian Heimes
Christian Heimes added the comment: Users will now get an error message when they are trying to compile against an OpenSSL build without thread support. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.8, Python 3.9

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-15 Thread Christian Heimes
Christian Heimes added the comment: New changeset efc9065904c4df8962e04303c2c03642f45019b5 by Christian Heimes in branch '3.7': [3.7] bpo-40515: Require OPENSSL_THREADS (GH-19953) (GH-20120) https://github.com/python/cpython/commit/efc9065904c4df8962e04303c2c03642f45019b5 --

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-15 Thread Christian Heimes
Christian Heimes added the comment: New changeset 387c7441f589cc45ea86f1fa257af616c39d9a4b by Christian Heimes in branch '3.8': [3.8] bpo-40515: Require OPENSSL_THREADS (GH-19953) (GH-20119) https://github.com/python/cpython/commit/387c7441f589cc45ea86f1fa257af616c39d9a4b --

[issue40163] multissl doesn't support tarballs in /source/old/

2020-05-15 Thread Christian Heimes
Change by Christian Heimes : -- stage: patch review -> backport needed versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

[issue40163] multissl doesn't support tarballs in /source/old/

2020-05-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +19426 pull_request: https://github.com/python/cpython/pull/20122 ___ Python tracker

[issue40163] multissl doesn't support tarballs in /source/old/

2020-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +19427 pull_request: https://github.com/python/cpython/pull/20123 ___ Python tracker ___

[issue40163] multissl doesn't support tarballs in /source/old/

2020-05-15 Thread Christian Heimes
Christian Heimes added the comment: New changeset 938717fd04c53c717895a756d5910e8c8813706c by Christian Heimes in branch 'master': bpo-40163: Fix multissltest download of old OpenSSL (GH-19329) https://github.com/python/cpython/commit/938717fd04c53c717895a756d5910e8c8813706c --

[issue40607] asyncio.wait_for should reraise future exception even if timeout expires

2020-05-15 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 382a5635bd10c237c3e23e346b21cde27e48d7fa by romasku in branch 'master': bpo-40607: Reraise exception during task cancelation in asyncio.wait_for() (GH-20054) https://github.com/python/cpython/commit/382a5635bd10c237c3e23e346b21cde27e48d7fa

[issue40637] Allow users to disable builtin hash modules on compile time

2020-05-15 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +19425 pull_request: https://github.com/python/cpython/pull/20121 ___ Python tracker ___

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-15 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19424 pull_request: https://github.com/python/cpython/pull/20120 ___ Python tracker ___

[issue40637] Allow users to disable builtin hash modules on compile time

2020-05-15 Thread Christian Heimes
New submission from Christian Heimes : Python has a couple of builtin hash module: md5, sha1, sha256/224, sha512/383, sha3/shake family, and blake2b/s. Most of them are used as fallbacks in case OpenSSL bindings are not available. In some scenarios it is useful or required to disable the

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-15 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19423 pull_request: https://github.com/python/cpython/pull/20119 ___ Python tracker ___

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-05-15 Thread Gregory P. Smith
New submission from Gregory P. Smith : PEP 618 https://www.python.org/dev/peps/pep-0618 discussions are still on going. This issue is being filed to track an implementation, assuming the PEP is accepted and one is decided upon. I'm filing it now, as I can at least use the issue for

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-05-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +19422 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20118 ___ Python tracker

[issue40515] test_ssl.py hangs with SSL 1.1 built with no threads

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset c087a268a4d4ead8ef2ca21e325423818729da89 by Christian Heimes in branch 'master': bpo-40515: Require OPENSSL_THREADS (GH-19953) https://github.com/python/cpython/commit/c087a268a4d4ead8ef2ca21e325423818729da89 -- nosy: +miss-islington

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-15 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +19421 pull_request: https://github.com/python/cpython/pull/20117 ___ Python tracker ___

[issue36264] os.path.expanduser should not use HOME on windows

2020-05-15 Thread Eryk Sun
Eryk Sun added the comment: > set "HOME" to override a location derived from ~ Using HOME in Windows is not reliable because it is not a system environment variable. That makes it fair game for administrators, users, and applications to use however they like. Platform differences can be

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 5a06cf01ecb6a048fb47c086adc1336f54fe8789 by Miss Islington (bot) in branch '3.8': bpo-40479: Test with latest OpenSSL versions (GH-20108) https://github.com/python/cpython/commit/5a06cf01ecb6a048fb47c086adc1336f54fe8789 --

[issue24416] Have date.isocalendar() return a structseq instance

2020-05-15 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +19420 pull_request: https://github.com/python/cpython/pull/20113 ___ Python tracker ___

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 5e6b491403d7211588dcd399167f5bc21781c69c by Miss Islington (bot) in branch '3.7': bpo-40479: Test with latest OpenSSL versions (GH-20108) https://github.com/python/cpython/commit/5e6b491403d7211588dcd399167f5bc21781c69c --

[issue40635] Documentation for socket.getfqdn incorrect?

2020-05-15 Thread Chris Herdt
New submission from Chris Herdt : The documentation for socket.getfqdn() includes this info: "In case no fully qualified domain name is available, the hostname as returned by gethostname() is returned." However, that does not appear to be correct. To reproduce a case that exhibits contrary

[issue40633] json.dumps() should encode float number NaN to null

2020-05-15 Thread Mark Dickinson
Mark Dickinson added the comment: I don't think "null" in JSON is supposed to represent "Not a Number"; it's closer in meaning to Python's `None`. I definitely wouldn't want to see nans translated to "null" by default. This also only seems to address a part of the issue: what's the proposed

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +19419 pull_request: https://github.com/python/cpython/pull/20112 ___ Python tracker ___

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 62d618c06bd395308b7163dbcb26c7e6d0922033 by Christian Heimes in branch 'master': bpo-40479: Test with latest OpenSSL versions (GH-20108) https://github.com/python/cpython/commit/62d618c06bd395308b7163dbcb26c7e6d0922033 --

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +19418 pull_request: https://github.com/python/cpython/pull/20111 ___ Python tracker ___

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 16d4e6f6f559b4fd21c9d29fea303489f658674f by Christian Heimes in branch 'master': bpo-40479: Fix hashlib issue with OpenSSL 3.0.0 (GH-20107) https://github.com/python/cpython/commit/16d4e6f6f559b4fd21c9d29fea303489f658674f -- nosy:

[issue40055] test___all__ and test_distutils alters the enviroinment: pkg_resources.PEP440Warning

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 4e6545b002dd4d068b2538ffca60830d0e7fd369 by Miss Islington (bot) in branch '3.8': bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095) https://github.com/python/cpython/commit/4e6545b002dd4d068b2538ffca60830d0e7fd369

[issue40055] test___all__ and test_distutils alters the enviroinment: pkg_resources.PEP440Warning

2020-05-15 Thread miss-islington
miss-islington added the comment: New changeset 7ef275160953f00b4303149df6d919c0afe763cb by Miss Islington (bot) in branch '3.7': bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095) https://github.com/python/cpython/commit/7ef275160953f00b4303149df6d919c0afe763cb

[issue40055] test___all__ and test_distutils alters the enviroinment: pkg_resources.PEP440Warning

2020-05-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +19417 pull_request: https://github.com/python/cpython/pull/20110 ___ Python tracker ___

[issue40055] test___all__ and test_distutils alters the enviroinment: pkg_resources.PEP440Warning

2020-05-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +19416 pull_request: https://github.com/python/cpython/pull/20109 ___ Python tracker

[issue40055] test___all__ and test_distutils alters the enviroinment: pkg_resources.PEP440Warning

2020-05-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6e57237faf0da8904e0130a11350cae3c5062b82 by Victor Stinner in branch 'master': bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095) https://github.com/python/cpython/commit/6e57237faf0da8904e0130a11350cae3c5062b82 --

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-15 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19415 pull_request: https://github.com/python/cpython/pull/20108 ___ Python tracker ___

[issue40479] Port _hashlib to OpenSSL 3.0.0

2020-05-15 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19414 pull_request: https://github.com/python/cpython/pull/20107 ___ Python tracker ___

[issue40634] Ignored "BlockingIOError: [Errno 11] Resource temporarily unavailable" are still haunting us

2020-05-15 Thread Yaroslav Halchenko
New submission from Yaroslav Halchenko : This is a reincarnation of previous issues such as - older https://bugs.python.org/issue21595 which partially (with ack on that) addressed the issue awhile back - more recent https://bugs.python.org/issue38104 which was closed as "wont fix" since

[issue39837] Make Azure Pipelines optional on GitHub PRs

2020-05-15 Thread STINNER Victor
STINNER Victor added the comment: > Oh, and Victor, you should probably email python-dev to let everyone know you > requested this change and it's been made. Otherwise people may be surprised > that it changed without any discussion or notification. I wanted to wait until the situation was

[issue22652] Add suggestion about keyword arguments to this error message: "builtins.TypeError: my_func() takes 1 positional argument but 2 were given"

2020-05-15 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: If the patch requires a rewrite and its value is uncertain then I'll excuse myself from this issue. -- ___ Python tracker ___

[issue40633] json.dumps() should encode float number NaN to null

2020-05-15 Thread Eric V. Smith
Eric V. Smith added the comment: I think that's reasonable, although I could see someone objecting ("just use simplejson instead"). I suggest discussing this on the python-ideas mailing list and see what people think over there. It might help to create a PR first, if it's not a lot of work.

[issue40632] AttributeError: type object 'Callable' has no attribute '_abc_registry'

2020-05-15 Thread Дилян Палаузов
Дилян Палаузов added the comment: I used python 3.6, I exported all dependencies with `pip list`, then upgraded to python 3.8 and imported the exported dependencies. Uninstalling the “typing” module has helped. Do you mean, that python 3.8 includes the “typing” modules, so that it may not

[issue40633] json.dumps() should encode float number NaN to null

2020-05-15 Thread Haoyu SUN
Haoyu SUN added the comment: Thank you for the timely reply, Eric. How about we add an optional argument (like the argument "ignore_nan" defaults to False as the package simplejson does) to functions like json.dumps(). So that user can choose whether he needs NaN encoded as NaN or null,

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-15 Thread STINNER Victor
STINNER Victor added the comment: time.thread_time() is documented as: "Return the value (in fractional seconds) of the sum of the system and user CPU time of the current thread. It does not include time elapsed during sleep." https://docs.python.org/dev/library/time.html#time.thread_time So

[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-15 Thread Hugh Redelmeier
Change by Hugh Redelmeier : -- nosy: +hugh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-15 Thread STINNER Victor
STINNER Victor added the comment: I found this documentation on AIX thread_cputime(): https://www.ibm.com/support/knowledgecenter/ssw_aix_71/t_bostechref/thread_cputime.html """ Syntax #include int thread_cputime (tid, ctime) tid_t tid; thread_cputime_t * ctime ; typedef struct {

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-15 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: current: >>> import time >>> import time >>> time.get_clock_info('thread_time') namespace(adjustable=False, implementation='clock_gettime(CLOCK_THREAD_CPUTIME_ID)', monotonic=True, resolution=0.01) >>> time.thread_time() 0.07 PR 19381: >>> import time >>>

[issue40633] json.dumps() should encode float number NaN to null

2020-05-15 Thread Eric V. Smith
Eric V. Smith added the comment: Since this is documented behavior (https://docs.python.org/3.8/library/json.html#infinite-and-nan-number-values), we can't change it by default without breaking code. What JavaScript JSON encoders and decoders specifically have a problem with this behavior?

[issue40632] AttributeError: type object 'Callable' has no attribute '_abc_registry'

2020-05-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: You seem to use typing backport that has this issue : https://github.com/python/typing/issues/573 -- nosy: +xtreak ___ Python tracker

  1   2   >