[issue41439] some test cases in test_uuid.py and test_ssl.py fail on some operating systems because of no os.fork support

2020-07-30 Thread Peixing Xin
Change by Peixing Xin : -- keywords: +patch pull_requests: +20827 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21684 ___ Python tracker ___

[issue37586] macOS: posix_spawn(..., setsid=True)

2020-07-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: That's this issue. FWIW: I'm slowly working on a patch to build on macOS 11 and deploy to macOS 10.9 or later, the current rough and untested PR is at https://github.com/python/cpython/pull/21583. This needs testing and cleanup before it can be

[issue40045] Make "dunder" method documentation easier to locate

2020-07-30 Thread Hilit Oreny
Hilit Oreny added the comment: This issue has been resolved (thanks to @javadmokhtari and @nanjekyejoannah), but its Status is still "open" and the Resolution is blank... Members of Python triage team, please change the Status to "closed" and the Resolution to "fixed". Thank you!

[issue41440] os.cpu_count doesn't work on VxWorks RTOS

2020-07-30 Thread Peixing Xin
New submission from Peixing Xin : Now os.cpu_count() always returns NONE on VxWorks RTOS. It needs to be fixed particularly for VxWorks. -- components: Library (Lib) messages: 374601 nosy: pxinwr priority: normal severity: normal status: open type: enhancement versions: Python 3.10

[issue41440] os.cpu_count doesn't work on VxWorks RTOS

2020-07-30 Thread Peixing Xin
Change by Peixing Xin : -- keywords: +patch pull_requests: +20828 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21685 ___ Python tracker ___

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-07-30 Thread Thomas Holder
Thomas Holder added the comment: Attaching an even simpler example which doesn't use PyQt. It shows a native Windows dialog using ctypes. I could not reproduce the crash without showing any non-tk dialog. Steve's explanation sounds plausible. -- Added file:

[issue41177] ConvertingList and ConvertingTuple lack iterators and ConvertingDict lacks items()

2020-07-30 Thread Brett Hannigan
Brett Hannigan added the comment: Just wanted to check-in to see if there were any updates on my proposed PR? -- ___ Python tracker ___

[issue41439] some test cases in test_uuid.py and test_ssl.py fail on some operating systems because of no os.fork support

2020-07-30 Thread Peixing Xin
New submission from Peixing Xin : Some operating systems, for example VxWorks RTOS, don't support fork(). Some test cases that depend on os.fork() will fail. test_ssl.BasicSocketTests.test_random_fork and test_uuid.TestUUIDWithExtModule.testIssue8621 fail are this case. --

[issue41441] io reading & updating fix

2020-07-30 Thread 施文峰
Change by 施文峰 : -- components: IO nosy: ke265379ke priority: normal severity: normal status: open title: io reading & updating fix type: enhancement versions: Python 3.8 ___ Python tracker

[issue40075] _tkinter PythonCmd fails to acquire GIL

2020-07-30 Thread E. Paine
E. Paine added the comment: Thanks Steve for your explanation. I had a quick experiment with the ENTER_PYTHON definition and initially just added a call to PyThreadState_Get if the tstate was NULL. This still crashed the interpreter with the following error (which I think reaffirms Steve's

[issue41443] some test cases in test_posix.py fail if some os attributes are not supported

2020-07-30 Thread Peixing Xin
Change by Peixing Xin : -- keywords: +patch pull_requests: +20831 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21688 ___ Python tracker ___

[issue40045] Make "dunder" method documentation easier to locate

2020-07-30 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Closing as fixed. Thanks Hilit. -- nosy: +xtreak resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue41442] test_posix.PosixTester.test_getgroups fail on operating systems without supporting unix shell

2020-07-30 Thread Peixing Xin
Change by Peixing Xin : -- keywords: +patch pull_requests: +20830 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21687 ___ Python tracker ___

[issue41443] some test cases in test_posix.py fail if some os attributes are not supported

2020-07-30 Thread Peixing Xin
New submission from Peixing Xin : Some operating systems like VxWorks can't support posix.chown, posix.mknod and posix.readlink. This results that test_chown_dir_fd, test_mknod_dir_fd and test_readlink_dir_fd fail. -- components: Tests messages: 374610 nosy: pxinwr priority: normal

[issue41323] Perform "peephole" optimization directly on control-flow graph.

2020-07-30 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41323] Perform "peephole" optimization directly on control-flow graph.

2020-07-30 Thread Mark Shannon
Mark Shannon added the comment: New changeset 6e8128f02e1d36e38e5866f9dc36e051caa47bc9 by Mark Shannon in branch 'master': bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517) https://github.com/python/cpython/commit/6e8128f02e1d36e38e5866f9dc36e051caa47bc9

[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-07-30 Thread Julien Danjou
Change by Julien Danjou : -- keywords: +patch pull_requests: +20832 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21689 ___ Python tracker ___

[issue41395] pickle and pickletools cli interface doesn't close input and output file.

2020-07-30 Thread Sebastien Williams-Wynn
Change by Sebastien Williams-Wynn : -- nosy: +s.williams-wynn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41441] io reading & updating fix

2020-07-30 Thread 施文峰
Change by 施文峰 : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41442] test_posix.PosixTester.test_getgroups fail on operating systems without supporting unix shell

2020-07-30 Thread Peixing Xin
New submission from Peixing Xin : test_posix.PosixTester.test_getgroups requires unix shell supported on tested platform. However some operating systems like VxWorks doesn't support unix shell. This case will fail on it. -- components: Tests messages: 374609 nosy: pxinwr priority:

[issue41441] io reading & updating fix

2020-07-30 Thread 施文峰
Change by 施文峰 : -- keywords: +patch pull_requests: +20829 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21686 ___ Python tracker ___

[issue41441] io reading & updating fix

2020-07-30 Thread 施文峰
Change by 施文峰 : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41441] io reading & updating fix

2020-07-30 Thread 施文峰
New submission from 施文峰 : happen at io's reading & updating(r+) mode if you remove whole content ( truncate(0) ), tell wil not back to 0 then you start writing will start at current position that's why problem happen -- ___ Python tracker

[issue41441] io reading & updating fix

2020-07-30 Thread 施文峰
施文峰 added the comment: Please refer to the test case- https://github.com/841020/open_source -- ___ Python tracker ___ ___

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-30 Thread David Halter
David Halter added the comment: @gvanrossum > Does parso have to be pure Python? If not, we could generate C code like we > do for CPython's parser. I would rather write the parser either in C or Rust. So no, parso does not need to be pure Python. > Now, that doesn't work for incremental

[issue41411] Improve and consolidate f-strings docs

2020-07-30 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks both for pointing out the additional section in inputoutput.rst that I initially missed. > I have done PR 21681 that adds index to the tutorial although searching[2][3] > does not seem to be better now that the reference has an index. The online docs

[issue41446] New demo, using a web api

2020-07-30 Thread Juan Jimenez
Change by Juan Jimenez : -- keywords: +patch pull_requests: +20835 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21693 ___ Python tracker ___

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +20838 pull_request: https://github.com/python/cpython/pull/21694 ___ Python tracker ___

[issue41131] Augment random.choices() with the alias method

2020-07-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I paid close attention to rounding. The reason for the "while small and large" is that the loop stops making aliases unless we have both something at or below 0.5 and something known to be above 0.5. If we end up with only two bins slightly above

[issue41131] Augment random.choices() with the alias method

2020-07-30 Thread Tim Peters
Tim Peters added the comment: Oh yes - I understood the intent of the code. It's as good an approach to living with floating-point slop in this context as I've seen. It's not obviously broken. But neither is it obviously correct, and after a few minutes I didn't see a clear path to

[issue41441] io reading & updating fix

2020-07-30 Thread 施文峰
Change by 施文峰 : -- pull_requests: +20837 pull_request: https://github.com/python/cpython/pull/21686 ___ Python tracker ___ ___

[issue41131] Augment random.choices() with the alias method

2020-07-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, thank you for looking! -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___

[issue6143] IDLE - clear and restart the shell window

2020-07-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: @Pokerstar: First we have to agree on several things. 1. What is the need, what are the use cases? When do *you* feel a need to clear the shell? 2. What is the basic strategy? a. Delete selections: make delete, backspace, and cut work in the shell, as in

[issue41441] io reading & updating fix

2020-07-30 Thread 施文峰
Change by 施文峰 : -- pull_requests: -20829 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41274] Better way to random.seed()?

2020-07-30 Thread Juan Jimenez
Juan Jimenez added the comment: Pull request https://github.com/python/cpython/pull/21693 created for the demo steven.daprano suggested. -- message_count: 8.0 -> 9.0 pull_requests: +20836 pull_request: https://github.com/python/cpython/pull/21693

[issue41444] CPython 3.8.5 fails to build on Windows with -E option

2020-07-30 Thread Steve Dower
Steve Dower added the comment: Yes, if you use -E then you need to provide the dependencies in some other way. The option is there to suppress network access at build time, not to build without those modules. -- ___ Python tracker

[issue41445] Adding configure temporary files to gitignore

2020-07-30 Thread fj92f3jj923f923
New submission from fj92f3jj923f923 : I noticed that a lot of files generated and removed due configuring. I was too scary, when I saw them, and decided to add them to .gitignore. -- components: Build messages: 374619 nosy: fj92f3jj923f923 priority: normal severity: normal status: open

[issue41445] Adding configure temporary files to gitignore

2020-07-30 Thread fj92f3jj923f923
Change by fj92f3jj923f923 : -- keywords: +patch pull_requests: +20833 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21691 ___ Python tracker ___

[issue41446] New demo, using a web api

2020-07-30 Thread Juan Jimenez
New submission from Juan Jimenez : As per a suggestion in https://bugs.python.org/issue41274 I would like to submit for consideration a new demo program, one that demonstrates how to use a web API to generate a pseudo-random generator seed from high resolution, high cadence images of the

[issue41447] Resource Tracker in Multiprocessing Shared Memory not working correctly

2020-07-30 Thread Damian Barabonkov
New submission from Damian Barabonkov : The way the resource tracker is used in /Lib/multiprocessing/shared_memory.py leads to it issuing warnings/errors, even when resources are cleaned up properly. Attached are two simple demo files copied from the documentation example

[issue41444] CPython 3.8.5 fails to build on Windows with -E option

2020-07-30 Thread Vladislav Mikhalin
Vladislav Mikhalin added the comment: The documentation states: -E Don't fetch or build external libraries. Extension modules that depend on external libraries will not attempt to build if this flag is present; -e is also accepted to explicitly enable fetching and

[issue41444] CPython 3.8.5 fails to build on Windows with -E option

2020-07-30 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue41444] CPython 3.8.5 fails to build on Windows with -E option

2020-07-30 Thread Vladislav Mikhalin
New submission from Vladislav Mikhalin : These errors are generated on a clean build: C:\cpython-3.8.5\Modules\_ctypes\_ctypes.c(107,10): fatal error C1083: Cannot open include file: 'ffi.h': No such file or directory [C:\cpython-3.8.5\PCbuild\_ctypes.vcxproj]

[issue41330] Inefficient error-handle for CJK encodings

2020-07-30 Thread Dong-hee Na
Dong-hee Na added the comment: I am also +1 on Serhiy's opinion. As I am Korean, (I don't know Japan or China environment) I know that there still exist old Korean websites that use EUC-KR encoding. But at least 2010s modern Korea website/application. Most of the applications are built on

[issue41360] method _tunnel does not allow for a standard proxy authentication solution

2020-07-30 Thread Вадим Новиков
Change by Вадим Новиков : -- nosy: +Вадим Новиков ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40841] Provide mimetypes.sniff API as stdlib

2020-07-30 Thread Dong-hee Na
Dong-hee Na added the comment: https://www.garykessler.net/library/file_sigs.html looks like a good resource for this kind of API. However, I would like to choose well-known standard from whatwg or w3c etc.. -- ___ Python tracker

[issue36207] robotsparser deny all with some rules

2020-07-30 Thread James Gray
James Gray added the comment: Bonjour, je vois que nous ne sommes pas les seuls dans ce cas, nous avons besoin que les robots indexent nos pages html mais qu'elles n'indexent pas celles en /*.php$ ainsi que les ressources PC en PDF. Nous avons tenté en vain plusieurs solutions en passant par

[issue20684] inspect.getfullargspec (etc) incorrectly follows __wrapped__ chains

2020-07-30 Thread Anthony Sottile
Change by Anthony Sottile : -- nosy: +Anthony Sottile nosy_count: 3.0 -> 4.0 pull_requests: +20834 pull_request: https://github.com/python/cpython/pull/21100 ___ Python tracker

[issue41131] Augment random.choices() with the alias method

2020-07-30 Thread Tim Peters
Tim Peters added the comment: I'm not clear on that the alias method is valuable here. Because of the preprocessing expense, it cries out for a class instead: an object that can retain the preprocessed tables, be saved to disk (pickled), restored later, and used repeatedly to make O(1)

[issue37586] macOS: posix_spawn(..., setsid=True)

2020-07-30 Thread Steve Dower
Steve Dower added the comment: Oh great, it's one of these style changes :) You probably want to define some macros for those barriers so the added optional nesting doesn't come back to bite us later. Otherwise, best of luck! Let me know if I can help out (for now I'm just ignoring the