[issue41537] {Save, Save As, Save Copy As} not Working from version 3.8.3

2020-08-12 Thread Poorna VenkataSai
New submission from Poorna VenkataSai : save, Save as, Save Copy As are not responding in IDLE in the scenario created a PYTHON FILE from by renaming the new text document. now i wrote some content and trying to save. but, it's not responding. -- assignee: terry.reedy components:

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-08-12 Thread hai shi
hai shi added the comment: > Py_Finalize() calls _PyUnicode_ClearInterned() which clears interned strings. > Which strings are still alive after Py_Finalize()? Yes.especially those encodings, interpreter leaks much encodings refcount after Py_Finalize(). I am not sure they are corner cases

[issue41534] argparse : allow_abbrev behavior between 3.7 and 3.8

2020-08-12 Thread hai shi
Change by hai shi : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41536] pathlib's Path("NUL:").resolve() throws an error on windows

2020-08-12 Thread Phillip Mackintosh
New submission from Phillip Mackintosh : I'm looking for the equivalent windows functionality to the posix `/dev/null` file, and I discovered `NUL:` This snippet works on a windows OS, proving that it is indeed a writable file: `Path('NUL:').write_text('abcd')` However,

[issue33479] Document tkinter and threads

2020-08-12 Thread Richard Sheridan
Change by Richard Sheridan : -- nosy: +Richard Sheridan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41100] Build failure on macOS 11 (beta)

2020-08-12 Thread Maxime Belanger
Change by Maxime Belanger : -- nosy: +Maxime Belanger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: > Q: How to solve the problem? Making sure that the "total reference count" is zero after Py_Finalize() is a long term project which requires to solve many subproblems: * Convert static types to heap types: bpo-40077 * Somehow related, convert extension

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8ecc0c4d390d03de5cd2344aa44b69ed02ffe470 by Hai Shi in branch 'master': bpo-1635741: Clean sysdict and builtins of interpreter at exit (GH-21605) https://github.com/python/cpython/commit/8ecc0c4d390d03de5cd2344aa44b69ed02ffe470 --

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: > There will have many unicode strs releaks when we calling `Py_Initialize()` > again after `Py_Finalize()`: interned will be cleared in `Py_Finalize()`, but > those unicodes str will still alive all the time. Py_Finalize() calls _PyUnicode_ClearInterned()

[issue41535] platform win32_ver produces incorrect value for release on Windows domain controllers

2020-08-12 Thread John McCrone
New submission from John McCrone : The method platform.win32_ver() produces the client version for the release rather than the server version on a Windows domain controller. This is easy to recreate on 3.8.5. For example, on a Windows 2012 server running as a domain controller, the method

[issue41529] Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: It seems like you're getting the error while running "make". I'm surprised by the sys.path value. Do you have a file called pybuilddir.txt in the current directory? If yes, what does it contain? Can you please try the command: make SHELL="bash -x" What is

[issue40468] IDLE: configdialog tab rearrange

2020-08-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Experiments are good, even if not accepted as is. Python uses American spellings: so 'Colors'. Moving help sources frees up enough vertical space to reduce the pressure to split General. It would again fit vertically on my Mac Airbook. 'Windows' is really

[issue41529] Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

2020-08-12 Thread Zachary Ware
Zachary Ware added the comment: Can you reproduce this with the current release (3.9.0rc1)? Also, how did you call `./configure` and `make`? Adding Łukasz so this is on his radar in case the first answer is affirmative and there's nothing exotic in the second. For the record, I can't

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 423e77d6de497931585d1883805a9e3fa4096b0b by Victor Stinner in branch 'master': bpo-40204: Allow pre-Sphinx 3 syntax in the doc (GH-21844) https://github.com/python/cpython/commit/423e77d6de497931585d1883805a9e3fa4096b0b --

[issue39994] Redundant code in pprint module.

2020-08-12 Thread Fred Drake
Fred Drake added the comment: Ah, good find! It's been so long since the first version of that code, but the implementation was surprisingly nuanced. -- ___ Python tracker

[issue39994] Redundant code in pprint module.

2020-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: bpo-23741 did not change the behavior. The specified code was added specially to preserve the existing behavior. For other base types the condition was like `issubclass(typ, list) and r is list.__repr__`, but for dict it was just `issubclass(typ, dict)`.

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Batuhan Osman Taşkaya
Change by Batuhan Osman Taşkaya : -- nosy: +batuhanosmantaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch nosy: +pablogsal nosy_count: 7.0 -> 8.0 pull_requests: +20978 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21850 ___ Python tracker

[issue40782] AbstactEventLoop.run_in_executor is listed as an async method, but should actually return a Futrue

2020-08-12 Thread Guido van Rossum
Guido van Rossum added the comment: I think it makes sense to remove the `async` from the definition in AbstractEventLoop. If you want to help, you can submit a PR to do it. -- nosy: +gvanrossum ___ Python tracker

[issue41534] argparse : allow_abbrev behavior between 3.7 and 3.8

2020-08-12 Thread r1kk3r
New submission from r1kk3r : I looked into changelog and the source code to see if the behavior was wanted but I was not able to see the source of the issue. import argparse parser = argparse.ArgumentParser(allow_abbrev=True) parser.add_argument('-o', type=str, required=True, dest="bla",

[issue40979] typing module docs: keep text, add subsections

2020-08-12 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset b3ad2ca56afc6a56c9a6e7b419bc05e8e5b15e19 by Guido van Rossum in branch '3.9': [3.9] bpo-40979: refactored typing.rst; (mostly) same content, new sub-sections and ordering (GH-21574) (#21843)

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Matthew Barnett
Matthew Barnett added the comment: I think what's happening is that in 'compiler_dict' (Python/compile.c), it's checking whether 'elements' has reached a maximum (0x). However, it's not doing this after incrementing; instead, it's checking before incrementing and resetting 'elements' to

[issue40563] Support pathlike objects on dbm/shelve

2020-08-12 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +20977 pull_request: https://github.com/python/cpython/pull/21849 ___ Python tracker ___

[issue24783] Import Error (undefined symbol: PyFloat_Type) when Importing math Module on Shared Build

2020-08-12 Thread Zackery Spytz
Zackery Spytz added the comment: Python 2.7 is no longer supported, so I think this issue should be closed. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: This 'fix' introduces another regression by undoing the previous fix in issue 40807 of emitting DeprecationWarning (for '\e', for instance) just once instead of thrice. I suspect that the example of Matthias would fail in a debug build (with

[issue40807] Codeop: Show warnings once during _maybe_compile

2020-08-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 5.0 -> 6.0 pull_requests: +20976 pull_request: https://github.com/python/cpython/pull/21838 ___ Python tracker ___

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +terry.reedy nosy_count: 5.0 -> 6.0 pull_requests: +20975 pull_request: https://github.com/python/cpython/pull/21848 ___ Python tracker ___

[issue39994] Redundant code in pprint module.

2020-08-12 Thread Fred Drake
Fred Drake added the comment: Adding serhiy.storchaka to nosy list since it looks like he introduced the isinstance check on purpose (see bpo-23741). Though bpo-23741 asserts that no behavior was changed with the patch applied then, reading through the change leads me to think this did

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-08-12 Thread hai shi
hai shi added the comment: There will have many unicode strs releaks when we calling `Py_Initialize()` again after `Py_Finalize()`: interned will be cleared in `Py_Finalize()`, but those unicodes str will still alive all the time. Q: How to solve the probleam? A: MAYBE we need share the

[issue39994] Redundant code in pprint module.

2020-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, this code was kept for backward compatibility when the dispatch mapping was added. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue40275] test.support has way too many imports

2020-08-12 Thread hai shi
hai shi added the comment: Hi, victor: About https://bugs.python.org/issue40275#msg369214, shall we continue to improve the libregretest? 1. Running test cases sequential: you have use a mechanism to unload the modules which load in the running test cases stage:

[issue41533] Bugfix: va_build_stack leaks the stack if do_mkstack fails

2020-08-12 Thread Tony
Change by Tony : -- keywords: +patch pull_requests: +20974 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21847 ___ Python tracker ___

[issue41532] Import precedence is broken in some library

2020-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is because module functools is already imported (you can see it in sys.modules), but module tokenize is not. It is likely due to module rlcompleter imported at startup on Linux, but not on Windows. -- nosy: +serhiy.storchaka resolution: -> not

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20973 pull_request: https://github.com/python/cpython/pull/21846 ___ Python tracker ___

[issue41533] Bugfix: va_build_stack leaks the stack if do_mkstack fails

2020-08-12 Thread Tony
New submission from Tony : When calling a function a stack is allocated via va_build_stack. There is a leak that happens if do_mkstack fails in it. -- messages: 375267 nosy: tontinton priority: normal severity: normal status: open title: Bugfix: va_build_stack leaks the stack if

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue41532] Import precedence is broken in some library

2020-08-12 Thread Jinseo Kim
Jinseo Kim added the comment: My environment is Ubuntu 18.04.4 Python version: Python 3.8.0 (default, Oct 28 2019, 16:14:01) [GCC 8.3.0] on linux -- ___ Python tracker

[issue41532] Import precedence is broken in some library

2020-08-12 Thread Irit Katriel
Irit Katriel added the comment: What is your environment - system and python version? I get this on master checkout on windows 10: Running Release|Win32 interpreter... Python 3.10.0a0 (heads/master:46e19b61d3, Aug 12 2020, 18:02:36) [MSC v.1916 32 bit (Intel)] on win32 Type "help",

[issue41524] PyOS_mystricmp advances pointers too far

2020-08-12 Thread William Meehan
Change by William Meehan : -- keywords: +patch pull_requests: +20972 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21845 ___ Python tracker

[issue41532] Import precedence is broken in some library

2020-08-12 Thread Jinseo Kim
Jinseo Kim added the comment: Yes, I restarted and cleared directory before each test. -- ___ Python tracker ___ ___

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41532] Import precedence is broken in some library

2020-08-12 Thread Irit Katriel
Irit Katriel added the comment: Did you restart python before the functools test? -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue41532] Import precedence is broken in some library

2020-08-12 Thread 김진서
New submission from 김진서 : I found this behavior by chance: >>> with open('tokenize.py', 'w') as f: ... f.write("print('This is so sad')") ... >>> import linecache This is so sad >>> path/of/python/Lib/linecache.py: import functools import sys import os import

[issue39994] Redundant code in pprint module.

2020-08-12 Thread Irit Katriel
Irit Katriel added the comment: This change makes a difference in semantics (perhaps a good one) in this case: import pprint class MyDict(dict): def __repr__(self): return 'I do my own thing'*50 if __name__ == '__main__': d=MyDict() for i in range(50): d['a%s'%i]

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +20971 pull_request: https://github.com/python/cpython/pull/21844 ___ Python tracker ___

[issue40949] test_socket altered the execution environment: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-08-12 Thread hai shi
Change by hai shi : -- nosy: +shihai1991 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread STINNER Victor
Change by STINNER Victor : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +3.9regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Miro Hrončok
Change by Miro Hrončok : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39320] Handle unpacking of */** arguments and rvalues in the compiler

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: These changes introduced a regression: bpo-41531 "Python 3.9 regression: Literal dict with > 65535 items are one item shorter". -- nosy: +vstinner ___ Python tracker

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Zbyszek Jędrzejewski-Szmek
Zbyszek Jędrzejewski-Szmek added the comment: Bisect says 8a4cd700a7426341c2074a2b580306d2d60ec839 is the first bad commit. Considering that 0x appears a few times in that patch, that seems plausible ;) -- ___ Python tracker

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41528] Use math module in turtle

2020-08-12 Thread Vedran Čačić
Vedran Čačić added the comment: Well, if you want to exploit Python features in full, I'd suggest cmath as even better library. Turtle position is just a complex numbers, and cmath has direct conversion from and to polar coordinates, which is all that's needed for basic commands. :-)

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Miro Hrončok
Miro Hrončok added the comment: It appears that the 65535 key is missing regardless of the LEN value. -- ___ Python tracker ___ ___

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Zbyszek Jędrzejewski-Szmek
Zbyszek Jędrzejewski-Szmek added the comment: Also reproduces with today's git. -- nosy: +zbysz ___ Python tracker ___ ___

[issue41531] Python 3.9 regression: Literal dict with > 65535 items are one item shorter

2020-08-12 Thread Miro Hrončok
New submission from Miro Hrončok : Consider this reproducer.py: import sys LEN = int(sys.argv[1]) with open('big_dict.py', 'w') as f: print('INTS = {', file=f) for i in range(LEN): print(f'{i}: None,', file=f) print('}', file=f) import big_dict assert

[issue40204] Docs build error with Sphinx 3.0 due to invalid C declaration

2020-08-12 Thread Matthias Klose
Matthias Klose added the comment: 3.9.0 rc1 fails to build the docs with Sphinx 3.2.0, even with setting c_allow_pre_v3 = True c_warn_on_allowed_pre_v3 = False Warning, treated as error: /packages/python/3.9/python3.9-3.9.0~rc1/Doc/c-api/buffer.rst:92:Error in declarator or parameters

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: Thanks tcaswell in this case ;-) -- priority: release blocker -> ___ Python tracker ___ ___

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > Thanks Matthias Bussonnier for the fix. Thank *YOU* for the fix, and the bug report is initially from tcaswell. At least on 3.8 branch this is fixed for me. Just for completeness, this was discovered as in IPython we try to guess whether "enter"

[issue40979] typing module docs: keep text, add subsections

2020-08-12 Thread Guido van Rossum
Change by Guido van Rossum : -- pull_requests: +20970 pull_request: https://github.com/python/cpython/pull/21843 ___ Python tracker ___

[issue41530] zoneinfo: ZoneInfo raises IsADirectoryError instead of ZoneInfoNotFoundError

2020-08-12 Thread Joshua
Joshua added the comment: I'll reopen the PR with an attempted resolution of the OSError related issues however. In my quick testing it seems at least on Linux backports.zoneinfo segfaults when trying `ZoneInfo('__init__.py')` so that might be a larger issue for Paul to look into. --

[issue39584] multiprocessing.shared_memory: MacOS crashes by running attached Python code

2020-08-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: A workaround in the implementation of multiprocessing.SharedMemory is IMHO acceptable, tweaking os.ftruncate less so. Note that a Python script can already cause problems on systems by using APIs as intended (such as using shutil.rmtree on the user's home

[issue40949] test_socket altered the execution environment: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: I tried various commands to reproduce the "test_socket (env changed)" but I failed to find a reliable way to trigger this bug. I ran test.bisect_cmd for 3h, with other commands run in parallel to stress the machine (system load between 8 and 30).

[issue39584] multiprocessing.shared_memory: MacOS crashes by running attached Python code

2020-08-12 Thread Vinay Sharma
Vinay Sharma added the comment: I have 8GB of ram and 128 GB of hard disk. Now, creating a shared memory segment of size 10^12 (1 terabyte) somehow succeeds. Creating a shared memory segment of 10^15 (1 petabyte), mmap (not ftruncate) throws an error stating cannot allocate memory.

[issue40949] test_socket altered the execution environment: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: Oh, by design, NetworkConnectionNoServer.test_create_connection() has a race condition: port = socket_helper.find_unused_port() with self.assertRaises(OSError) as cm: socket.create_connection((HOST, port)) If another process

[issue40949] test_socket altered the execution environment: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: Another error while running "./python -m test test_socket --fail-env-changed -j20 -r -F -w": NetworkConnectionNoServer.test_create_connection() fails with "AssertionError: OSError not raised". 0:01:13 load avg: 69.29 [ 12/1] test_socket failed (1 min 9

[issue40949] test_socket altered the execution environment: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: More logs before testSourceAddress failure: (...) testSmallReadNonBlocking (test.test_socket.UnbufferedFileObjectClassTestCase) ... ok testUnbufferedRead (test.test_socket.UnbufferedFileObjectClassTestCase) ... ok testWriteNonBlocking

[issue41530] zoneinfo: ZoneInfo raises IsADirectoryError instead of ZoneInfoNotFoundError

2020-08-12 Thread Paul Ganssle
Paul Ganssle added the comment: By the way, it might be easiest to start with a PR against backports.zoneinfo, because I have a lot more linting, coverage and format checks set up there: https://github.com/pganssle/zoneinfo -- ___ Python tracker

[issue41530] zoneinfo: ZoneInfo raises IsADirectoryError instead of ZoneInfoNotFoundError

2020-08-12 Thread Paul Ganssle
Paul Ganssle added the comment: I think that `ZoneInfo('__init__.py')` is also a problem, but a slightly different one. That comes from the fact that in order to support `importlib.resources`, each of the zoneinfo subdirectories needs an `__init__.py`, but the ZoneInfo constructor should

[issue41530] zoneinfo: ZoneInfo raises IsADirectoryError instead of ZoneInfoNotFoundError

2020-08-12 Thread Joshua
Joshua added the comment: I had opened a PR which just caught IsADirectoryError and PermissionError but closed it as you'd mentioned that handling PermissionError that way probably would not be the best, and I agree. I can reopen and modify to check path on OSerror if you'd like otherwise feel

[issue40949] test_socket altered the execution environment: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: While running "./python -m test.bisect_cmd test_socket --fail-env-changed -v -o bisect" 6x in parallel (with a different filename for the -o option), I got this error: testSourceAddress (test.test_socket.NetworkConnectionAttributesTest) ... Warning --

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: Thanks Matthias Bussonnier for the fix. The regression should now be fixed. Also, I converted your reproducer into a regression test. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue41530] zoneinfo: ZoneInfo raises IsADirectoryError instead of ZoneInfoNotFoundError

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: Oh, I dislike Roundup UI. I didn't notice that a PR was submitted: PR 21839 (now closed). -- ___ Python tracker ___

[issue41530] zoneinfo: ZoneInfo raises IsADirectoryError instead of ZoneInfoNotFoundError

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: On Linux, converting IsADirectoryError to ZoneInfoNotFoundError is easy. But on Windows, I don't think that converting any PermissionError into a ZoneInfoNotFoundError is a good idea. Maybe if PermissionError happens, we should check if the path is a

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread miss-islington
miss-islington added the comment: New changeset 90eff4ed4445a0fa9d8cdf74c0f86c50ed510dad by Miss Islington (bot) in branch '3.9': bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838) https://github.com/python/cpython/commit/90eff4ed4445a0fa9d8cdf74c0f86c50ed510dad --

[issue41530] zoneinfo: ZoneInfo raises IsADirectoryError instead of ZoneInfoNotFoundError

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: Oh right, 'Pacific' is a directory, not a valid zone, and so ZoneInfoNotFoundError should be raised. I see. Example: $ ./python -m venv env $ env/bin/python -m pip install tzdata $ env/bin/python # ZoneInfoNotFoundError expected, get IsADirectoryError >>>

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread miss-islington
miss-islington added the comment: New changeset afff51fc09993dff1693aacb440221314b163409 by Miss Islington (bot) in branch '3.8': bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838) https://github.com/python/cpython/commit/afff51fc09993dff1693aacb440221314b163409 --

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 369a1cbdee14d9f27356fb3a8bb21e4fde289d25 by Victor Stinner in branch 'master': bpo-41520: codeop no longer ignores SyntaxWarning (GH-21838) https://github.com/python/cpython/commit/369a1cbdee14d9f27356fb3a8bb21e4fde289d25 --

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +20969 pull_request: https://github.com/python/cpython/pull/21841 ___ Python tracker ___

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +20968 pull_request: https://github.com/python/cpython/pull/21840 ___ Python tracker

[issue39584] multiprocessing.shared_memory: MacOS crashes by running attached Python code

2020-08-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: I expect that this is more a problem with how memory management works on macOS, the freeze and crash is likely an indication of eager allocation of memory by the system. It is far from sure if implementing a workaround is feasible, the upper limit for

[issue39584] multiprocessing.shared_memory: MacOS crashes by running attached Python code

2020-08-12 Thread Ned Deily
Change by Ned Deily : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41530] Unhandled exceptions in zoneinfo.ZoneInfo constructor

2020-08-12 Thread Joshua
Joshua added the comment: tzdata was installed as an admin user, however this behaviour was reproducible on a linux installation where for the ZoneInfo.('Pacific') instance an IsADirectoryError would instead be raised. On Wed, Aug 12, 2020 at 9:50 PM STINNER Victor wrote: > > STINNER Victor

[issue40949] test_socket altered the execution environment: threading_cleanup() failed to cleanup 0 threads (count: 0, dangling: 5)

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: PPC64LE RHEL7 Refleaks 3.9: https://buildbot.python.org/all/#/builders/704/builds/87 0:12:25 load avg: 8.94 [242/425/1] test_socket failed (env changed) (2 min 43 sec) -- running: test_decimal (2 min 26 sec), test_peg_generator (12 min 23 sec), test_signal

[issue41530] Unhandled exceptions in zoneinfo.ZoneInfo constructor

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: Hi. It seems like you are running Windows. About the permission error, how did you install tzdata? Did you install it as an admin user and do you run Python as a different user? -- nosy: +vstinner ___ Python

[issue41530] Unhandled exceptions in zoneinfo.ZoneInfo constructor

2020-08-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41530] Unhandled exceptions in zoneinfo.ZoneInfo constructor

2020-08-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +20967 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21839 ___ Python tracker

[issue41530] Unhandled exceptions in zoneinfo.ZoneInfo constructor

2020-08-12 Thread Joshua
New submission from Joshua : Attempting to parse specific keys in zoneinfo.ZoneInfo with tzdata installed will raise unhandled exceptions e.g. on windows >>> import zoneinfo >>> zoneinfo.ZoneInfo('Pacific') PermissionError: [Errno 13] Permission denied: 'C:\\Program

[issue40468] IDLE: configdialog tab rearrange

2020-08-12 Thread E. Paine
E. Paine added the comment: Reflecting on #41522, I decided that it would be best to work on this issue before going any further with that one (partly because it would require us to redo some of the work and also because this issue should have a higher priority). I have put together a

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: I proposed a fix: PR 21838. Would you mind to review it? -- ___ Python tracker ___ ___

[issue41520] codeop: 3.8.5 regression, warnings.simplefilter('error', SyntaxWarning) does not raise.

2020-08-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch nosy: +vstinner nosy_count: 3.0 -> 4.0 pull_requests: +20966 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21838 ___ Python tracker

[issue41455] Python Devguide differs from python docs

2020-08-12 Thread Ned Deily
Ned Deily added the comment: New changeset f3b6f3cd9ac6931ae346cf298fae7b691d5656bb by Miss Islington (bot) in branch '3.7': bpo-41455: Provide a link to how the third generation is collected in the GC docs (GH-21703) (GH-21788)

[issue41475] Make __future__.annotations default 3.10 in What's New 3.7

2020-08-12 Thread Ned Deily
Ned Deily added the comment: New changeset 622d90f65ca9f0a6ddf255a727de003b92dca01d by Miss Islington (bot) in branch '3.8': bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (GH-21833) https://github.com/python/cpython/commit/622d90f65ca9f0a6ddf255a727de003b92dca01d --

[issue41475] Make __future__.annotations default 3.10 in What's New 3.7

2020-08-12 Thread Ned Deily
Ned Deily added the comment: New changeset a8ad127c222456e614b59990f113e93e95593155 by Miss Islington (bot) in branch '3.7': bpo-41475: Fix note in "What's new in 3.7" (GH-21733) (GH-21835) https://github.com/python/cpython/commit/a8ad127c222456e614b59990f113e93e95593155 -- nosy:

[issue33786] @asynccontextmanager doesn't work well with async generators

2020-08-12 Thread Ned Deily
Ned Deily added the comment: Indeed, the backport to 3.7 slipped through the cracks somehow; we should fix that. Thanks for bringing this up! -- resolution: fixed -> stage: resolved -> backport needed status: closed -> open ___ Python tracker

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-12 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: > Should not such changes be widely discussed on the Python-Dev mailing list > before merging? I would prefer avoiding python-dev, since there are many trolls there who like to argue but not try to fix problem. See the recent discussion about the

[issue41521] Replace whitelist/blacklist with allowlist/denylist

2020-08-12 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 0e95bbf08571e98f4b688524efc2dcf20d315d91 by Victor Stinner in branch 'master': bpo-41521, typing: Rename _PROTO_WHITELIST to _PROTO_ALLOWLIST (#21825) https://github.com/python/cpython/commit/0e95bbf08571e98f4b688524efc2dcf20d315d91 --

[issue41529] Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

2020-08-12 Thread Andreas Jung
New submission from Andreas Jung : Building 3.9.0b3 fails on Ubuntu 19 and 20 in same way: ./python -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi Could not find

[issue41528] Use math module in turtle

2020-08-12 Thread Marek Madejski
New submission from Marek Madejski : "Turtle" module is closely related to geometry, which is also covered by "math" (and "cmath") module. Nevertheless, in many places in "turtle" the wheel is being reinvented. Currently, only π and basing trig functions are used. Performance may be improved

  1   2   >