[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-23 Thread Alex Roussel
Alex Roussel added the comment: The impression I got from reading https://bugs.python.org/issue28494 was that this was fixed in python 3.7 ? Or perhaps as you say it's just a matter of stumbling across the rare files that generate false positives. --

[issue8084] pep-0370 on osx duplicates existing functionality

2020-10-23 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue38443] unavailable --with-universal-archs= macOS confgure options fail cryptically

2020-10-23 Thread Ronald Oussoren
Change by Ronald Oussoren : -- keywords: +patch pull_requests: +21841 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22910 ___ Python tracker _

[issue38443] unavailable --with-universal-archs= macOS confgure options fail cryptically

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've added a PR with a variation of my earlier patch. This version will bail out when specifying "--enable-universalsdk" with a version of Xcode that does not support i386 (the previous patch did not). -- ___ Pyt

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-23 Thread Georges
Georges added the comment: @barry Thank you for your input on the PR. >From what I understood this PR was nearly ready and only missing a small >addition to the documentation which I added. So it took me a bit to go through >it all :-). I actually don't see how *parsedate_to_datetime* would

[issue34394] Descriptors HowTo doesn't mention __set_name__

2020-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: See https://github.com/python/cpython/pull/22906 -- ___ Python tracker ___ ___ Python-bugs-lis

[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Raymond, - What version of macOS are you on? - How did you install python 3.10? Did you use the python.org installer? - What version of Tk is used? (This can be found in the output of `python3.9 -m test.pythoninfo`) --

[issue42126] Optimize BUILD_CONST_KEY_MAP for distinct keys

2020-10-23 Thread Inada Naoki
New submission from Inada Naoki : BUILD_CONST_KEY_MAP can be optimized based on #41835 optimization. 1. compiler checks keys tuple is distinct. 2. Add distinct flag to BUILD_CONST_KEY_MAP oparg To be considered: * Should we use new opcode, instead of flag in oparg? * Is this technique safe? W

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2020-10-23 Thread Petr Viktorin
Petr Viktorin added the comment: Yes, for some cases the ship has sailed. I don't think we can add unions now -- the stable ABI needs to be stable. -- ___ Python tracker ___

[issue9405] Test fix for past crash when calling urllib.getproxies() under OSX with subprocess / particular memory usage

2020-10-23 Thread Ronald Oussoren
Change by Ronald Oussoren : -- resolution: -> out of date stage: test needed -> resolved status: open -> closed ___ Python tracker ___ _

[issue19733] Setting image parameter of a button crashes with Cocoa Tk

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: It looks like the test can be reenabled. System: macOS 10.15, with Python 3.9 from Python.org ``python3.9 -m tkinter.test.test_tkinter.test_widgets`` runs without problems (571 tests, no crash), even if I remove the skip for test_image. Likewise for ``pyth

[issue42126] Optimize BUILD_CONST_KEY_MAP for distinct keys

2020-10-23 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +21842 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22911 ___ Python tracker ___

[issue23534] `test_longdouble` fails on Mac when using system libffi (version 3.1)

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Closing as out of date: - python 2 issue - I don't get this error when using the system libffi (bpo-41100) -- resolution: -> out of date stage: -> resolved ___ Python tracker

[issue28491] Remove bundled libffi for OSX

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: added 41100 as a dependency because that switches to the system libffi (as a side effect of larger changes) -- dependencies: +Build failure on macOS 11 (beta) ___ Python tracker

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The script still fails on macOS 10.15 with python 3.9 (installed from python.org). Interestingly enough: - First run of the script worked without any problems - Subsequent runs failed with various errors: $ python3.9 t.py Got connection from ('127.0.0.1', 6

[issue31359] `configure` script incorrectly detects symbols as available on Mac w/ Xcode 8+

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Added 41100 as a dependency because the active PR for that issue will fix this issue as well. -- dependencies: +Build failure on macOS 11 (beta) ___ Python tracker ___

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-23 Thread Dennis Sweeney
Dennis Sweeney added the comment: This is the approach in the PR: # JUMP_BOTH while ...: if haystack[j + cut] != needle[cut]: # Sunday skip j += table[haystack[j + len(needle)]] continue j += rest_of_the_two_way_algorithm() If I unde

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2020-10-23 Thread Christian Heimes
Christian Heimes added the comment: The demo script uses the same connection socket in two threads. Neither OpenSSL nor Python guarantee that a single SSLSocket object can be used by multiple threads. https://www.openssl.org/blog/blog/2017/02/21/threads/ contains more information about threa

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2020-10-23 Thread Christian Heimes
Christian Heimes added the comment: I'm turning this into a docs bug. -- assignee: christian.heimes -> docs@python components: +Documentation -macOS nosy: +docs@python stage: -> needs patch type: crash -> enhancement versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3

[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: python.org 3.10 mac is still using 8.6.8. It is on IDLE/Python => About -- ___ Python tracker ___ __

[issue40592] `Shutil.which` incosistent with windows's `where`

2020-10-23 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +21843 pull_request: https://github.com/python/cpython/pull/22912 ___ Python tracker _

[issue40592] `Shutil.which` incosistent with windows's `where`

2020-10-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +21844 pull_request: https://github.com/python/cpython/pull/22913 ___ Python tracker ___ __

[issue40592] `Shutil.which` incosistent with windows's `where`

2020-10-23 Thread Steve Dower
Steve Dower added the comment: New changeset da6f098188c9825f10ae60db8987056b3a54c2e8 by Christopher Marchfelder in branch 'master': bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) https://github.com/python/cpython/commit/da6f098188c9825f10ae6

[issue40592] `Shutil.which` incosistent with windows's `where`

2020-10-23 Thread Steve Dower
Steve Dower added the comment: Thanks for the contribution! Looking forward to your next one :) -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.8, Python 3.9 ___

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

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm including a fix for this in the active PR on bpo-41100 -- dependencies: +Build failure on macOS 11 (beta) ___ Python tracker ___ ___

[issue23534] `test_longdouble` fails on Mac when using system libffi (version 3.1)

2020-10-23 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue39825] EXT_SUFFIX inconsistent between sysconfig and distutils.sysconfig (Windows)

2020-10-23 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I know, but what I don't know is if Raymond uses the python.org installer. The initial message seems to indicate he's using a local build ("python.exe"). That will by default pick up the system version of Tk, which is ancient and is known to have problems.

[issue24908] sysconfig.py and distutils.sysconfig.py disagree on directory spelling on Windows

2020-10-23 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue42126] Optimize BUILD_CONST_KEY_MAP for distinct keys

2020-10-23 Thread Inada Naoki
Inada Naoki added the comment: $ ./python -m pyperf timeit --compare-to ~/pyenv/versions/3.10-dev/bin/python '{}' /home/inada-n/pyenv/versions/3.10-dev/bin/python: . 23.5 ns +- 0.2 ns /home/inada-n/work/python/cpython/python: . 22.4 ns +- 0.1 ns Mean

[issue42126] Optimize BUILD_CONST_KEY_MAP for distinct keys

2020-10-23 Thread Mark Shannon
Mark Shannon added the comment: Is this worthwhile? Statically, BUILD_CONST_KEY_MAP represents 0.14% of all bytecode instructions in the standard library, but only 0.03% of the bytecode instructions in functions. Which suggests that dynamically only 1 in 3000 instructions executed is BUILD_

[issue26515] Update extending/embedding docs to new way to build modules in C

2020-10-23 Thread Petr Viktorin
Petr Viktorin added the comment: There is now PEP 630. Still not done enough to move it out of draft status, but usable for converting simple modules. -- ___ Python tracker _

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

2020-10-23 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +21845 pull_request: https://github.com/python/cpython/pull/22915 ___ Python tracker ___ _

[issue42117] asyncio calls from sync/async, better docs or api support

2020-10-23 Thread Blaze Spinnaker
Change by Blaze Spinnaker : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue42117] asyncio calls from sync/async, better docs or api support

2020-10-23 Thread Blaze Spinnaker
Blaze Spinnaker added the comment: Ah, thanks. Looked around for something like that but couldn't find it. Will close this. -- ___ Python tracker ___ __

[issue42126] Optimize BUILD_CONST_KEY_MAP for distinct keys

2020-10-23 Thread Inada Naoki
Inada Naoki added the comment: It is difficult to estimate. Real world applications has different code-style than stdlib. And pyperformance didn't include whole real world applications too. Some application may use dict display in heavy loop. But it is difficult to say how much exactly. One

[issue41835] Speed up dict vectorcall creation using keywords

2020-10-23 Thread Inada Naoki
Inada Naoki added the comment: @Marco Sulla Please take a look at GH-22909. It is simplified version of your PR. And I wrote another optimization based on it #42126. -- ___ Python tracker __

[issue41835] Speed up dict vectorcall creation using keywords

2020-10-23 Thread Mark Shannon
Mark Shannon added the comment: Could we get a pyperformance benchmark run on this please? -- nosy: +Mark.Shannon ___ Python tracker ___ __

[issue42126] Optimize BUILD_CONST_KEY_MAP for distinct keys

2020-10-23 Thread Mark Shannon
Mark Shannon added the comment: It sounds like the root cause is that annotations are repeatedly being computed. We should address the underlying issue, IMO. -- ___ Python tracker __

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: All this needs is a PR filed against latest master that updates Doc/whatsnew/3.9.rst and labeled with needs-backport-3.9. -- nosy: +gvanrossum ___ Python tracker

[issue42127] functools.cached_property possibly disables key-sharing instance dictionaries

2020-10-23 Thread Yonatan Goldschmidt
New submission from Yonatan Goldschmidt : Key-sharing dictionaries, defined by https://www.python.org/dev/peps/pep-0412/, require that any resizing of the shared dictionary keys will happen before a second instance of the class is created. cached_property inserts its resolved result into the

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The active PR on bpo-41100 will make it possible to build the installer on the latest version of macOS (which will be needed to be able to provide support for "Apple Silicon"). IMHO it is not necessary to remove unavailable constants, on some platforms (in

[issue35943] PyImport_GetModule() can return partially-initialized module

2020-10-23 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: After this fix, some functions like multiprocessing.Pool cannot be used in threaded code(https://bugs.python.org/issue41567). importerror-sample.tgz contains simplified code to reproduce the same error without multiprocessing module. Is this an expected beha

[issue42128] Structural Pattern Matching (PEP 634)

2020-10-23 Thread Brandt Bucher
New submission from Brandt Bucher : PEP 634 has not yet been accepted, but we'd like to hit the ground running and get this into alphas as soon as it (hopefully) is. Several people have volunteered to review the implementation, since it's so huge. Other reviews are very welcome, if anybody ha

[issue42128] Structural Pattern Matching (PEP 634)

2020-10-23 Thread Brandt Bucher
Brandt Bucher added the comment: Sorry, just resolving some changes with master. Are you parser people finished breaking my grammar yet? Sheesh. ;) -- ___ Python tracker ___

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: Well, it looks like there is no CONTAINS_OP part under the subtitle "CPython bytecode changes" in master's Doc/whatsnew/3.9.rst Maybe it's some discrepancy? -- ___ Python tracker

[issue42128] Structural Pattern Matching (PEP 634)

2020-10-23 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +21846 pull_request: https://github.com/python/cpython/pull/22917 ___ Python tracker ___ __

[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-23 Thread Mark Roseman
Mark Roseman added the comment: Tal, I gave it a try, I think this is great. For "simple" searches (i.e. what people do most of the time), a search bar is a lot less klunky than bringing up a dialog. Patch seems to work well, would just need a cosmetic update (ttk widgets etc.). Things ma

[issue33051] IDLE: Create new tab for editor options in configdialog

2020-10-23 Thread Mark Roseman
Change by Mark Roseman : -- nosy: +markroseman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Honestly I don't see it in the 3.9 branch either. It seems the whole section mentioned in the closed PR doesn't exist anywhere. Maybe it was reverted for some reason. Let's close this issue. -- resolution: -> out of date stage: patch review -> res

[issue13139] multiprocessing.map skips finally blocks

2020-10-23 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> needs patch versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ __

[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm only Catalina 10.15.7 and am using a local build constructed with: ./configure --with-openssl=$(brew --prefix openssl) && make Perhaps that is using the system Tk and we don't need to worry about this. -- __

[issue41434] IDLE: Option to warn user on "Run Module" if file is not Python source

2020-10-23 Thread Mark Roseman
Mark Roseman added the comment: I like Terry's idea of providing a better error message than just "invalid syntax" when we run something that likely isn't a Python file. There doesn't seem to be any great danger in trying to run any file that would justify a warning beforehand. -- n

[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Could you check "/tmp/py310/bin/python3 -m test.pythoninfo | grep -i tk". If that says your using Tk 8.5 you're almost certainly using the system version. You could also check _tkinter itself: otool -vL /tmp/py310/lib/python3.10/lib-dynload/_tkinter.cpython

[issue42129] Support resources in namespace packages

2020-10-23 Thread Jason R. Coombs
New submission from Jason R. Coombs : In [importlib_resources#68](https://github.com/python/importlib_resources/issues/68), the project identified a deficiency with respect to pkg_resources for resources in namespace packages. The project has since merged support for these packages, slated t

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: It's here https://github.com/python/cpython/blob/3.9/Doc/whatsnew/3.9.rst#cpython-bytecode-changes Just several pixels below -- ___ Python tracker ___

[issue25509] PyImport_ImportModule inaccurately described

2020-10-23 Thread Brett Cannon
Brett Cannon added the comment: The docs for PyImport_ImportModule() is https://docs.python.org/3/c-api/import.html?highlight=pyimport_importmodule#c.PyImport_ImportModule and https://github.com/python/cpython/blob/master/Doc/c-api/import.rst. -- keywords: +easy (C) -easy __

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: And the "What’s New In Python 3.9" page (updated today): https://docs.python.org/3/whatsnew/3.9.html#cpython-bytecode-changes -- ___ Python tracker ___

[issue42130] AsyncIO's wait_for can hide cancellation in a rare race condition

2020-10-23 Thread Taras Voinarovskyi
New submission from Taras Voinarovskyi : Hi, during migration to Python 3.8.6 we encountered a behavior change from previous versions: wait_for ignored the request to cancellation and returned instead. After investigation, it seems to be related to the update in bpo-32751 and is only reproduc

[issue42129] Support resources in namespace packages

2020-10-23 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Hm, I guess my repo is out of date. Sorry. So it is in master? Let's fix it there then. -- resolution: out of date -> stage: resolved -> needs patch status: closed -> open versions: +Python 3.10 ___ Python track

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: The whole CONTAINS_OP stuff is gone in master, but it's still there in 3.9 branch. I don't know why. Any plan to resolve the discrepancy? -- ___ Python tracker _

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: There really shouldn't be any differences between that doc in the 3.9 and master branch (with rare exceptions). Can you post a diff here between the two so we can sort it out? Also can you find the commit where it was added to the 3.9 branch? --

[issue42129] Support resources in namespace packages

2020-10-23 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-10-23 Thread Brett Cannon
Change by Brett Cannon : -- stage: test needed -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue41835] Speed up dict vectorcall creation using keywords

2020-10-23 Thread Marco Sulla
Marco Sulla added the comment: @methane: well, to be honest, I don't see much difference between the two pulls. The major difference is that you merged insertdict_init in dict_merge_init. But I kept insertdict_init separate on purpose, because this function can be used in other future dedic

[issue42122] macOS complains about how fonts are accessed

2020-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm going to mark this as closed, not a bug. If you're not seeing the same result, it is almost certainly an issue with my local build. -- resolution: -> not a bug stage: -> resolved status: open -> closed __

[issue16094] Tuple extraction in a lambda isn't supported by 2to3

2020-10-23 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> wont fix stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40841] Provide mimetypes.sniff API as stdlib

2020-10-23 Thread Dong-hee Na
Dong-hee Na added the comment: I close this issue as rejected! During the sprint, I could hear a lot of opinions from core devs including Guido, Tal, and Christian. The overall conclusion for me is not to add this time. if the mimetypes module is extracted from stdlib to pypi package, we can

[issue614557] LookupError etc. need API to get the key

2020-10-23 Thread Irit Katriel
Change by Irit Katriel : -- versions: -Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue40841] Provide mimetypes.sniff API as stdlib

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Dong-hee, I recommend that you turn this into a 3rd party package on PyPI yourself. That way your effort and code will live on! -- ___ Python tracker _

[issue38870] Expose ast.unparse in the ast module

2020-10-23 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Well, I'm happy to say that 3.9.0 is finally released with the ast.unparse interface. After tens of PRs, I think it is time for us to move on. For all future bugs, please create a new issue and nosy me. Thanks everyone who has participated this journey! --

[issue38870] Expose ast.unparse in the ast module

2020-10-23 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue3760] PEP 3121 --- PyType_Copy is missing

2020-10-23 Thread Petr Viktorin
Petr Viktorin added the comment: The need is covered by PEP 384's PyType_FromSpec (and later additions, the latest being PyType_FromModuleAndSpec). Thanks for closing! -- nosy: +petr.viktorin ___ Python tracker

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2020-10-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Aside: I noticed that on _parseaddr.py:68, there's a bare `return`. That should really be `return None` (EIBTI). Can you fix that in your PR? I think it's confusing to raise both TypeError and ValueError. I suggest we check the `None` return from _parseda

[issue42058] Process not running with args

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: bpo is the issue tracker for patching the python cpython repository. We support running python from system command line terminals and icons that we install, as specified in the CPython docs. Ask questions about running python otherwise on other forums. --

[issue13464] HTTPResponse is missing an implementation of readinto

2020-10-23 Thread Felipe Rodrigues
Change by Felipe Rodrigues : -- nosy: +fbidu nosy_count: 5.0 -> 6.0 pull_requests: +21847 pull_request: https://github.com/python/cpython/pull/22737 ___ Python tracker ___

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2020-10-23 Thread Felipe Rodrigues
Change by Felipe Rodrigues : -- nosy: +fbidu nosy_count: 3.0 -> 4.0 pull_requests: +21848 pull_request: https://github.com/python/cpython/pull/22737 ___ Python tracker ___

[issue42070] Revisit IsoCalendarDate being private from pickle perspective

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the current situation is not a bug, a mismatch between behavior and doc, a change would be an enhancement limited to the next release. -- nosy: +terry.reedy title: I think the rationale to keep IsoCalendarDate private from the pickle perspective s

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've been using the scriptlet below to try to attempt to reproduce the problem. I'm not sure if this matches the way the program of the OP is set up. The scriptlet below works for me without problems (macOS 10.15, Python 3.4 - 3.9). This either means the p

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this issue as "works for me". Please re-open if there is more information on how to reproduce the problem. -- resolution: -> works for me stage: -> resolved status: open -> closed type: -> behavior

[issue42074] setup error on windows

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for attaching the log instead of including it inline. But when you reply by email, please delete the message you are responding too, as it duplicates the original already on the web page. The first error in the log is a failure to make a restore p

[issue40841] Provide mimetypes.sniff API as stdlib

2020-10-23 Thread Tal Einat
Tal Einat added the comment: > Dong-hee, I recommend that you turn this into a 3rd party package on PyPI > yourself. +1 -- ___ Python tracker ___ ___

[issue41101] Support "arm64" in Mac/Tools/pythonw

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: This change is part of the active PR in #41100. Therefore closing this issue. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed superseder: -> Build failure on macOS 11 (beta) type: -> enhancement ___

[issue41100] Build failure on macOS 11 (beta)

2020-10-23 Thread Ronald Oussoren
Change by Ronald Oussoren : -- pull_requests: +21849 pull_request: https://github.com/python/cpython/pull/21114 ___ Python tracker ___ _

[issue42075] Verbose/confusing default format on warnings

2020-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: An application *can* change warnings. See lib/idlelib/run for an example. Library code should not make changes as they will be global or overwritten. A project that is both can restrict the changes to when run as main module. -- nosy: +terry.reedy

[issue34394] Descriptors HowTo doesn't mention __set_name__

2020-10-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 -Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-23 Thread Tal Einat
Tal Einat added the comment: > Why would having all 'a's on a page light up when I type 'a' be a plus? The auto-highlighting could be disabled for 1-2 character search queries, or delayed for a bit to allow typing to continue. I find auto-highlighting very useful when I'm looking for "where

[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-23 Thread Tal Einat
Tal Einat added the comment: Thanks Mark, your feedback is greatly appreciated! -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue41835] Speed up dict vectorcall creation using keywords

2020-10-23 Thread Marco Sulla
Marco Sulla added the comment: @Mark.Shannon I tried to run pyperformance, but wheel does not work for Python 3.10. I get the error: AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'linux_x86_64') -- ___ Python tracker

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2020-10-23 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I've narrowed down the traverse problems to Py_VISIT(state->CacheType). Suspecting this has to do with the cyclic references in cache/connection. Preliminary tests with GC tracking `cache->factory` look promising, but this is a part of the C API that

[issue40592] `Shutil.which` incosistent with windows's `where`

2020-10-23 Thread miss-islington
miss-islington added the comment: New changeset c437fe39cf5318f27f3381a983fbf320f65064bc by Miss Skeleton (bot) in branch '3.9': [3.9] bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) (GH-22912) https://github.com/python/cpython/commit/c437fe39

[issue40592] `Shutil.which` incosistent with windows's `where`

2020-10-23 Thread miss-islington
miss-islington added the comment: New changeset 8b4842b7a830299870067bba59f53529b13647a2 by Miss Skeleton (bot) in branch '3.8': [3.8] bpo-40592: shutil.which will not return None anymore if ; is the last char in PATHEXT (GH-20088) (GH-22913) https://github.com/python/cpython/commit/8b4842b7

[issue42127] functools.cached_property possibly disables key-sharing instance dictionaries

2020-10-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Essentially it means that types using cached_property are less > likely to enjoy the benefits of shared keys. I don't think anything can be done about it. @cached_property and key-sharing dicts are intrinsically at odds with one another. Likewise, @cac

[issue42070] Revisit IsoCalendarDate being private from pickle perspective

2020-10-23 Thread Paul Ganssle
Paul Ganssle added the comment: Even if it were accidental (and it wasn't — it was actually somewhat difficult to achieve), I'd still argue for not changing it in 3.9, because it would mean that pickles created in 3.9.(n+1) would not be readable in 3.9.n. Still, I don't think I'd be convinced

[issue42131] [zipimport] Update zipimport to use specs

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : zipimport only supports old PEP 302 APIs and not PEP 451 module specs (i.e. it uses load_module() instead of create_module()/exec_module(), find_mdoule() instead of find_spec()). Uses of both load_module() and find_module() are documented as deprecated for

[issue42070] Revisit IsoCalendarDate being private from pickle perspective

2020-10-23 Thread Paul Ganssle
Paul Ganssle added the comment: I'm glad that Terry brought up documentation, though, because I realized that this is not a documented behavior: https://docs.python.org/3/library/datetime.html#datetime.date.isocalendar We should maybe document it? Though if we document it it might be conside

[issue42132] Use specs instead of just __loader__ in C code

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : _warnings.c, pylifecycle.c, and pythonrun.c all either use or set `__loader__` but without also falling back on `__spec__`. -- components: Interpreter Core messages: 379483 nosy: brett.cannon priority: normal severity: normal status: open title: Use s

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Weiliang Li
Weiliang Li added the comment: The diff is here: https://gist.github.com/kigawas/c0c3900e5f56552f13160c7989612c28 Looks like it is not trivial. And the commit at branch 3.9 is: https://github.com/python/cpython/commit/9cf6752276e6fcfd0c23fdb064ad27f448aaaf75#diff-ec874d66bbcf13046b9928aa371

[issue41950] Typo in Python 3.9 what's new page

2020-10-23 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, I see. Łukasz (@ambv) prepared the 3.9.0 release and didn't merge his changes into master yet. I'll contact him. -- nosy: +lukasz.langa ___ Python tracker ___

  1   2   >