[issue39232] asyncio crashes when tearing down the proactor event loop

2021-08-23 Thread Shane Mai
Shane Mai added the comment: I added some code to wait for all tasks completion before exit: currentTask = asyncio.current_task() for t in asyncio.all_tasks(): if currentTask != t: await t and still got the exception Then I think it created additional thread

[issue10551] mimetypes read from the registry should not overwrite standard mime mappings

2021-07-16 Thread Shane Harvey
Shane Harvey added the comment: This issue says "mimetypes read from the registry should not overwrite standard mime mappings". Was this change ever made? the following issue claims that the "HKEY_CLASSES_ROOT\.js\Content Type" registry can still overrides

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-05-18 Thread Shane Harvey
Shane Harvey added the comment: I opened a PR to add the socket.TCP_KEEPALIVE flag *on macOS only*. I don't see a reason to add it on Windows since as far as I can tell, TCP_KEEPALIVE is completely undocumented there. Besides there are already two ways to configure keepalive tim

[issue43626] SIGSEV in PyErr_SetObject

2021-04-09 Thread Shane Harvey
Shane Harvey added the comment: This issue was resolved in https://jira.mongodb.org/browse/PYTHON-2621 The cause of the segfault was determined to be gevent 1.3.4 (2018) and/or greenlet 0.4.13 (2018). When the reporter upgraded to gevent==21.1.2 and greenlet==1.0 the segfault went away

[issue34932] Add macOS TCP_KEEPALIVE to available socket options

2021-03-29 Thread Shane Harvey
Change by Shane Harvey : -- nosy: +ShaneHarvey nosy_count: 3.0 -> 4.0 pull_requests: +23829 pull_request: https://github.com/python/cpython/pull/25079 ___ Python tracker <https://bugs.python.org/issu

[issue39211] Change in http.server default IP behavior?

2020-01-05 Thread Shane
Shane added the comment: Based on my understanding, your fix should do it. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue39211] Change in http.server default IP behavior?

2020-01-05 Thread Shane
Shane added the comment: Jason, thank you for the primer. > Nevertheless, when I tried the same thing on my Windows machine, I got a > different outcome. The server bound to [::0] but was unreachable on > http://127.0.0.1:8000. Perhaps it's an issue with IPv4 addresses

[issue39211] Change in http.server default IP behavior?

2020-01-05 Thread Shane
Shane added the comment: A small update: Using the direct invocation: > python -m http.server 8000 Serving HTTP on :: port 8080 (http://[::]:8080/) ... Is NOT accessible at the following addresses: http://[::]:8080/ # most surprising, because this is where it tells you to go http://:8

[issue39211] Change in http.server default IP behavior?

2020-01-04 Thread Shane
Shane added the comment: For the basic invocation: >python -m http.server 8080 Serving HTTP on :: port 8080 (http://[::]:8080/) ... It just sits there, because I can't access it (http://[::]:8080/ is not a valid address, so far as I know, and inserting my IP address doesn't f

[issue39211] Change in http.server default IP behavior?

2020-01-04 Thread Shane
New submission from Shane : It seems to me that the direct invocation behavior for http.server changed, probably with Python 3.8 (I'm currently using 3.8.1 on Windows 10). On 3.7.X I was able to use it as described in the docs (https://docs.python.org/3/library/http.server.html) > p

[issue39211] Change in http.server default IP behavior?

2020-01-04 Thread Shane
Change by Shane : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue39211> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue38890] A subprocess.Popen created with creationFlags=DETACHED_PROCESS on Windows should not emit a ResourceWarning

2019-11-21 Thread Shane Harvey
New submission from Shane Harvey : In https://bugs.python.org/issue26741 Popen was changed to emit a ResourceWarning in __del__ if the process is still running. However, when running a daemon/detached process it is completely valid to delete a Popen object before the process is complete. On

[issue17123] Add OCSP support to ssl module

2019-10-15 Thread Shane Harvey
Change by Shane Harvey : -- nosy: +ShaneHarvey ___ Python tracker <https://bugs.python.org/issue17123> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Shane G
Shane G added the comment: This issue was created because I ran across a plist like this when parsing entitlements in an IPA. I assume that this happened by some unusual step in the toolchain when building the application. To some other points: * agreed lstrip()ing just the key would not

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-06-19 Thread Shane G
New submission from Shane G : plistlib in Python 3.7.3 (and earlier) does not autodetect plist data as XML if it contains whitespace before the "https://github.com/python/cpython/blob/3.7/Lib/plistlib.py#L493 -- messages: 346089 nosy: shaneg priority: normal severity: normal s

[issue36592] is behave different for integers in 3.6 and 3.7

2019-04-10 Thread Shane
Shane added the comment: Well, then I guess that explains it! Still, like I said, I tend to shy away from features that require such a deep understanding of the implementation in order to avoid "gotchas". "is" does have its uses, but for me they very

[issue36595] Text Search in Squeezed Output Viewer

2019-04-10 Thread Shane
New submission from Shane : Would it be possible to enhance IDLE's new Squeezed Output Viewer (which I LOVE, btw), with a text search feature? If I'm in a module's help documentation, I'm usually looking for something, and I often end up copying the text into notepad

[issue36592] is behave different for integers in 3.6 and 3.7

2019-04-10 Thread Shane
Shane added the comment: This is the sort of thing that makes me avoid "is" in favor of "==" for most applications. Understanding when two objects point to the same memory requires a deeper understanding of the underlying code than I usually want to delve into

[issue36172] csv module internal consistency

2019-03-04 Thread Shane
Shane added the comment: Thank you both for having a look. I just find that these sort of gotchas rather annoying (nonsensical mental burden of having to memorize behavior that does not behave like most other features for "hysterical raisins"). I think making the documentation mo

[issue36172] csv module internal consistency

2019-03-03 Thread Shane
New submission from Shane : It occurred to me there is a slight mismatch in the behavioral consistency of the csv module (at least on Windows, Python 3.X). Specifically, csv.writer() and csv.reader() treat the line terminator slightly differently. To boil it down to a concise example

[issue36061] zipfile does not handle arcnames with non-ascii characters on Windows

2019-02-20 Thread Shane Lee
New submission from Shane Lee : Python 2.7.15 (probably affects newer versions as well) Given an archive with any number of files inside that have non-ascii characters in their filename `zipfile` will crash when extracting them to the file system. ``` Traceback (most recent call last

[issue35256] The Console of Python 3.7.0.

2018-11-15 Thread Shane
Shane added the comment: I suspect the author simply does not realize lists are mutable in Python. -- nosy: +Shane Smith ___ Python tracker <https://bugs.python.org/issue35

[issue35250] Minor parameter documentation mismatch for turtle

2018-11-14 Thread Shane
New submission from Shane : I noticed a slight mismatch in the parameter documentation for one of turtle's functions. onclick() accepts the parameters (fun, btn, add), but the documentation describes the parameters (fun, num, add). A minor issue, to be sure, but I wanted to point i

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2017-08-07 Thread Shane Harvey
Shane Harvey added the comment: When are these functions going to be deprecated? In 3.5, 3.6, and master they still raise PendingDeprecationWarning, not DeprecationWarning: https://github.com/python/cpython/blob/v3.5.3/Lib/platform.py#L305-L306 https://github.com/python/cpython/blob/v3.6.2/Lib

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-04 Thread Shane Harvey
Changes by Shane Harvey : -- pull_requests: +3039 ___ Python tracker <http://bugs.python.org/issue31107> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-04 Thread Shane Harvey
Changes by Shane Harvey : -- pull_requests: +3038 ___ Python tracker <http://bugs.python.org/issue31107> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-02 Thread Shane Harvey
Changes by Shane Harvey : -- versions: -Python 3.7 ___ Python tracker <http://bugs.python.org/issue31107> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31107] copyreg does not properly mangle __slots__ names

2017-08-02 Thread Shane Harvey
New submission from Shane Harvey: This line in copyreg._slotnames does not properly calculate mangled attribute names: https://github.com/python/cpython/blob/v3.6.2/Lib/copyreg.py#L131 The problem is that it does not strip leading underscores from the class name: >>&

[issue27603] Migrate IDLE context menu items to shell extension

2017-01-11 Thread Shane Smith
Shane Smith added the comment: Since you're a developer, I'm sure you need a lot of versions installed so you can check for backwards combatibility (spelling intentional). But until recently, only the most recent IDLE was in the context menu, so I'm guessing your workflow fo

[issue27603] Migrate IDLE context menu items to shell extension

2017-01-11 Thread Shane Smith
Shane Smith added the comment: I'm fine with a single implementation, so long as the implementation is what's best for the majority of users. Not my intent to increase the burden of work. So, let me ask the question alluded to in my first post: when is a nested menu actually des

[issue27603] Migrate IDLE context menu items to shell extension

2017-01-11 Thread Shane Smith
Shane Smith added the comment: Hi Vedran, that seems to now be the default behavior, regardless of previous installs (my 3.6 was a clean install, and it's still nested). Kind of a pain if you want to edit with IDLE frequently. While we wait for a more integrated solution, the hackish w

[issue27603] Migrate IDLE context menu items to shell extension

2017-01-07 Thread Shane Smith
Shane Smith added the comment: Would it be possible to allow the user to select whether they'd prefer a nested or flat context menu at install? I believe it went to nested as a result of issue23546. Unless there are a large number of installations (arbitrarily... perhaps 4 or more)

[issue27805] In Python 3, open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2016-08-20 Thread Shane Hathaway
Shane Hathaway added the comment: Thanks for the analysis. I have already started a pull request to fix this in Supervisor, but I also thought this change to Python might be gratuitous and accidental. It seems like open('/dev/stdout', 'a') ought to work the same as P

[issue27805] In Python 3, open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2016-08-19 Thread Shane Hathaway
New submission from Shane Hathaway: With Python 2, the following call worked: open('/dev/stdout', 'a') Users of Supervisor have been depending on that for a long time. With Python 3.5, this is what happens: >>> open('/dev/stdout', 'a') Tra

[issue14303] Incorrect documentation for socket.py on linux

2012-03-14 Thread Shane Hansen
New submission from Shane Hansen : The python docs state that for socket.makefile "The file object references a dup()ped version of the socket file descriptor, so the file object and socket object may be closed or garbage-collected independently." In fact for socket.py dup() is ne

[issue12659] Add tests for packaging.tests.support

2011-07-31 Thread shane moore
Changes by shane moore : -- nosy: +shane.moore ___ Python tracker <http://bugs.python.org/issue12659> ___ ___ Python-bugs-list mailing list Unsubscribe: