[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 --

[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 -- _

[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: Docu

[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 --

[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 load_

[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 t

[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.

[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: https://mai

[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 __

[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. >>>

[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):

[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 __

[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 ope

[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 i

[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 _

[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 _

[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 be

[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

[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: https://mai

[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 about

[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 availab

[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

[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() a

[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 API

[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 ___

[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. -- ___ Python

[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: https://mail.py

[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 old

[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 ___ ___ Pyt

[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 https://github.com/indygreg/PyOxidizer/blob/b5aa2b3a96dbd01e9d78857e124f1052f42f86c6/pyemb

[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 in

[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 _

[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

[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

[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 Unsu

[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

[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 -> clos

[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 t

[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 U

[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 (test.test_zipfile.Sto

[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

[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

[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 ___ ___ 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 -

[issue40383] weakref class name are hardcoded in reprs

2020-04-25 Thread OhBonsai
Change by OhBonsai : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue14141] 2.7.2 64-bit Windows library has __impt_Py* for several symbols instead of __imp__Py*

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: As 2.7 is now out of support, I'm going to go ahead and close the issue. -- nosy: +zach.ware resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue23121] pip.exe breaks if python 2.7.9 is installed under c:\Program Files\Python

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

[issue21946] 'python -u' yields trailing carriage return '\r' (Python2 for Windows)

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: It's not entirely clear from a quick read whether this was actually fixed or not (probably?), but as 2.7 is out of support it no longer matters :) -- nosy: +zach.ware resolution: -> out of date status: open -> closed __

[issue19351] python msi installers - silent mode

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: As all versions using the MSI installer are now out of support, I'm closing the issue. -- nosy: +zach.ware resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue40392] Remove deprecated _field_types in typing.NamedTuple

2020-04-25 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : _field_types of typing.NamedTuple was documented as deprecated and to be removed in Python 3.9 in favor of __annotations__ at https://docs.python.org/3/library/typing.html#typing.NamedTuple . Issue where it was deprecated : issue36320 .

[issue25563] Windows 10: _tkinter import fails

2020-04-25 Thread Zachary Ware
Zachary Ware added the comment: With no other context, I'm going to assume this was specific to 2.7, which is now out of support. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue40392] Remove deprecated _field_types in typing.NamedTuple

2020-04-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Sorry for the noise, I didn't check the master branch properly. Closing this as duplicate. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Remove the _field_types attribute of NamedTuple _

[issue25560] Unhandled warning in test_unicode_file

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