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

2020-11-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm not sure if I understand what you're trying to do. Is host_path_str a path on the local machine, or a path on the FTP server? For the latter you probably want to use "PurePosixpath" instead of "Path", the latter is intended to be used for local paths an

[issue42454] Move slice creation to the compiler for constants

2020-11-25 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > something[::-1] = something I was thinking this for a while, and this is the actual reason that I didn't propose this until I saw someone's comment under Raymond's tweet about 'slices are not hashable' (https://twitter.com/4skvictor/status/133043391164678

[issue42459] Wrong Output

2020-11-25 Thread Nishant Gautam
New submission from Nishant Gautam : The Python language does not the program -- components: Windows files: PROVE.jpg messages: 381797 nosy: Kshitish, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Wrong Output type: crash versions:

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I'm -1 on adding any kind of replacement for platform.linux_distribution() tp Python's stdlib. The experiment has failed and we should acknowledge this. The main reason why it failed was the Linux distros keep inventing new ways to identify themselves, s

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: It's not a replacement for platform.linux_distribution(). -- ___ Python tracker ___ ___ Python-

[issue31904] Python should support VxWorks RTOS

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

[issue42459] Wrong Output

2020-11-25 Thread Yurii Karabas
Yurii Karabas <1998uri...@gmail.com> added the comment: There is a little error in your code, it should look like this: ``` def test(sum): return int(sum) if test(10) == 10: print("Yes") else: print("No") ``` Basically `if sum == 10:` will compare builtin function sum with int value

[issue42459] Wrong Output

2020-11-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: That is the correct output. Kshitish, Python is a mature language (about 30 years old) used by tens or hundreds of thousands of people every day. Did you believe that you were the only person who noticed that Python cannot even run `if...else` statements c

[issue28468] Add platform.freedesktop_os_release()

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

[issue42238] Deprecate suspicious.py?

2020-11-25 Thread Julien Palard
Julien Palard added the comment: New changeset c9c6e9f89aa68ce8094393a1a5575b67d26bc8c8 by Julien Palard in branch 'master': bpo-42238: Doc: Remove make suspicious from the CI and docs builds. (GH-23313) https://github.com/python/cpython/commit/c9c6e9f89aa68ce8094393a1a5575b67d26bc8c8 -

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

2020-11-25 Thread Julien Palard
Julien Palard added the comment: New changeset 4fedd7123eaf147edd55eabbbd72e0bcc8368e47 by Julien Palard in branch 'master': bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409) https://github.com/python/cpython/commit/4fedd7123eaf147edd55eabbbd72e0bcc8368e47 -- __

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

2020-11-25 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +22395 pull_request: https://github.com/python/cpython/pull/23508 ___ Python tracker _

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

2020-11-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +22396 pull_request: https://github.com/python/cpython/pull/23509 ___ Python tracker ___ __

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.11.2020 10:06, Christian Heimes wrote: > > It's not a replacement for platform.linux_distribution(). Right, not even that :-) It would be an interface to a file /etc/os-release that's common nowadays, just like /etc/lsb-release was some years ago.

[issue28468] Add platform.freedesktop_osrelease()

2020-11-25 Thread Christian Heimes
Christian Heimes added the comment: > 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 sure distros will invent something new in 5 years which >

[issue42460] Wrong Output

2020-11-25 Thread Nishant Gautam
New submission from Nishant Gautam : The python give wrong output -- files: PROOF.jpg messages: 381806 nosy: Kshitish priority: normal severity: normal status: open title: Wrong Output type: behavior versions: Python 3.8 Added file: https://bugs.python.org/file49619/PROOF.jpg _

[issue42460] Wrong Output

2020-11-25 Thread Nishant Gautam
Change by Nishant Gautam : Added file: https://bugs.python.org/file49620/Logic.jpg ___ Python tracker ___ ___ Python-bugs-list mailing list

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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

[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

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

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

[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

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

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

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

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

[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 ___ ___ Python-bugs-l

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

[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

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

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

[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) https://github.com/python/cpython/commit/87f7ab5359bc12eeb858272b7bd58e13

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

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

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

[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

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

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

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

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

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

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

[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

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

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

[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! x[slice(*slice(-91,-100,-3).indices(len(x)))]

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

[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 PyObject_GetBuffer()/PyBu

[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: https://mail.p

[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

[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

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

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

[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())" -- ___

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

[issue42468] subprocess.CompletedProcess: Add boolean value

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

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

  1   2   >