[issue33240] shutil.rmtree fails if inner folder is open in Windows Explorer

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: oh, I missed that a notification happens to the other process(es) in a common case, a bit of retrying with backoff would actually make sense there. But I wouldn't let a retry run for longer than a second or three, as code tends to assume that rmtree is pr

[issue40894] asyncio.gather() cancelled() always False

2021-03-20 Thread Ben Buchwald
Ben Buchwald added the comment: Hopefully I'm not too late to comment on this. I also just hit this issue, but I do not agree with the proposed PR. Only modifying _GatheringFuture.cancelled() just fixes one of the side-effects of the problem. The state of the future is still FINISHED and not

[issue33240] shutil.rmtree fails if inner folder is open in Windows Explorer

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: > oh, I missed that a notification happens to the other process(es) in a > common case, a bit of retrying with backoff would actually make sense The other common problem with deleting an empty directory is when it's opened as the working directory of a process. T

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-20 Thread Brett Cannon
New submission from Brett Cannon : https://docs.python.org/3/library/types.html#types.ModuleType does not document __spec__. -- assignee: docs@python components: Documentation messages: 389204 nosy: brett.cannon, docs@python priority: normal severity: normal status: open title: [types]

[issue42914] pprint numbers with underscore

2021-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think underscores can be on by default. It needs to be opt-in to be backwards compatible. -- ___ Python tracker ___

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-20 Thread Brett Cannon
Brett Cannon added the comment: Thinking about it more, raising ImportWarning (or DeprecationWarning) is unnecessarily noisy as the existence of the module isn't problematic, it just won't be used anymore in the future. So updating the code to use __spec__ first and then document in "What's

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-03-20 Thread Chad Netzer
New submission from Chad Netzer : In Python v3.9+ there was a regression in the amount of used memory for list-literals, due to switching to using list_extend() to allocate memory for the new list to accomodate the literal elements. Example, in Python v3.8.x (and before): ``` $ python38 Python

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-03-20 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-03-20 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-20 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: -[importlib] deprecate module_repr() methods ___ Python tracker ___ ___ Python-bugs-list

[issue43572] "Too many open files" on macOS buildbot

2021-03-20 Thread Matt Billenstein
Matt Billenstein added the comment: I don't see that error message - where are you seeing it? -- ___ Python tracker ___ ___ Python-

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-20 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23711 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24953 ___ Python tracker ___ ___

[issue43572] "Too many open files" on macOS buildbot

2021-03-20 Thread Matt Billenstein
Matt Billenstein added the comment: In any case - I've raised file/process limits on the buildbot. -- ___ Python tracker ___ ___ Py

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-03-20 Thread Chad Netzer
Change by Chad Netzer : -- keywords: +patch pull_requests: +23712 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24954 ___ Python tracker ___

[issue43575] map() instantiation time reducing by using PEP 590 vectorcall

2021-03-20 Thread Dong-hee Na
New submission from Dong-hee Na : +---+--+--+ | Benchmark | map_bench_master | map_bench_vectorcall | +===+==+==+ | bench map | 151 ns | 116 ns: 1.30x faster | +---+--+--

[issue43572] "Too many open files" on macOS buildbot

2021-03-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >> I don't see that error message - where are you seeing it? You need to search for it in the full log: stderr: --- Traceback (most recent call last): File "/Users/buildbot/buildarea/3.x.billenstein-macos/build/Lib/test/test_importlib/partial/pool

[issue43575] map() instantiation time reducing by using PEP 590 vectorcall

2021-03-20 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +23714 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24955 ___ Python tracker ___

[issue43572] "Too many open files" on macOS buildbot

2021-03-20 Thread Matt Billenstein
Matt Billenstein added the comment: Ah, word, was looking at stdout -- 256 is pretty low, raised it to 200k... -- ___ Python tracker ___ __

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-20 Thread Vedran Čačić
Vedran Čačić added the comment: Yes, I know what strong typing means, and can you please read again what I've written? It was exactly about "In the face of ambiguity, refuse the temptation to guess.", because binary operators are inherently ambiguous when given differently typed operands. Met

[issue43447] Generate vectorcall code to parse arguments using Argument Clinic

2021-03-20 Thread Dong-hee Na
Dong-hee Na added the comment: I agree with we should update AC to generate vectorcall. I am going to investigate what we can :) -- ___ Python tracker ___

[issue43576] python3.6.4 os.environ error when write chinese to file

2021-03-20 Thread rushant
New submission from rushant <953779...@qq.com>: # -*- coding: utf-8 -*- import os job_name = os.environ['a'] print(job_name) print(isinstance(job_name, str)) print(type(job_name)) with open('name.txt', 'w', encoding='utf-8')as fw: fw.write(job_name) i have set environment param by : export

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-20 Thread Andrew Dailey
New submission from Andrew Dailey : Hello, I think I might've stumbled onto an oversight with how an SSLSocket handles overwriting its SSLContext within an sni_callback. If both "_msg_callback" and "sni_callback" are defined on an SSLContext object and the sni_callback replaces the context w

[issue33935] shutil.copyfile throws incorrect SameFileError on Google Drive File Stream

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules versions: +Python 3.10, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Pyt

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: Filesystem paths in Windows are normally opened case insensitive, but a filesystem can choose to ignore this. NTFS does so for directories that flagged as case sensitive [1]. ntpath.normcase() doesn't incorporate this information. It would have to query the case-s

[issue33935] [Windows] samefile() should not use zero-valued st_dev and st_ino

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- title: shutil.copyfile throws incorrect SameFileError on Google Drive File Stream -> [Windows] samefile() should not use zero-valued st_dev and st_ino ___ Python tracker _

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-03-20 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue43578] With asyncio subprocess, send_signal() and the child process watcher will both call waitpid()

2021-03-20 Thread lincheney
New submission from lincheney : Under unix, when creating a asyncio subprocess, the child process watcher will call waitpid() to reap the child, but if you call send_signal() (or terminate() or kill() ) on the asyncio subprocess, this will also call waitpid(), causing exactly one of these to

<    1   2