[issue42440] MACBOOK Python launcher

2020-11-25 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: A few functions in `tasks.py` a left and documentation should be updated. -- ___ Python tracker ___

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f533cb80cbbb7acdf9ce1978cfba095ce5eeedaa by Yurii Karabas in branch 'master': bpo-42392: Remove loop parameter from asyncio.streams (GH-23517) https://github.com/python/cpython/commit/f533cb80cbbb7acdf9ce1978cfba095ce5eeedaa --

[issue39529] Deprecate get_event_loop()

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think the deprecation of `set_event_loop()` is a good idea. The function is not required by `asyncio.run()` implementation. -- ___ Python tracker

[issue41200] Add pickle.loads fuzz test

2020-11-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given that pickle is documented as: """ Warning The pickle module is not secure. Only unpickle data you trust. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling. """

[issue42469] Space in re's {min, max} should raise an error, rather than fail silently

2020-11-25 Thread Reuven Lerner
New submission from Reuven Lerner : I just discovered that having whitespace inside of {min,max} causes the regexp to report no matches, rather than an error: >>> import re >>> s = 'abbccce' >>> re.findall('d{1, 4}', s) [] >>> re.findall('d{1,4}', s) [''] Ruby and JavaScript have

[issue42468] subprocess.CompletedProcess: Add boolean value

2020-11-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the suggestion though ThatXliner. It is good for us to keep these things in mind for future API designs. That __bool__ exists and could be meaningful in some contexts is often overlooked. -- resolution: -> rejected stage: ->

[issue42468] subprocess.CompletedProcess: Add boolean value

2020-11-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: My concern with this as an API change is if anyone is returning or passing a CompletedProcess instance around it may well be used in a context where None is a potential value. Existing code in that situation would ordinarily be doing a bare `if cp:` test

[issue42461] os.statvfs_result doesn't show f_fsid

2020-11-25 Thread haoyixing
haoyixing <359062...@qq.com> added the comment: Under my mac and fedora test environment, calling statfs in C language as a non-privileged user both returned meaningful fsid. And in python os.statvfs(some_path).f_fsid can also show the f_fsid of path. So I didn't see any inconveniences so

[issue42468] subprocess.CompletedProcess: Add boolean value

2020-11-25 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42450] Docstrings in itertools recipes should have triple-quotes

2020-11-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Eric, I will update those quotation marks in the next edit to the recipes. Peter, sorry I closed this so abruptly. All suggestions are welcome. In this case, readability trumps other rules. Also, PEP 257 wasn't intended to be strict. Lots of

[issue42376] Add helpers to populate modules in C

2020-11-25 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42468] subprocess.CompletedProcess: Add boolean value

2020-11-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's a before and after example from my code. == class GraphvizResult(NamedTuple): svg: str err: str def create_svg(dot: str) -> GraphvizResult: 'Convert a string in

[issue31904] Python should support VxWorks RTOS

2020-11-25 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +22403 pull_request: https://github.com/python/cpython/pull/23518 ___ Python tracker ___

[issue42468] subprocess.CompletedProcess: Add boolean value

2020-11-25 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41103] Removing old buffer support

2020-11-25 Thread Inada Naoki
Inada Naoki added the comment: Thank you for reporting. I removed these APIs to get such feedback as early as possible. We are free to revive these APIs if it breaks too much and some projects can not be fixed before Python 3.10 release. Some project maintainers ignore deprecations and

[issue42468] subprocess.CompletedProcess: Add boolean value

2020-11-25 Thread Guido van Rossum
Guido van Rossum added the comment: Greg, do you have an opinion here? -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue42468] subprocess.CompletedProcess: Add boolean value

2020-11-25 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42468] subprocess.CompletedProcess: Add boolean value

2020-11-25 Thread ThatXliner
New submission from ThatXliner : I propose making subprocess.CompletedProcess a truthy value if the returncode is 0. False, otherwise. -- components: Library (Lib) messages: 381871 nosy: ThatXliner priority: normal severity: normal status: open title: subprocess.CompletedProcess: Add

[issue42468] subprocess.CompletedProcess: Add boolean value

2020-11-25 Thread ThatXliner
Change by ThatXliner : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41818] Lib/pty.py major revision

2020-11-25 Thread Zachary Ware
Zachary Ware added the comment: Moving my notes from PR23514 to here, the issue that that PR addressed is not Gentoo-specific; here's a simple reproducer on Ubuntu: ./python -c "import pty;pty.spawn('./python -m test -v test_pty'.split())" -- ___

[issue29980] OSError: multiple exceptions should preserve the exception type if it is common

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: The feature request reminds me of https://github.com/python-trio/trio/issues/611. Nathaniel and Yury have been discussing the idea of a MultiError handler for a while. -- nosy: +christian.heimes ___ Python

[issue40857] tempfile.TemporaryDirectory() context manager can fail to propagate exceptions generated within its context

2020-11-25 Thread Irit Katriel
Irit Katriel added the comment: Too late for 3.7 now, closing. -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue37317] asyncio gather doesn't handle custom exceptions that inherit from BaseException

2020-11-25 Thread Irit Katriel
Irit Katriel added the comment: Thanks for reporting. This has been fixed in 3.8 and it's too late for 3.7. -- nosy: +iritkatriel resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue27839] "Python [...] calls sys.displayhook() on unhandled exceptions"

2020-11-25 Thread Irit Katriel
Irit Katriel added the comment: Thanks for reporting. That line has been edited out of the doc in the meantime. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue29980] OSError: multiple exceptions should preserve the exception type if it is common

2020-11-25 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41103] Removing old buffer support

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: PyObject_AsCharBuffer() is dangerous: it returns a dangling pointer by design. PyObject_GetBuffer() design is safer: the API ensures that the buffer remains valid until PyBuffer_Release() is called. PyQt5 was updated to use the safe

[issue42467] slice().indices() returns incorrect values

2020-11-25 Thread Mark Dickinson
Mark Dickinson added the comment: This is essentially a duplicate of #11842. In short, slice.indices is working as intended here. It's best to think of slice.indices as start, stop and step arguments that could be provided to the range built-in function to get the set of relevant indices.

[issue21564] Declaration of EVP_MD_CTX causes crash when switching between OpenSSL 0.9 and 1.0

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: The code has changed a lot since this bug was opened. It's no longer an issue. Thanks for checking! -- resolution: out of date -> fixed stage: -> resolved status: pending -> closed ___ Python tracker

[issue42467] slice().indices() returns incorrect values

2020-11-25 Thread misianne
New submission from misianne : I have a problem with slice().indices(): x=[0,1,2,3,4,5,6,7,8,9]*10 x[-91:-101:-3] # == [9, 6, 3, 0] OK! x[slice(*slice(-91,-101,-3).indices(len(x)))] # == [] WRONG! This is correct: x[-91:-100:-3] # == [9, 6, 3] OK!

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-25 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- pull_requests: +22402 pull_request: https://github.com/python/cpython/pull/23517 ___ Python tracker ___

[issue29980] OSError: multiple exceptions should preserve the exception type if it is common

2020-11-25 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42440] MACBOOK Python launcher

2020-11-25 Thread Rawad Bader
Rawad Bader added the comment: Thank you so much for all your help. I just ran this command pip install opencv-python opencv-python-headless and it solves the problem. -- ___ Python tracker

[issue39529] Deprecate get_event_loop()

2020-11-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am writing a code (it is not trivial to emit correct warning) and I have a question. What to do if the loop was set by set_event_loop()? Currently get_event_loop() can return a loop without creating a new loop while get_running_loop() raises an error.

[issue42440] MACBOOK Python launcher

2020-11-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: Thanks for the update. I cannot test this myself at the moment, my laptop does not yet run Big Sur and I'm only running it in VM's on a mac mini without a webcam. This might be a problem with opencv,

[issue21564] Declaration of EVP_MD_CTX causes crash when switching between OpenSSL 0.9 and 1.0

2020-11-25 Thread Irit Katriel
Irit Katriel added the comment: This patch is out of date with the code, but comparing it with the code I think the fixes were made. Christian, can you confirm? -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python

[issue29573] NamedTemporaryFile with delete=True should not fail if file already deleted

2020-11-25 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37865] tempfile.NamedTemporaryFile() raises exception on close() when file is absent

2020-11-25 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> NamedTemporaryFile with delete=True should not fail if file already deleted ___ Python tracker

[issue37718] 2to3 exception handling

2020-11-25 Thread Irit Katriel
Irit Katriel added the comment: Right, the message field on exceptions was removed in python 3 (it was deprecated since Python 2.6). 2to3 can't automatically fix this, because as a static translator it doesn't know that the object on which you are accessing .message is an exception.

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: We have reached an impasse. Therefore I have contacted the steering council and requested mediation. Victor will abstain from the decision process. -- ___ Python tracker

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: Don't get me wrong. I don't want to put my vote in this hot discussion but mention my use case. test.support can solve my need. On another hand, very many Python batteries exist to solve third-party needs and are not required by CPython itself. So I'm +0

[issue41103] Removing old buffer support

2020-11-25 Thread Miro Hrončok
Miro Hrončok added the comment: I've just seen a fix of PyQt4 that basically copy pastes (some of) the removed code to PyQt4: https://src.fedoraproject.org/rpms/PyQt4/pull-request/2#request_diff What is the benefit of removing this? Is copy pasting the compatibility layer to (possibly many)

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: FYI Cython doesn't support this PEP yet: https://github.com/cython/cython/issues/3917 -- ___ Python tracker ___

[issue41818] Lib/pty.py major revision

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 87f7ab5359bc12eeb858272b7bd58e132cb9c176 by Andrew Svetlov in branch 'master': bpo-41818: test_openpty succeed on Gentoo, don't expect to fail on this platform (GH-23514)

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Matthias Klose
Matthias Klose added the comment: > I just needed such functionality for PTY tests another use case for a test. so please add it to the test framework, also suggested by Marc. -- ___ Python tracker

[issue42466] asyncio loop.getaddrinfo raises RuntimeError

2020-11-25 Thread Giacomo Caironi
New submission from Giacomo Caironi : import asyncio import traceback from threading import Thread class Test(Thread): def __init__(self): super().__init__() self.loop = asyncio.new_event_loop() async def getaddrinfo(self, loop): try: print(await

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: I just needed such functionality for PTY tests: https://github.com/python/cpython/pull/23514 -- nosy: +asvetlov ___ Python tracker ___

[issue42465] Reference to subclass method resolve() in PurePath docs

2020-11-25 Thread John Engelke
New submission from John Engelke : The text: 'If you want to walk an arbitrary filesystem path upwards, it is recommended to first call Path.resolve() so as to resolve symlinks and eliminate “..” components.' should be moved or changed to 'If you want to walk a concrete path upwards, it

[issue41818] Lib/pty.py major revision

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: > In addition to the above, if a major revision is made to pty, I'd suggest > also addressing the issue of "master/slave" terminology In bpo-34605, I chose to leave the pty module unchange since it *seems* like "master_fd" and "slave_fd" is part of the API.

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-25 Thread Bhushan Shelke
Bhushan Shelke added the comment: I had uploaded one file(simple_flask.py) to be used as server to the ticket when I created the ticket. Since ticket allows only one file upload, I'd pasted relevant code in ticket itself. I've now uploaded the client python file(flask_client.py) to ticket

[issue41818] Lib/pty.py major revision

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: > https://github.com/python/cpython/pull/23514 has the fix, waiting for all > buildbots finish before pressing "Merge" button. Thanks for working on a fix :-) -- ___ Python tracker

[issue42464] Pathlib resolve() resolves non-existent ".." components with strict=False

2020-11-25 Thread John Engelke
New submission from John Engelke : The below snippet results in the symlink "/home" resolving as expected. However, documentation at https://docs.python.org/3.7/library/pathlib.html#pathlib.Path.resolve suggests, "If strict is False, the path is resolved as far as possible and any remainder

[issue41818] Lib/pty.py major revision

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: https://github.com/python/cpython/pull/23514 has the fix, waiting for all buildbots finish before pressing "Merge" button. Gentoo bots are green. -- ___ Python tracker

[issue42458] Pathlib resolve() on Mac prepends path

2020-11-25 Thread John Engelke
Change by John Engelke : -- title: Pathlib resolve() on Mac Catalina prepends secret path -> Pathlib resolve() on Mac prepends path ___ Python tracker ___

[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-25 Thread John Engelke
Change by John Engelke : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42458] Pathlib resolve() on Mac Catalina prepends secret path

2020-11-25 Thread John Engelke
John Engelke added the comment: Thanks @ronaldoussoren. This bug report is flawed for a couple reasons, notwithstanding some assumptions I made incorrectly. (SIP actually makes "/home" a symlink so that resolved correctly.) So I am retracting it as-is because I can't edit the original

[issue42463] test_pty.test_openpty() failed on x86 Gentoo Installed with X 3.x: unexpected success

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: Regression related to bpo-41818: https://github.com/python/cpython/commit/c13d89955d9a2942c6355d6839d7096323244136 -- ___ Python tracker ___

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: I also noticed that you are passing an explicit content length. {'Content-Length' : '0'} is wrong for a POST payload of "{}" with standard transfer encoding. It should be len("{}") == 2. A zero content length only valid for chunked transfer encoding,

[issue41818] Lib/pty.py major revision

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: This change broke x86 Gentoo buildbots: bpo-42463. -- nosy: +vstinner ___ Python tracker ___ ___

[issue42463] test_pty.test_openpty() failed on x86 Gentoo Installed with X 3.x: unexpected success

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: Same issue on x86 Gentoo Non-Debug with X 3.x: https://buildbot.python.org/all/#builders/58/builds/442 -- ___ Python tracker ___

[issue42463] test_pty.test_openpty() failed on x86 Gentoo Installed with X 3.x: unexpected success

2020-11-25 Thread STINNER Victor
New submission from STINNER Victor : x86 Gentoo Installed with X 3.x: https://buildbot.python.org/all/#/builders/464/builds/445 0:05:51 load avg: 4.73 [104/425/1] test_pty failed -- running: test_unparse (1 min 3 sec) test_fork (test.test_pty.PtyTest) ... calling pty.fork() Waiting for child

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: So far we don't even know for sure if there is a bug in Python's http module. It would be helpful if you could provide a reproducer that does not use any 3rd party code like requests. -- nosy: +christian.heimes

[issue41818] Lib/pty.py major revision

2020-11-25 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +22401 pull_request: https://github.com/python/cpython/pull/23514 ___ Python tracker ___

[issue42417] Empty body {} in POST requests leads to 405 Method not allowed error

2020-11-25 Thread Bhushan Shelke
Bhushan Shelke added the comment: Any tentative Date for fix to be generally available? -- ___ Python tracker ___ ___

[issue8264] [doc] hasattr doesn't show private (double underscore) attributes exist

2020-11-25 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 4.0 -> 5.0 pull_requests: +22400 pull_request: https://github.com/python/cpython/pull/23513 ___ Python tracker ___

[issue38347] pathfix.py does not find Python scripts that have '-' in its filename

2020-11-25 Thread Petr Viktorin
Petr Viktorin added the comment: Note that the pathfix comment says: # Directories are searched recursively for files whose name looks # like a python module. Files with a dash are *not* Python modules, since they can't be imported. Should the comment (which is the only documentation for

[issue42299] Remove formatter module

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: Thread on python-dev: https://mail.python.org/archives/list/python-...@python.org/thread/ZEDIBBYCWI34GVOXDEUYXQY3LYXOFHA2/ Copy of Fred Drake's email: "Oh, the memories! Looking at docs, I can vaguely recall using the API, but... it definitely doesn't

[issue31861] add aiter() and anext() functions to operator module

2020-11-25 Thread Joshua Bronson
Joshua Bronson added the comment: Nice to see there is still interest in this from someone else! Thanks, John. Are any core developers still interested in this? If I can get a new PR together that adds C implementations of `aiter` and `anext` to builtins, would a committer still be

[issue42450] Docstrings in itertools recipes should have triple-quotes

2020-11-25 Thread Eric V. Smith
Eric V. Smith added the comment: Although I do have to say it wouldn't offend me if the partition and nth_combination examples were changed to double quotes to be consistent! But it's not important. -- ___ Python tracker

[issue42462] Unacceptable Output

2020-11-25 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41818] Lib/pty.py major revision

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset c13d89955d9a2942c6355d6839d7096323244136 by Soumendra Ganguly in branch 'master': bpo-41818: Updated tests for the standard pty library (GH-22962) https://github.com/python/cpython/commit/c13d89955d9a2942c6355d6839d7096323244136 --

[issue42299] Remove formatter module

2020-11-25 Thread Dong-hee Na
Dong-hee Na added the comment: @terry.reedy @vstinner Thank you, Terry and Victor, and goodbye formatter module! -- nosy: +vstinner resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue42299] Remove formatter module

2020-11-25 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset be319c0c108e308fb7ed6ec9522e969fdffd1253 by Dong-hee Na in branch 'master': bpo-42299: Remove formatter module (GH-23476) https://github.com/python/cpython/commit/be319c0c108e308fb7ed6ec9522e969fdffd1253 --

[issue8264] [doc] hasattr doesn't show private (double underscore) attributes exist

2020-11-25 Thread Irit Katriel
Change by Irit Katriel : -- title: hasattr doesn't show private (double underscore) attributes exist -> [doc] hasattr doesn't show private (double underscore) attributes exist versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.3, Python 3.4

[issue42462] Unacceptable Output

2020-11-25 Thread Nishant Gautam
Change by Nishant Gautam : Added file: https://bugs.python.org/file49622/Screenshot 2020-11-25 181647.png ___ Python tracker ___ ___

[issue42454] Move slice creation to the compiler for constants

2020-11-25 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > What are the potential benefits or drawbacks for the user? The only potential drawback that I can see is that it prevents you from distinguishing a sequence from mapping by 'accidentally' passing a slice. The major benefit for users is that they will

[issue42462] Unacceptable Output

2020-11-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Please don't attach images since text will have better accessibility for readers. The expression is as below and is a result of operator precedence : https://docs.python.org/3/reference/expressions.html#operator-precedence >>> 7+3==10 | 7+1==8 and

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: Pablo, I would like to get mediation from the release manager. I want to add an interface to the os-release file. It's a decade-old standard from freedesktop.org. The file is available in the minimal base installation of virtually every Linux

[issue42454] Move slice creation to the compiler for constants

2020-11-25 Thread Mark Dickinson
Mark Dickinson added the comment: > At least for optimization, IMHO it worth taking the shot. For me, this feels a bit backwards: IMO you should decide what behaviour you want first, implement the desired behaviour, and then optimize (if possible) while keeping that same desired behaviour.

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: > Should I create a separate issue for every PR or they all can be done in the > scope of this PR (we can update issue title to match what was done)? Up to you, I don't think it really matters. -- ___ Python

[issue42392] remove the 'loop' parameter from __init__ in all classes in asyncio.locks

2020-11-25 Thread Kyle Stanley
Kyle Stanley added the comment: New changeset b9127dd6eedd693cfd716a648864e2e00186 by Yurii Karabas in branch 'master': bpo-42392: Improve removal of *loop* parameter in asyncio primitives (GH-23499) https://github.com/python/cpython/commit/b9127dd6eedd693cfd716a648864e2e00186

[issue42462] Unacceptable Output

2020-11-25 Thread Nishant Gautam
New submission from Nishant Gautam : Wrong Output -- components: Windows files: Screenshot 2020-11-25 161636.png messages: 381821 nosy: Kshitish, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Unacceptable Output type: behavior

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.11.2020 11:45, Christian Heimes wrote: > > Christian Heimes added the comment: > > PS: MAL, would it be possible to suppress your email footer? BPO is not an > advertisement channel. That's an ancient bug on bpo, which apparently still haven't

[issue17545] [doc] os.listdir and os.path.join inconsistent on empty path

2020-11-25 Thread Irit Katriel
Change by Irit Katriel : -- assignee: -> docs@python components: +Documentation keywords: -patch nosy: +docs@python title: os.listdir and os.path.join inconsistent on empty path -> [doc] os.listdir and os.path.join inconsistent on empty path type: enhancement -> behavior versions:

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: PS: MAL, would it be possible to suppress your email footer? BPO is not an advertisement channel. -- ___ Python tracker ___

[issue42202] Optimize function annotation

2020-11-25 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42202] Optimize function annotation

2020-11-25 Thread Inada Naoki
Inada Naoki added the comment: New changeset 7301979b23406220510dd2c7934a21b41b647119 by Yurii Karabas in branch 'master': bpo-42202: Store func annotations as a tuple (GH-23316) https://github.com/python/cpython/commit/7301979b23406220510dd2c7934a21b41b647119 --

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: > It's not pointless. The rate of change in the field is why this > particular API did not work out in practice. It was working fine > at the time I added it, but then quickly became unmaintainable. Yes, it's pointless. You are arguing that os-release is

Re: [issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread M.-A. Lemburg
On 25.11.2020 11:13, STINNER Victor wrote: > Platform was always a thin wrapper to OS functions. For example, there is no > unified API to retrieve OS name and version on Windows, macOS or Linux. You > need to pick the proper function. For me, freedesktop_os_release() just > follows this trend.

[issue28468] Add platform.freedesktop_os_release()

2020-11-25 Thread STINNER Victor
Change by STINNER Victor : -- title: Add platform.freedesktop_osrelease() -> Add platform.freedesktop_os_release() ___ Python tracker ___

[issue42461] os.statvfs_result doesn't show f_fsid

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: Changeset 96a5e50a5de3683b2afd6d680c7ecc4b525986f6 added a new struct member but did not increase PyStructSequence_Desc.n_in_sequence of statvfs_result_desc. I'm not sure if the size of the sequence was not increased on purpose. For reference the feature

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: Marc-Andre Lemburg: > It's not pointless. The rate of change in the field is why this > particular API did not work out in practice. It was working fine > at the time I added it, but then quickly became unmaintainable. Please look at the history of the

[issue42461] os.statvfs_result doesn't show f_fsid

2020-11-25 Thread hao
Change by hao <359062...@qq.com>: -- keywords: +patch pull_requests: +22397 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23511 ___ Python tracker

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread STINNER Victor
STINNER Victor added the comment: Marc-Andre Lemburg: > The main reason why it failed was the Linux distros keep inventing new ways > to identify themselves, sometimes misuse existing mechanisms to maintain > compatibility (e.g. as a Ubuntu or RedHat based OS) or ship with two > different

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.11.2020 10:39, Christian Heimes wrote: > >> It would be an interface to a file /etc/os-release >> that's common nowadays, just like /etc/lsb-release was some years >> ago. These things change too often to make the stdlib a good fit. >> I'm pretty

[issue42461] os.statvfs_result doesn't show f_fsid

2020-11-25 Thread hao
New submission from hao <359062...@qq.com>: >From doc I see about os.statvfs "New in version 3.7: Added f_fsid.", but it >doesn't show up when print an object os.statvfs returned. So I think maybe we >can add the field when printing object. -- components: Library (Lib) messages:

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

2020-11-25 Thread miss-islington
miss-islington added the comment: New changeset bda2e68c8849e23899b3dad9e436c06303254943 by Miss Islington (bot) in branch '3.8': bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409) https://github.com/python/cpython/commit/bda2e68c8849e23899b3dad9e436c06303254943 --

[issue42460] Wrong Output

2020-11-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: Correct output. https://docs.python.org/3/reference/expressions.html#operator-precedence a = 10 b = 10 (a >= 10) and not (b == 10) | 7+2 == 9 returns False because of operator precedence. It evaluates like this: (a >= 10) and not (b == 10) | 7+2 == 9 -->

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread Matthias Klose
Matthias Klose added the comment: > Where do you draw the line? there's a module available outside cpython. Your use case is to add some work around for some tests (like issue42142). If you need it for the tests, add it to the test framework. --

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

2020-11-25 Thread miss-islington
miss-islington added the comment: New changeset 9d2c2a8e3b8fe18ee1568bfa4a419847b3e78575 by Miss Islington (bot) in branch '3.9': bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409) https://github.com/python/cpython/commit/9d2c2a8e3b8fe18ee1568bfa4a419847b3e78575 --

  1   2   >