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

2020-04-25 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: -19032 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40375] Add the UNSELECT command to imaplib

2020-04-25 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19034 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19712 ___ Python tracker

[issue9417] Declaring a class creates circular references

2020-04-25 Thread Kay Hayen
Kay Hayen added the comment: Today I changed my reference count tests to not use debug Python and came across this issue. >From my testing, Python3.4 is the first affected version, Python3.3 was still >fine, so were 2.7 and 2.6. This leaks: def simpleFunction39(): class Parent(str):

[issue40388] random.choice integer overflow v3.5.2

2020-04-25 Thread Mark Dickinson
Mark Dickinson added the comment: I suspect that the OP is doing something like `random.choice(range(10**40))`: Python 3.8.2 (default, Feb 27 2020, 19:56:42) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license" for more information.

[issue40217] The garbage collector doesn't take in account that objects of heap allocated types hold a strong reference to their type

2020-04-25 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: would it be possible to fix this issue in alpha6? Can we merge PR 19414? In the lack of reply, I think that the best to merge PR 19414. -- ___ Python tracker

[issue40387] queue example it does not work

2020-04-25 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: In general examples in the documentation may lack some things like imports as they are implicit but in this case it also lack do_work(), source() and num_worker_threads. You could use os.cpu_count() instead of your hard-coded value and the comment. Can you

[issue15185] Validate callbacks in 'contextlib.ExitStack.callback()'

2020-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is rather a work for linter's and static type checking. Runtime check adds an overhead, and it is expected that in correct program it will always pass. You need the check only while write the program, it may help in debugging. But once it has

[issue40375] Add the UNSELECT command to imaplib

2020-04-25 Thread Dong-hee Na
Change by Dong-hee Na : -- assignee: -> corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9417] Declaring a class creates circular references

2020-04-25 Thread Kay Hayen
Kay Hayen added the comment: What I also meant to say, is that debug Python is not affected, and this had me deeply confused. Any ideas how that could happen? -- ___ Python tracker

[issue40377] APPDATA location in Microsoft Store version

2020-04-25 Thread Stephan Troyer
Stephan Troyer added the comment: > ... provide a way to output the relevant contents of the file on the console > rather than just printing the path ... Thanks, I didn't think of that option, that is probably the best way to deal with it. I'll file a bug to jupyter and vscode-python (which

[issue40387] queue example it does not work

2020-04-25 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +19035 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19713 ___ Python tracker

[issue40388] random.choice integer overflow v3.5.2

2020-04-25 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> not a bug status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40390] Implement a C API for channel_send_wait for subinterpreters.

2020-04-25 Thread Benjamin Edwards
Change by Benjamin Edwards : -- keywords: +patch pull_requests: +19038 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19715 ___ Python tracker

[issue40389] No straightforward way to get repr of Optional

2020-04-25 Thread Vladislav Serebrennikov
New submission from Vladislav Serebrennikov : When source code is not available, "typing.Union[T, NoneType]" is what autocompletion engines left with, if they don't have additional logic to cover this case. Which is noisy compared to typing.Optional[T]. Usecase when source code is not

[issue40387] queue example it does not work

2020-04-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: The example is supposed to be a sketch of the overall pattern. IMO, putting concrete and useless implementations of do_work() and source() make the example less intelligible. Instead, we can add a note that the user needs to supply their own do_work()

[issue40391] io.FileIO.mode doesn't comply with the docs

2020-04-25 Thread mike.parker
New submission from mike.parker : io.FileIO.mode doesn't reflect "The mode as given in the constructor." as per the documentation(https://docs.python.org/3/library/io.html#io.FileIO.mode). Was noted in issue4362, but seems to be still relevant. Example: >>> f = open("t.tmp", "w+b") >>> f.mode

[issue40389] No straightforward way to get repr of Optional

2020-04-25 Thread Vladislav Serebrennikov
Change by Vladislav Serebrennikov : -- keywords: +patch pull_requests: +19036 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19714 ___ Python tracker

[issue40388] random.choice integer overflow v3.5.2

2020-04-25 Thread Nicholas Prowse
Nicholas Prowse added the comment: Code as requested is similar to the below: N = <40 digit int> sequence=range(1,N) a = random.choice(sequence) Since you class the error previously mentioned as an exception, what function should be used instead for choosing a random integer between 1 and

[issue40337] builtins.RuntimeError: Caught RuntimeError in pin memory thread for device 0.

2020-04-25 Thread Eric V. Smith
Eric V. Smith added the comment: If you have more information, please provide it and re-open this issue. -- resolution: -> rejected stage: -> resolved status: pending -> closed ___ Python tracker

[issue40390] Implement a C API for channel_send_wait for subinterpreters.

2020-04-25 Thread Benjamin Edwards
New submission from Benjamin Edwards : When sending a message to another interpreter allow the caller to wait until the message has been received. -- components: C API messages: 367280 nosy: benedwards14, eric.snow priority: normal severity: normal status: open title: Implement a C

[issue40388] random.choice integer overflow v3.5.2

2020-04-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: Take your pick between either of these: random.randrange(1, N) random.randint(1, N-1) https://docs.python.org/3/library/random.html#functions-for-integers -- ___ Python tracker

[issue40031] IDLE fails trying to inport old idlelib file names for config

2020-04-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Saaheer, using the 'File: Browse...' button under the comment box, please upload (if you still have it) the .../.idlerc/config-extensions.cfg that results in this failure. Most idlelib files were renamed in 3.6. 'AutoExpand' and 'CallTips' are 2 of the

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2020-04-25 Thread hai shi
hai shi added the comment: >since we are going to delete the threading.Thread object with its _tstate_lock >object anymore. Do we have any pep or discuss record about this plan? > * Modify release_sentinel() to not use the lock: avoid > PyThread_release_lock() call. Hm, I am not sure

[issue38580] select()'s documentation claims only sequences are accepted, but it allows all iterables

2020-04-25 Thread Tal Einat
Tal Einat added the comment: It seems pretty clear to me that we should simply update the docs as suggested. If nobody chimes in about this within a week, I intend to merge the PR (GH-16832) with the small fixes I've suggested there. -- ___

[issue34028] Python 3.7.0 wont compile with SSL Support 1.1.0 > alledged missing X509_VERIFY_PARAM_set1_host() support

2020-04-25 Thread Frank Thommen
Change by Frank Thommen : -- nosy: -fthommen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9417] Declaring a class creates circular references

2020-04-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Kay, please ask your question on python-list or a similar forum. -- ___ Python tracker ___ ___

[issue40333] Request for multi-phase initialization API to run code after importlib init

2020-04-25 Thread Gregory Szorc
Gregory Szorc added the comment: Having approached this with a fresh brain, I was able to port PyOxidizer to use the multi-phase initialization API with minimal regressions! The relevant code exists at

[issue40380] OS-related test failures on Linux in Python 3.8.2

2020-04-25 Thread Dennis Sweeney
Change by Dennis Sweeney : -- components: +Tests -Installation title: Errors during make test python 3.8.2 -> OS-related test failures on Linux in Python 3.8.2 type: compile error -> behavior ___ Python tracker

[issue25560] Unhandled warning in test_unicode_file

2020-04-25 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2 is EOL. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21614] Case sensitivity problem in multiprocessing.

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: With no activity here in over 5 years and no confirmation on any version but 2.7, I'm closing the issue. If it can be confirmed on 3.8, the issue can be reopened. -- nosy: +zach.ware resolution: -> out of date stage: -> resolved status: open ->

[issue34283] [Windows] Python 2 mishandles console code page after setlocale

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: As this issue is specific to 2.7, I'm closing it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue29796] [2.7] test_weakref hangs on Python 2.7 on Windows

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: Looks like we forgot to close this one; as far as I can tell it was fixed. Being 2.7-only, it's time to be closed anyway :) -- resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python

[issue26992] 64-bit Python 2.7.11 hangs in 64-bit Windows 10 - CMD and Git Bash

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: As this appears to be a 2.7-only issue, I'm going to go ahead and close it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue28551] sysconfig.py wrong _PROJECT_BASE for Py2.7 Windows 64bit PC/VS9.0

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: Sorry I missed this one! This was actually addressed in bpo-30342 (GH-1544), but it would have been fixed 7 months sooner if this one hadn't fallen off my radar. Thanks for the patch anyway! -- resolution: -> fixed stage: -> resolved status: open

[issue30725] Windows installer for 2.7.13 doesn't install pip when installing to C:\Program Files

2020-04-25 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32049] 2.7.14 does not uninstall cleanly if installation was run as SYSTEM account (SCCM)

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: Hi Sven, I'm sorry this issue never got attention before the end of 2.7, but as we have now reached that point I'm going to go ahead and close this issue. I hope it didn't cause you too much trouble! If you can also reproduce this with a current version of

[issue27540] msvcrt.ungetwch() calls _ungetch()

2020-04-25 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue38601] Couldn't able to install multiple python minor version in windows due to EXE script

2020-04-25 Thread Zachary Ware
Change by Zachary Ware : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38601] Couldn't able to install multiple python minor version in windows due to EXE script

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: Lacking followup from the OP, I'm closing the issue. If more information is brought forward later, it can be reopened. -- ___ Python tracker

[issue40380] Errors during make test python 3.8.2

2020-04-25 Thread Dennis Sweeney
Dennis Sweeney added the comment: Thanks for reaching out! This is about test failures, not problems with installation process, correct? I took a look at the failures: == ERROR: test_add_file_after_2107

[issue40388] random.choice integer overflow v3.5.2

2020-04-25 Thread Nicholas Prowse
New submission from Nicholas Prowse : Filename: random.py Location of file: /use/lib/python3.5/random.py Function: random.choice() Input: 40 digit integer Expected output: no crash Actual output: Crash Line number: 253 Error message: "Python int too large to convert to C ssize_t" Traceback: a

[issue40275] test.support has way too many imports

2020-04-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +19033 pull_request: https://github.com/python/cpython/pull/19711 ___ Python tracker ___

[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-04-25 Thread Saaheer Purav
Saaheer Purav added the comment: This is the error message that I get: Failed to import extension: AutoExpand Failed to load extension 'AutoExpand' Traceback (most recent call last): File "C:\Users\saahe\AppData\Local\Programs\Python\Python38-32\lib\idlelib\editor.py", line 1115, in

[issue40388] random.choice integer overflow v3.5.2

2020-04-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: What you are describing is not what we mean by a crash (a core dump or segfault); it sounds like a regular Python exception. Python 3.5 is obsolete and there are no more bug fixes for it except for security fixes. You have not given us enough information

[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-04-25 Thread Tal Einat
Tal Einat added the comment: Saaheer, it seems like you have things from older versions of IDLE in your IDLE config file (in your .idlerc directory). Specifically, the built-in extensions have all been converted to be integral parts of IDLE, and must be removed from your configuration file.

[issue40387] queue example it does not work

2020-04-25 Thread Santiago Blanco
New submission from Santiago Blanco : Copy the example of the next URL: https://docs.python.org/3/library/queue.html#queue.Queue.join and paste into a file, then try to run it. It does not work. I have tried a new one (attachment) that works. -- assignee: docs@python components:

[issue39482] Write 2to3 fixer for collections.abc imports

2020-04-25 Thread Dong-hee Na
Dong-hee Na added the comment: Since https://bugs.python.org/issue40360 is now discussing lib2to3 deprecating. The feature would not be needed. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

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

2020-04-25 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 nosy_count: 5.0 -> 6.0 pull_requests: +19032 pull_request: https://github.com/python/cpython/pull/18245 ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 515fce4fc4bb0d2db97b17df275cf90640017f56 by Serhiy Storchaka in branch 'master': bpo-40275: Avoid importing logging in test.support (GH-19601) https://github.com/python/cpython/commit/515fce4fc4bb0d2db97b17df275cf90640017f56 --

[issue40340] Programming FAQ about "How do I convert a string to a number?" contains a typo

2020-04-25 Thread Kyle Stanley
Change by Kyle Stanley : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40275] test.support has way too many imports

2020-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 16994912c93e8e5db7365d48b75d67d3f70dd7b2 by Serhiy Storchaka in branch 'master': bpo-40275: Avoid importing socket in test.support (GH-19603) https://github.com/python/cpython/commit/16994912c93e8e5db7365d48b75d67d3f70dd7b2 --

[issue40378] ast.parse fails to trigger SyntaxWarning that normal execution does

2020-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Compilation includes the following stages: 1. Tokenizing. 2. Creating CST (concrete syntax tree). 3. Creating AST (abstract syntax tree). 4. Optimizing AST. 5. Building symtable. 6. Generating bytecode. 7. Optimizing bytecode. ast.parse() only includes

[issue40275] test.support has way too many imports

2020-04-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3c8a5b459d68b4337776ada1e04f5b33f90a2275 by Serhiy Storchaka in branch 'master': bpo-40275: Avoid importing asyncio in test.support (GH-19600) https://github.com/python/cpython/commit/3c8a5b459d68b4337776ada1e04f5b33f90a2275 --