[issue39976] Add "**other_popen_kwargs" to subprocess API signatures in docs

2020-05-16 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +19450 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20145 ___ Python tracker

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: New changeset d7184d3dbd249444ec3961641dc08a9ad3c1ac34 by Chris Jerdonek in branch 'master': bpo-29587: Add another test for the gen.throw() fix. (GH-19859) https://github.com/python/cpython/commit/d7184d3dbd249444ec3961641dc08a9ad3c1ac34 --

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

2020-05-16 Thread Raymond Hettinger
Change by Raymond Hettinger : Removed file: https://bugs.python.org/file49158/new_merge.py ___ Python tracker ___ ___ Python-bugs-list

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

2020-05-16 Thread Raymond Hettinger
Change by Raymond Hettinger : Added file: https://bugs.python.org/file49160/new_merge.py ___ Python tracker ___ ___ Python-bugs-list

[issue40652] Test test_locale failed when running cpython test on Windows 10 x64 for version 3.9.0a6+

2020-05-16 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue37945 -- nosy: +xtreak ___ Python tracker ___

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-16 Thread Jason R. Coombs
New submission from Jason R. Coombs : In https://github.com/jaraco/path/issues/186, the Path project discovered a regression with Python 3.8. It seems that if one creates a symlink with an absolute path. I used `shutil.copytree('temp', 'temp2', True)` and it produced this result: ``` ~ #

[issue40334] PEP 617: new PEG-based parser

2020-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 2c8cd06afe8e0abb52367f85978f19b88e2df53e by Lysandros Nikolaou in branch 'master': bpo-40334: Improvements to error-handling code in the PEG parser (GH-20003)

[issue40653] _dirnameW is used outside HAVE_SYMLINK

2020-05-16 Thread Minmin Gong
Change by Minmin Gong : -- keywords: +patch pull_requests: +19449 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20144 ___ Python tracker ___

[issue40653] _dirnameW is used outside HAVE_SYMLINK

2020-05-16 Thread Minmin Gong
New submission from Minmin Gong : _dirnameW is defined inside #ifdef HAVE_SYMLINK/#endif, but it's used in os__getdiskusage_impl, which is outside HAVE_SYMLINK. So if HAVE_SYMLINK is not defined (e.g., on UWP), it'll have compiling issues. -- components: Windows messages: 369089

[issue38870] Expose ast.unparse in the ast module

2020-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 6341fc7257d89d798675ad6e425f7eb0b6f2b4bb by Pablo Galindo in branch 'master': bpo-38870: Use subTest in test_unparse for better error reporting (GH-20141) https://github.com/python/cpython/commit/6341fc7257d89d798675ad6e425f7eb0b6f2b4bb

[issue40652] Test test_locale failed when running cpython test on Windows 10 x64 for version 3.9.0a6+

2020-05-16 Thread kpysoze
New submission from kpysoze : Test test_locale failed when running cpython test on Windows 10 x64 python.bat -m test -j3 on version Python 3.9.0a6+ 0:19:51 load avg: 0.00 [209/423/2] test_locale failed test test_locale failed -- Traceback (most recent call last): File

[issue32309] Implement asyncio.run_in_executor shortcut

2020-05-16 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +19448 pull_request: https://github.com/python/cpython/pull/20143 ___ Python tracker ___

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

2020-05-16 Thread Chris Jerdonek
Change by Chris Jerdonek : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-05-16 Thread Chris Jerdonek
Chris Jerdonek added the comment: I posted a draft PR for this issue: https://github.com/python/cpython/pull/20142 -- ___ Python tracker ___

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

2020-05-16 Thread Chris Jerdonek
Change by Chris Jerdonek : -- pull_requests: +19447 pull_request: https://github.com/python/cpython/pull/20142 ___ Python tracker ___

[issue38870] Expose ast.unparse in the ast module

2020-05-16 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +19446 pull_request: https://github.com/python/cpython/pull/20141 ___ Python tracker ___

[issue40651] class:`OrderedDict` Examples: LRU implementation has a bug.

2020-05-16 Thread Dongfang Qu
Change by Dongfang Qu : -- keywords: +patch pull_requests: +19445 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20139 ___ Python tracker ___

[issue26329] os.path.normpath("//") returns //

2020-05-16 Thread Furkan Onder
Change by Furkan Onder : -- pull_requests: +19444 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20138 ___ Python tracker ___

[issue40650] Pytime.c doesn't need to include windows.h

2020-05-16 Thread Minmin Gong
Change by Minmin Gong : -- keywords: +patch pull_requests: +19443 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20137 ___ Python tracker ___

[issue40651] class:`OrderedDict` Examples: LRU implementation has a bug.

2020-05-16 Thread Dongfang Qu
Dongfang Qu added the comment: Document of `collections`. https://docs.python.org/3/library/collections.html -- ___ Python tracker ___

[issue40651] class:`OrderedDict` Examples: LRU implementation has a bug.

2020-05-16 Thread Dongfang Qu
New submission from Dongfang Qu : class:`OrderedDict` Examples: LRU implementation has a bug. Details: The calls to the `__setitem__` method should also count as usages. -- assignee: docs@python components: Documentation messages: 369083 nosy: Dongfang Qu, docs@python priority: normal

[issue26329] os.path.normpath("//") returns //

2020-05-16 Thread Furkan Onder
Furkan Onder added the comment: PR has been sent! -- nosy: +furkanonder ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40650] Pytime.c doesn't need to include windows.h

2020-05-16 Thread Minmin Gong
Change by Minmin Gong : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware type: -> enhancement versions: +Python 3.9 ___ Python tracker ___

[issue40649] [Errno 1]

2020-05-16 Thread Glenn Travis
Glenn Travis added the comment: I think that I will ask him to reinstall Python. Which can be a scary process for him. -- ___ Python tracker ___

[issue40650] Pytime.c doesn't need to include windows.h

2020-05-16 Thread Minmin Gong
New submission from Minmin Gong : Python/pytime.c includes windows.h for timeval. But it's not necessary to include the full header, because timeval is defined in winsock headers. -- messages: 369082 nosy: Minmin.Gong priority: normal severity: normal status: open title: Pytime.c

[issue40649] [Errno 1]

2020-05-16 Thread Glenn Travis
Change by Glenn Travis : Added file: https://bugs.python.org/file49159/errormessage.jpg ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40649] [Errno 1]

2020-05-16 Thread Glenn Travis
Glenn Travis added the comment: I think that there is something odd going on with his python install. He just tried to run a very simple python script that I made for him, print('Hello there python interperter') And he got the same error message again. I do not know what more information

[issue35890] Cleanup some non-consistent API callings

2020-05-16 Thread Minmin Gong
Change by Minmin Gong : -- pull_requests: +19442 pull_request: https://github.com/python/cpython/pull/19974 ___ Python tracker ___

[issue40645] Use OpenSSL's HMAC API

2020-05-16 Thread Christian Heimes
Christian Heimes added the comment: New changeset 837f9e42e3a1ad03b340661afe85e67d2719334f by Christian Heimes in branch 'master': bpo-40645: Deprecated internal details of hmac.HMAC (GH-20132) https://github.com/python/cpython/commit/837f9e42e3a1ad03b340661afe85e67d2719334f --

[issue38870] Expose ast.unparse in the ast module

2020-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset dff92bb31f7db1a80ac431811f8108bd0ef9be43 by Batuhan Taskaya in branch 'master': bpo-38870: Implement round tripping support for typed AST in ast.unparse (GH-17797)

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: > The >else"#fca"< code was added 6 years ago (commit > 8b95d5e0bf00d9d0098579d29fd6bb9322071879) That was my typo in turtledemo.__main__ (similar lines before had the space) and I wish that it had been caught then. Why did compileall in the test suite

[issue38870] Expose ast.unparse in the ast module

2020-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset e966af7cff78e14e1d289db587433504b4b53533 by Batuhan Taskaya in branch 'master': bpo-38870: Correctly handle empty docstrings in ast.unparse (GH-18768) https://github.com/python/cpython/commit/e966af7cff78e14e1d289db587433504b4b53533

[issue39740] Select module fails to build on Solaris 11.4

2020-05-16 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: @RobHammann it should be resolved now, please feel free to re-open issue if you get into trouble (I manually tested on solaris) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue40211] Clarify preadv and pwritev is supported AIX 7.1 and newer.

2020-05-16 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40165] Hide stderror from the user if command failes

2020-05-16 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40165] Hide stderror from the user if command failes

2020-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d5a980a60790571ec88aba4e011c91e099e31e98 by Batuhan Taskaya in branch 'master': bpo-40165: Suppress stderr when checking if test_stty_match should be skipped (GH-19325)

[issue39740] Select module fails to build on Solaris 11.4

2020-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 31245d19f2de03e57fd93c5169f00a36d7410fcf by Batuhan Taskaya in branch 'master': bpo-39740: Early declare devpoll_methods to support old compilers (GH-19281)

[issue40211] Clarify preadv and pwritev is supported AIX 7.1 and newer.

2020-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset cae2275949157490b469d79ef250387eca324b9e by Batuhan Taskaya in branch 'master': bpo-40211: Clarify os.preadv and os.pwritev are supported on AIX 7.1+ (GH-19401)

[issue32309] Implement asyncio.run_in_executor shortcut

2020-05-16 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40644] Text representation of Windows' file attributes similar to stat.filemode()

2020-05-16 Thread Eryk Sun
Eryk Sun added the comment: There's no reason this can't be generalized to file attributes/flags on other platforms such as st_flags on BSD/macOS and st_attributes on Linux (depending on bpo-39533 -- but statx only returns a small subset of attributes that are available via chattr and

[issue38870] Expose ast.unparse in the ast module

2020-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 25160cdc4775a1ddb4e37c8bf5a6e31ad9c146ed by Batuhan Taskaya in branch 'master': bpo-38870: Don't put unnecessary parentheses on class declarations in ast.parse (GH-20134)

[issue38870] Expose ast.unparse in the ast module

2020-05-16 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ce4a753dcb3eef3d68e892a6515490b1aa219651 by Batuhan Taskaya in branch 'master': bpo-38870: Do not separate factor prefixes in ast.unparse (GH-20133) https://github.com/python/cpython/commit/ce4a753dcb3eef3d68e892a6515490b1aa219651

[issue39959] Bug on multiprocessing.shared_memory

2020-05-16 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 5.0 -> 6.0 pull_requests: +19441 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20136 ___ Python tracker

[issue34556] Add --upgrade-deps to venv module

2020-05-16 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja nosy_count: 4.0 -> 5.0 pull_requests: +19440 pull_request: https://github.com/python/cpython/pull/20135 ___ Python tracker ___

[issue40649] [Errno 1]

2020-05-16 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Glenn, this is probably not a bug in Python and more information about the error and the context would be needed if it was. Bugs must be reproducible to be looked at and fixed and your post does not contain enough information to do so. You should redirect

[issue38870] Expose ast.unparse in the ast module

2020-05-16 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +19439 pull_request: https://github.com/python/cpython/pull/20134 ___ Python tracker ___

[issue37630] Investigate replacing SHA3 code with OpenSSL

2020-05-16 Thread Christian Heimes
Christian Heimes added the comment: I'll add a whatsnew later. -- versions: -Python 3.7, Python 3.8 ___ Python tracker ___ ___

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

2020-05-16 Thread Raymond Hettinger
Change by Raymond Hettinger : Added file: https://bugs.python.org/file49158/new_merge.py ___ Python tracker ___ ___ Python-bugs-list

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

2020-05-16 Thread Raymond Hettinger
Change by Raymond Hettinger : Removed file: https://bugs.python.org/file49157/new_merge.py ___ Python tracker ___ ___ Python-bugs-list

[issue37630] Investigate replacing SHA3 code with OpenSSL

2020-05-16 Thread miss-islington
miss-islington added the comment: New changeset d5b3f6b7f9fc74438009af63f1de01bd77be9385 by Christian Heimes in branch 'master': bpo-37630: Use SHA3 and SHAKE XOF from OpenSSL (GH-16049) https://github.com/python/cpython/commit/d5b3f6b7f9fc74438009af63f1de01bd77be9385 -- nosy:

[issue40649] [Errno 1]

2020-05-16 Thread Glenn Travis
Change by Glenn Travis : -- title: [Errno 1} -> [Errno 1] ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40649] [Errno 1}

2020-05-16 Thread Glenn Travis
New submission from Glenn Travis : A fellow on the X-Plane forum reported getting this: cd desktop/Ortho4XP-130 ianrobertson@Ians-iMac Ortho4XP-130 % python3 Ortho4XP_v130.py /Library/Frameworks/Python.framework/Versions/3.8/bin/python3: can't open file 'Ortho4XP_v130.py': [Errno 1]

[issue38870] Expose ast.unparse in the ast module

2020-05-16 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +19438 pull_request: https://github.com/python/cpython/pull/20133 ___ Python tracker ___

[issue32893] ast.literal_eval() shouldn't accept booleans as numbers in AST

2020-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No longer reproduced. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2020-05-16 Thread Raymond Hettinger
Raymond Hettinger added the comment: For comparison, I'm attaching an iterative version that manipulates the tree nodes with all local variables. Try it out and see what you think. -- Added file: https://bugs.python.org/file49157/new_merge.py ___

[issue40275] test.support has way too many imports

2020-05-16 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that there is no much benefit in avoiding to import modules which are imported in libregrtest. In particular threading, subprocess, tempdir, os, fnmatch, etc. You should minimize import of test.libregrtest + test.support, not just test.support.

[issue38597] C Extension import limit

2020-05-16 Thread P12 Pfx
Change by P12 Pfx : -- nosy: +P12 Pfx ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2020-05-16 Thread Chris AtLee
Chris AtLee added the comment: Is there anything I can do to help get this landed? The PR in github works for me. -- nosy: +catlee ___ Python tracker ___

[issue40645] Use OpenSSL's HMAC API

2020-05-16 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19437 pull_request: https://github.com/python/cpython/pull/20132 ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-05-16 Thread hai shi
Change by hai shi : -- pull_requests: +19436 pull_request: https://github.com/python/cpython/pull/20131 ___ Python tracker ___ ___

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

2020-05-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: > I thought it might be useful for testing purposes if os.path (i.e. ntpath and > posixpath) had a way to set the home directory that it uses in way that > wouldn't affect other libraries and child processes. I was thinking about this, and I'd argue that

[issue40503] PEP 615: Add zoneinfo module

2020-05-16 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset b17e49e0def23238b9e7f48c8a02e2d7bbf1f653 by Paul Ganssle in branch 'master': bpo-40503: Add documentation and what's new entry for zoneinfo (GH-20006) https://github.com/python/cpython/commit/b17e49e0def23238b9e7f48c8a02e2d7bbf1f653 --

[issue40646] Builtins in doc show signature in documentation

2020-05-16 Thread Eric V. Smith
Eric V. Smith added the comment: It's a common convention to show a function with parens, even if it can't be called with no arguments. I don't think we want to make that table visually more complex by including all of the message signatures. open() has 8 params, min() and max() have

[issue40648] File mode is not tested on Windows

2020-05-16 Thread Pavol Babinčák
Change by Pavol Babinčák : -- keywords: +patch pull_requests: +19435 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20130 ___ Python tracker ___

[issue40647] Building with a libreadline.so located outside the ld.so.conf search path fails

2020-05-16 Thread Martijn Pieters
Martijn Pieters added the comment: Last but not least, this is essentially a duplicate of https://bugs.python.org/issue4010 -- ___ Python tracker ___

[issue40648] File mode is not tested on Windows

2020-05-16 Thread Pavol Babinčák
New submission from Pavol Babinčák : >From what I can tell only place where file mode is tested is test_mode() >method of class TestFilemode in test_stat.py. Relevant section for Windows >(os.name != 'posix'): with open(TESTFN, 'w'): pass ... os.chmod(TESTFN, 0o700) st_mode, modestr =

[issue40647] Building with a libreadline.so located outside the ld.so.conf search path fails

2020-05-16 Thread Martijn Pieters
Martijn Pieters added the comment: Actually, this won't do it either, as `self.lib_dirs` already contains the --prefix. Clearly, I just need to add -R=${PREFIX}/lib to CPPFLAGS. -- resolution: -> not a bug ___ Python tracker

[issue40647] Building with a libreadline.so located outside the ld.so.conf search path fails

2020-05-16 Thread Martijn Pieters
New submission from Martijn Pieters : This issue goes back a long time. The libreadline handling in the modules setup.py doesn't add the location of the readline library to the runtime library paths: self.add(Extension('readline', ['readline.c'],

[issue40646] Builtins in doc show signature in documentation

2020-05-16 Thread Henk-Jaap Wagenaar
New submission from Henk-Jaap Wagenaar : Due to a certain discussion on extending zip, I was having looking at this page: https://docs.python.org/3/library/functions.html It lists the builtins at the top as e.g. all() which I think is confusing: running all() will actually fail. I think it

[issue39305] Merge nntplib._NNTPBase and nntplib.NNTP

2020-05-16 Thread STINNER Victor
STINNER Victor added the comment: Thanks, that's a nice simplification of the code ;-) -- ___ Python tracker ___ ___

[issue40642] Cpython "pystate.h" subdirectory wrong

2020-05-16 Thread Eric V. Smith
Eric V. Smith added the comment: Won't either one work, since "Include" is in the "search path"? Is this causing an actual problem? You have this marked as "compile error", but haven't shown any information about the error, such as what compiler, how it's being invoked, and what the error

[issue40645] Use OpenSSL's HMAC API

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

[issue40645] Use OpenSSL's HMAC API

2020-05-16 Thread Christian Heimes
New submission from Christian Heimes : Python's hmac module provides a pure Python based implementation on top of the hashlib module. OpenSSL offers a dedicated HMAC implementation that has a couple of benefits over pure Python implementation: - OpenSSL HMAC is slightly faster and requires

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

2020-05-16 Thread Eryk Sun
Eryk Sun added the comment: > I’m not suggesting that from within Python there should be another way > to detect a home directory. The expanduser functionality as written is > just fine for that, though I agree with Steve that using an API on > Windows would be even better. I thought it

[issue40643] Improve doc-strings for datetime.strftime & strptime

2020-05-16 Thread Paul Ganssle
Paul Ganssle added the comment: I agree, this can be improved (particularly the first one). I believe we'll need to change it in the C implementation as well as the pure python version. That said, the most useful thing for users would be a full formatting reference, which is too much to put

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

2020-05-16 Thread Paul Ganssle
Paul Ganssle added the comment: This is now merged, thanks for the debate and opinions offered everyone, and thanks to Dong-hee for the implementation! The way we did the implementation, a pickle/unpickle cycle on the result of .isocalendar() will return a plain tuple. Despite the fact that

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

2020-05-16 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset 1b97b9b0ad9a2ff8eb5c8f2e2e7c2aec1d13a330 by Paul Ganssle in branch 'master': bpo-24416: Return named tuple from date.isocalendar() (GH-20113) https://github.com/python/cpython/commit/1b97b9b0ad9a2ff8eb5c8f2e2e7c2aec1d13a330 --

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

2020-05-16 Thread Jason R. Coombs
Jason R. Coombs added the comment: > Platform differences can be papered over with functions. I’m not suggesting that from within Python there should be another way to detect a home directory. The expanduser functionality as written is just fine for that, though I agree with Steve that using

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

2020-05-16 Thread Eric V. Smith
Eric V. Smith added the comment: I don't think we want to generate output no matter what. Should datetime instances become null instead of raising an exception? Are there types other than float where some values are json serializable and others aren't? --

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

2020-05-16 Thread Haoyu SUN
Haoyu SUN added the comment: About using null in JSON to represnet NaN value of a float type, I prefer this logic: float is a numeric type that expecting a number as its value, "Not a Number" on a numeric type is equivalent to None (¬Number ∩ NumericValues = Empty). If we need to capture an

[issue37496] Support annotations in signature strings.

2020-05-16 Thread Eric Wieser
Eric Wieser added the comment: This seems somewhat related to https://bugs.python.org/issue31939 -- nosy: +Eric Wieser ___ Python tracker ___

[issue40644] Text representation of Windows' file attributes similar to stat.filemode()

2020-05-16 Thread Pavol Babinčák
New submission from Pavol Babinčák : I'm using Windows and lets' say I have this directory structure listed with cmd: > dir /A ... 16.05.20 11:15 directory 16.05.20 10:47 0 hidden 16.05.20 11:25 link [regular] 16.05.20 10:47 0 readonly

[issue40643] Improve doc-strings for datetime.strftime & strptime

2020-05-16 Thread Edison Abahurire
New submission from Edison Abahurire : The docstring for strftime is: ```def strftime(self, fmt): "Format using strftime()." ``` And that of strptime: def strptime(cls, date_string, format): 'string, format -> new datetime parsed from a string (like

[issue39305] Merge nntplib._NNTPBase and nntplib.NNTP

2020-05-16 Thread Dong-hee Na
Dong-hee Na added the comment: I am no closing this issue :) Thank you for the suggestion, Victor. And also thank you for the interest in this issue, Luciana :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue39305] Merge nntplib._NNTPBase and nntplib.NNTP

2020-05-16 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset aa92a7cf210c98ad94229f282221136d846942db by Dong-hee Na in branch 'master': bpo-39305: Update nntplib to merge nntplib.NNTP and nntplib._NNTPBase (GH-19817) https://github.com/python/cpython/commit/aa92a7cf210c98ad94229f282221136d846942db

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

2020-05-16 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-16 Thread STINNER Victor
STINNER Victor added the comment: > I'd drop this code instead of fixing it. Hum, FreeBSD, OpenBSD and NetBSD versions which require the fix also look very old. So I agree that it became safe to remove the fix. Would it make sense to only fix it on Python 3.10 and leave other versions with

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

2020-05-16 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > "Availability: Windows, Linux, Unix systems supporting > CLOCK_THREAD_CPUTIME_ID." covers AIX. That was my thought too, thanks again! -- ___ Python tracker

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

2020-05-16 Thread STINNER Victor
STINNER Victor added the comment: I close the issue, since the commit was merged. "Availability: Windows, Linux, Unix systems supporting CLOCK_THREAD_CPUTIME_ID." covers AIX. But you can add AIX if you consider that it's not explicit enough. -- resolution: -> fixed stage: patch

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

2020-05-16 Thread Paul Moore
Paul Moore added the comment: > Perhaps the best approach for the sake of POSIX compatibility is to set HOME > on startup to the correct value? If Python starts setting `HOME`, that has the potential to affect programs called in a subprocess, possibly breaking them (making them not find

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

2020-05-16 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Should we mention about AIX support in availability section @vstinner? https://docs.python.org/3/library/time.html#time.thread_time -- ___ Python tracker

[issue40641] Reserved word pair used in lambda tutorial without being noted as a reserved word

2020-05-16 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40275] test.support has way too many imports

2020-05-16 Thread miss-islington
miss-islington added the comment: New changeset 372fa3ead584876a975a61936b376259be636d27 by Hai Shi in branch 'master': bpo-40275: lazy import modules in test.support (GH-20128) https://github.com/python/cpython/commit/372fa3ead584876a975a61936b376259be636d27 -- nosy:

[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-16 Thread Ronald Oussoren
Ronald Oussoren added the comment: The macOS test checks if the binary targets macOS 10.4 or earlier. Those versions of macOS have been out of support for a very long time, and we haven't had installers targeting those versions of macOS for a long time as well. 2.7 and 3.5 had installers

[issue40275] test.support has way too many imports

2020-05-16 Thread hai shi
hai shi added the comment: After PR20128, the import modules from 132 to 123. -- ___ Python tracker ___ ___ Python-bugs-list

[issue40275] test.support has way too many imports

2020-05-16 Thread hai shi
hai shi added the comment: OK, I continue to reduce the import module in test.supports. -- ___ Python tracker ___ ___

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

2020-05-16 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40275] test.support has way too many imports

2020-05-16 Thread hai shi
Change by hai shi : -- pull_requests: +19433 pull_request: https://github.com/python/cpython/pull/20128 ___ Python tracker ___ ___

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

2020-05-16 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2020-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 45410862321ae509e8753f239b0ea28fdcef5bad by Batuhan Taskaya in branch 'master': bpo-40192: Use thread_cputime for time.thread_time to improve resolution (GH-19381)

  1   2   >