[issue41192] Some audit events are undocumented

2020-10-19 Thread A.M. Kuchling
Change by A.M. Kuchling : -- pull_requests: +21731 pull_request: https://github.com/python/cpython/pull/22768 ___ Python tracker ___

[issue41192] Some audit events are undocumented

2020-10-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: New changeset 2ee6ef98b4cf94f4c21cc4301d4e226b70809c7e by Miss Skeleton (bot) in branch '3.9': bpo-41192: Fix some broken anchors for audit event entries (GH-21310) (GH-22767) https://github.com/python/cpython/commit/2ee6ef98b4cf94f4c21cc4301d4e226b70809c7e

[issue26376] Tkinter root window won't close if packed.

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I cannot reproduce this issue with Python 3.9 (Python.org installer). Both with "Run Module" and in the interactive shell (both in IDLE) the window will close properly. In both cases the window it too small to show the minimise and maximise buttons (as

[issue20585] urllib2 unrelease KQUEUE on Mac OSX 10.9+

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I cannot reproduce this issue on macOS 10.15 (with python 3.9). I intent to close this issue because (a) this is a platform problem and (b) seems no longer to be a problem with the latest macOS and Python versions. -- resolution: -> out of date

[issue42057] pytest case which catch exceptions become segfault

2020-10-19 Thread Inada Naoki
Inada Naoki added the comment: I confirmed fix42057.patch fix the assertion failure. But I don't know where and how to write test yet. -- keywords: +patch Added file: https://bugs.python.org/file49527/fix42057.patch ___ Python tracker

[issue42057] pytest case which catch exceptions become segfault

2020-10-19 Thread Inada Naoki
Inada Naoki added the comment: I confirmed the issue. The simple version of the reproducer is: ``` def callee(): raise Exception def caller(): try: callee() except Exception or Exception: pass caller() ``` I can see assertion failure consisntently, when I use

[issue41192] Some audit events are undocumented

2020-10-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +21730 pull_request: https://github.com/python/cpython/pull/22767 ___ Python tracker

[issue41192] Some audit events are undocumented

2020-10-19 Thread A.M. Kuchling
A.M. Kuchling added the comment: New changeset ebc8c3828779374b9be4fae5c8ffc0059d36ac8c by Saiyang Gou in branch 'master': bpo-41192: Fix some broken anchors for audit event entries (#21310) https://github.com/python/cpython/commit/ebc8c3828779374b9be4fae5c8ffc0059d36ac8c -- nosy:

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

2020-10-19 Thread Eryk Sun
Eryk Sun added the comment: > My biggest concern with the suggested wording ... is that it > reintroduces the issue with the redirector. I thought I addressed that in second paragraph by recommending sys.executable. It could be emphasized that running "python[x][.y]" is unreliable, without

[issue41812] Broken link on documentation header

2020-10-19 Thread Julien Palard
Julien Palard added the comment: Thanks for the heads up cocoatomo!! Fixed: https://github.com/python/docsbuild-scripts/commit/c23b401425a47b9c8eaa9626701ba6b9b50531f7 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.

2020-10-19 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +21729 pull_request: https://github.com/python/cpython/pull/22765 ___ Python tracker

[issue42057] pytest case which catch exceptions become segfault

2020-10-19 Thread Mark Shannon
Mark Shannon added the comment: The test example has no reference to pytest in it. How are you running it? Can you produce a segmentation fault when run without pytest? -- ___ Python tracker

[issue29688] Add support for Path.absolute()

2020-10-19 Thread 4-launchpad-kalvdans-no-ip-org
Change by 4-launchpad-kalvdans-no-ip-org : -- nosy: +4-launchpad-kalvdans-no-ip-org ___ Python tracker ___ ___ Python-bugs-list

[issue31818] [macOS] _scproxy.get_proxies() crash -- get_proxies() is not fork-safe?

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm in favour of closing this issue. If anything needs to be done its adding a warning to the documentation of os.fork() to the effect that doing substantial work in the child can be problematic on macOS. Maybe something like: .. warning:: On macOS the

[issue41270] NamedTemporaryFile is not its own iterator.

2020-10-19 Thread Seth Sims
Change by Seth Sims : -- pull_requests: +21728 pull_request: https://github.com/python/cpython/pull/22766 ___ Python tracker ___

[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-19 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +21727 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22764 ___ Python tracker ___

[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Given this plist: http://www.apple.com/DTDs/PropertyList-1.0.dtd;> hex 0x010c oct 0123 ``plutil -convert json`` prints: {"hex":[16777228],"oct":[123]} That is,

[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: This file is still present on the latest version of macOS 11 beta on ARM64, with this integer value. Furthermore plutil will happily read this file. I'm in favour of changing plistlib to parse files like this. --

[issue31878] Cygwin: _socket module does not compile due to missing ioctl declaration

2020-10-19 Thread Erik Bray
Change by Erik Bray : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41754] Webbrowser Module Cannot Find xdg-settings on OSX

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: It is far from clear what's going on here. In particular, it not clear to my why check_output(['xdg-settings', ...]) would ever raise NotADirectoryError. - What packages do you have installed through homebrew? - Is there an xdg-settings command installed

[issue42077] Some absolute domain name not work in urllib

2020-10-19 Thread Christian Heimes
Christian Heimes added the comment: SSLV3_ALERT_UNEXPECTED_MESSAGE means that the server is responding with incorrect TLS data. That's usually the case when the port on the server is HTTP instead of HTTPS. It's also possible that the server does not like the SNI header (Server Name

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: The installers on Python.org no longer use the system version of libsqlite, sidestepping that issue. That doesn't fix the issue with _scproxy, but that's something we cannot easily fix in Python itself. -- resolution: -> wont fix stage: ->

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

2020-10-19 Thread Paul Moore
Paul Moore added the comment: My biggest concern with the suggested wording (which in broad terms looks OK to me) is that it reintroduces the issue with the redirector. By specifically saying that the behaviour in `CreateProcess` applies, we lead the user to the statement that the search

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

2020-10-19 Thread Eryk Sun
Eryk Sun added the comment: > I'd read it because I'm interested, but that is probably too much detail > for someone who is trying to get something done quickly. I did say that I don't know how much should be documented. I tend to dump a lot of information in issues so that people can make

[issue41680] Turtles in Python 3.8.5 crashes OSX 10.14.6

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Also: What's meant by "crash OSX 10.14.6"? Could this be a duplicate of #37833? -- ___ Python tracker ___

[issue41471] After installing python 3.x on Mac pip doesn't work at all

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've tested the same settings with Safari, and that browser ignores excludes with an invalid prefix length. I've created a PR that does the same for urllib.request. -- ___ Python tracker

[issue41471] After installing python 3.x on Mac pip doesn't work at all

2020-10-19 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +21726 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22762 ___ Python tracker

[issue41471] After installing python 3.x on Mac pip doesn't work at all

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: The error is due to invalid proxy settings on the system. I can reproduce the error by enabling a HTTP proxy in system settings, while adding "172.19.0.0/40" to the proxy exclude list in the HTTP proxy settings. -- stage: -> needs patch versions:

[issue42056] Configure on Apple ARM: "Unexpected output of 'arch' on OSX"

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this issue because it is a duplicate of #41100, the patches needed to build on Apple Silicon are more involved than just a configure check. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder:

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

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: The PR is fairly simple: Just reject files with entity declarations as invalid files. Adding an option to accept entity declarations should not be necessary as Apple tools won't accept these declarations. -- ___

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

2020-10-19 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +21725 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22760 ___ Python tracker ___

[issue42079] Why does tarfile.next swallow InvalidHeaderError

2020-10-19 Thread Jan Schatz
New submission from Jan Schatz : I have a tar gz archive that fails to be extracted via tarfile.extractall(). By adding some debug code I found that at some point InvalidHeaderError is raised inside tarfile.next(). But the function just swallows the exception, because the offset isn't 0 (see

[issue11698] Improve repr for structseq objects to show named, but unindexed fields

2020-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Other problem is that the repr looks like an evaluable expression, but evaluating it will always produce error. >>> st = os.stat('/dev/null') >>> st os.stat_result(st_mode=8630, st_ino=6, st_dev=6, st_nlink=1, st_uid=0, st_gid=0, st_size=0,

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

2020-10-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm working on a PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39116] StreamReader.readexactly() raises GeneratorExit on ProactorEventLoop

2020-10-19 Thread twisteroid ambassador
Change by twisteroid ambassador : -- versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13451] sched.py: speedup cancel() method

2020-10-19 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +21724 pull_request: https://github.com/python/cpython/pull/22759 ___ Python tracker ___

[issue39116] StreamReader.readexactly() raises GeneratorExit on ProactorEventLoop

2020-10-19 Thread twisteroid ambassador
twisteroid ambassador added the comment: This problem still exists on Python 3.9 and latest Windows 10. I tried to catch the GeneratorExit and turn it into a normal Exception, and things only got weirder from here. Often several lines later another await statement would raise another

[issue19270] Document that sched.cancel() doesn't distinguish equal events and can break order

2020-10-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5368c2b6e23660cbce7e38dc68f859c66ac349ee by Bar Harel in branch 'master': bpo-19270: Fixed sched.scheduler.cancel to cancel correct event (GH-22729) https://github.com/python/cpython/commit/5368c2b6e23660cbce7e38dc68f859c66ac349ee

[issue42026] index function return first index for same element if repetitive in a list

2020-10-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: > If the index() is working fine. why my previous attached > code sample is returning 0 for each time I try to get > the index for element 11 in the list. Your code is buggy. It assumes that list.index() changes its starting point as your for-loop

[issue42078] _tracemalloc.c and Clang-cl

2020-10-19 Thread Gisle Vanem
New submission from Gisle Vanem : Related to: https://bugs.python.org/issue33351 where I commented above the following. When using `clang-cl` to build, I get the following error: ``` Modules/_tracemalloc.c(55,9): error: declaration of anonymous struct must be a definition typedef struct

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

2020-10-19 Thread Mark Keller
Mark Keller added the comment: Paul explained precisely of what I was going through when I reached out to you with this: > then the "running executable" is "path/to/venv/scripts/python.exe", and so > the path containing the running executable is "path/to/venv/scripts", so a > search for

[issue42026] index function return first index for same element if repetitive in a list

2020-10-19 Thread Chetan Palliwal
Chetan Palliwal added the comment: If the index() is working fine. why my previous attached code sample is returning 0 for each time I try to get the index for element 11 in the list. -- ___ Python tracker

[issue42026] index function return first index for same element if repetitive in a list

2020-10-19 Thread Chetan Palliwal
Chetan Palliwal added the comment: can you let it work using the index method then it index() is working fine. I can resolve it by using enumerate and another way. The issue I raised here for the index() method not for enumerate. -- status: closed -> open

<    1   2   3