[issue41626] port shebang of tools from python2 to python3

2020-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thoughts I wrote on the PR that belong here. (Thanks for the reminder, Éric.): *The use of #! in both stdlib and tools seems rather inconsistent. * Stdlib modules are best run with -m mod so as to run the code with the exact python binary they are meant

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

2020-10-22 Thread Alex Roussel
Alex Roussel added the comment: Hi Irit, Thank you for the response, I'm afraid I'm not allowed to upload the file myself, however the file in question is '2020-10-18-1602979256-http_get_7549.json.gz', which is available at this link https://opendata.rapid7.com/sonar.http/?page=1. It

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

2020-10-22 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +21821 pull_request: https://github.com/python/cpython/pull/22880 ___ Python tracker ___

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

2020-10-22 Thread Christian Heimes
Christian Heimes added the comment: The commit bpo-1635741: Port multiprocessing ext to multiphase init (GH-21378) https://github.com/python/cpython/commit/1d541c25c8019f7a0b80b3e1b437abe171e40b65 introduced a NULL pointer deref: if (py_sem_value_max == NULL) {

[issue42103] [security] DoS (MemError via CPU and RAM exhaustion) when processing malformed Apple Property List files in binary format

2020-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No, with recursive collections all is good. Then I'll just add a NEWS entry and maybe few more tests. -- ___ Python tracker ___

[issue24165] Free list for single-digits ints

2020-10-22 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +21823 pull_request: https://github.com/python/cpython/pull/22884 ___ Python tracker ___

[issue42103] [security] DoS (MemError via CPU and RAM exhaustion) when processing malformed Apple Property List files in binary format

2020-10-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: Serhiy, thanks. Just the change in the format string would fix this particular example. I see you're working on a PR with better validation. The current state of the draft looks good to me, but I haven't checked yet if there are other potential problems

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

2020-10-22 Thread miss-islington
miss-islington added the comment: New changeset dde91b1953c0f0d51c4dde056727ff84b7655190 by Christian Heimes in branch 'master': bpo-1635741: Fix NULL ptr deref in multiprocessing (GH-22880) https://github.com/python/cpython/commit/dde91b1953c0f0d51c4dde056727ff84b7655190 --

[issue42103] [security] DoS (MemError via CPU and RAM exhaustion) when processing malformed Apple Property List files in binary format

2020-10-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +21822 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22882 ___ Python tracker

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-10-22 Thread Inada Naoki
Inada Naoki added the comment: One more idea: BINARY_ADD_INT. Operand is int immediate. This idea can be implemented without opcode cache. I will try it. -- ___ Python tracker

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-10-22 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-10-22 Thread Inada Naoki
Inada Naoki added the comment: FWIW, php7 is about 5x faster than Python on spectral norm benchmark. https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/php-python3.html There two major reasons: * PHP uses scalar type for float and int * PHP uses type-specialized bytecode

[issue24165] Free list for single-digits ints

2020-10-22 Thread Inada Naoki
Inada Naoki added the comment: I updated the patch. I can not run pyperformance for now, because: AssertionError: would build wheel with unsupported tag ('cp310', 'cp310', 'linux_x86_64' I added this config, but it can not solve the problem: ``` $ cat ~/.config/pip/pip.conf [global]

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-10-22 Thread Gold Games
New submission from Gold Games : inspect.getsource ignore comments at the end of the function: for example this function: def matmul_single(A, x, out): from numpy import matmul out[:] = matmul(A, x) # Some comment here... using the inspect library: >>> inspect.getsource(matmul_single)

[issue41835] Speed up dict vectorcall creation using keywords

2020-10-22 Thread Marco Sulla
Marco Sulla added the comment: Another bench: python -m pyperf timeit --rigorous "dict(ihinvdono='doononon', gowwondwon='nwog', bdjbodbob='nidnnpn', nwonwno='vndononon', dooodbob='iohiwipwgpw', doidonooq='ndwnnpnpnp', fndionqinqn='ndjboqoqjb', nonoeoqgoqb='bdboboqbgoqeb',

[issue42103] [security] DoS (MemError via CPU and RAM exhaustion) when processing malformed Apple Property List files in binary format

2020-10-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 22882 fixes problem in _read_ints(), adds validation for string size, and adds many tests for mailformed binary Plists. There may be problems with recursive collections. I'll try to solve them too. -- ___

[issue42116] Inspect library ignore comments at the end of a function (inspect.getsource)

2020-10-22 Thread Gold Games
Change by Gold Games : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2020-10-22 Thread Enji Cooper
Enji Cooper added the comment: Is there something I can do to help move this change along? 8 years is a long time for an issue to be open :(. -- ___ Python tracker ___

[issue42125] linecache cannot get source for the __main__ module with a custom loader

2020-10-22 Thread Eugene Toder
New submission from Eugene Toder : If a module has a loader, linecache calls its get_source() passing __name__ as the argument. This works most of the time, except that the __main__ module has it set to "__main__", which is commonly not the real name of the module. Luckily, we now have

[issue42125] linecache cannot get source for the __main__ module with a custom loader

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

[issue41835] Speed up dict vectorcall creation using keywords

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

[issue41835] Speed up dict vectorcall creation using keywords

2020-10-22 Thread Inada Naoki
Inada Naoki added the comment: Ok. Performance improvement comes from: a. Presizing b. Bypassing some checks in PyDict_SetItem c. Avoiding duplication check. (b) is relatively small so I tried to focus on (a) and (b). See GH-22909. In case of simple keyword arguments, it is 10% faster than

[issue42122] macOS complains about how fonts are accessed

2020-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am sure that this is yet another macOS Catalina+ tcl/tk problem. 3.10 is fine on Mohave. Those complaints must come from macOS in response to 'Client' tk requests. IDLE and tkinter do not use those names. If you want to try to see what tkinter

[issue24165] Free list for single-digits ints

2020-10-22 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-10-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: loewis -> status: closed -> open versions: -Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue24165] Free list for single-digits ints

2020-10-22 Thread Yury Selivanov
Yury Selivanov added the comment: Inada-san, how do you interpret the results? Looks like it's performance-neutral. -- ___ Python tracker ___

[issue42124] FAIL test_asyncio test_sendfile_close_peer_in_the_middle_of_receiving

2020-10-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : == FAIL: test_sendfile_close_peer_in_the_middle_of_receiving (test.test_asyncio.test_sendfile.ProactorEventLoopTests) --

[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies Describes the purpose of the HttpOnly attribute used in PR. -- ___ Python tracker

[issue24165] Free list for single-digits ints

2020-10-22 Thread Inada Naoki
Inada Naoki added the comment: I had suspected that pypeformance just don't have enough workload for non-small int. For example, spectral_norm is integer heavy + some float warkload. But bm_spectral_norm uses `DEFAULT_N = 130`. So most integers are fit into smallint cache. On the othar

[issue6555] distutils config file should have the same name on both platforms and all scopes

2020-10-22 Thread Éric Araujo
Éric Araujo added the comment: Too late to change this in distutils now. -- components: -Distutils2 nosy: +dstufft resolution: accepted -> wont fix stage: -> resolved status: open -> closed versions: -3rd party, Python 2.7, Python 3.1, Python 3.2

[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1

2020-10-22 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Some my observation at https://discuss.python.org/t/differences-between-3-8-and-3-9-in-importing-module/5520 . -- ___ Python tracker ___

[issue8918] distutils test_config_cmd failure on Solaris

2020-10-22 Thread Éric Araujo
Change by Éric Araujo : -- assignee: eric.araujo -> components: -Distutils2 nosy: +dstufft resolution: -> out of date stage: test needed -> resolved status: open -> closed versions: -3rd party ___ Python tracker

[issue26541] Add stop_after parameter to setup()

2020-10-22 Thread Éric Araujo
Éric Araujo added the comment: distutils isn’t improved anymore. This might interest the setuptools project, which uses its copy of distutils. -- nosy: +jaraco -dstufft resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python

[issue12308] Add link to PEP 0 for topical index in wiki

2020-10-22 Thread Éric Araujo
Éric Araujo added the comment: Hi Eric! Are you still interested in this? I notice that the wiki page hasn’t been updated, and it’s also kind of a dry list with no interactivity (search, sort, jump to section, hyperlinks to PEPs). Are you still interested? If yes, do you still think that

[issue17514] Add the license to argparse.py

2020-10-22 Thread Éric Araujo
Éric Araujo added the comment: Agreed with the latest comment! -- nosy: +eric.araujo, rhettinger resolution: -> works for me stage: -> resolved status: open -> closed versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-10-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +21838 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22907 ___ Python tracker

[issue42122] macOS complains about how fonts are accessed

2020-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: On my Airbook, 'python310' was not found; 'python3.10' worked. -- ___ Python tracker ___ ___

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

2020-10-22 Thread Dima Tisnek
Dima Tisnek added the comment: Blaze, I think this needs a concrete proposal: either a patch, or at least a formal example how the new API would be used. Note that there's also async-sig mailing list that's less formal, as well as discuss.python.org to bounce ideas off others. --

[issue24165] Free list for single-digits ints

2020-10-22 Thread Inada Naoki
Inada Naoki added the comment: I heard pyperformance 1.0.0 works and here is the result of PR-22884. $ ./python-master -m pyperf compare_to master.json patched.json -G --min-speed=1 Slower (8): - pathlib: 26.3 ms +- 0.3 ms -> 26.8 ms +- 0.4 ms: 1.02x slower (+2%) - chameleon: 12.8 ms +- 0.1

[issue41567] multiprocessing.Pool from concurrent threads failure on 3.9.0rc1

2020-10-22 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: multiprocessing module used to work multithread environment until https://bugs.python.org/issue35943 merged. I guess we can make multiprocessing thread-safe again if we move local imports to global. Does it make sense? -- nosy: +ishimoto

[issue19394] distutils.core.Extension: empty strings in library_dirs and include_dirs should not be allowed

2020-10-22 Thread Éric Araujo
Éric Araujo added the comment: distutils isn’t improved anymore. -- assignee: eric.araujo -> nosy: +jaraco -tarek resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue38980] Compile libpython with -fno-semantic-interposition

2020-10-22 Thread Petr Viktorin
Petr Viktorin added the comment: I was too eager in reviewing this :( It turns out `-fno-semantic-interposition` is GCC 5.3, so [builds fail on older GCC](https://buildbot.python.org/all/#/builders/96/builds/216). I'm researching how to make this conditional in autotools. -- nosy:

[issue42110] race condition in ThreadChildWatcher (default) and MultiLoopChildWatcher

2020-10-22 Thread Alan Jenkins
Alan Jenkins added the comment: Put the other way, if you wanted to fix this bug in ThreadedChildWatcher, and go as far as allowing cancelling Process.wait(), followed by kill() / send_signal(), then I think you need - * siginterrupt(SIGCHLD, 1) * not to mind about any random C code that

[issue42118] TypeError gives wrong reserved name

2020-10-22 Thread Eric V. Smith
Eric V. Smith added the comment: You've rebound "int" to a string. I think the error message is correct. Here's a simpler case: >>> int = '' >>> int '' >>> int() Traceback (most recent call last): File "", line 1, in TypeError: 'str' object is not callable What do you expect to gain with

[issue38980] Compile libpython with -fno-semantic-interposition

2020-10-22 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +21824 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/22892 ___ Python tracker ___

[issue42057] peephole optimizer bug relating to JUMP_IF_NOT_EXC_MATCH

2020-10-22 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +21825 pull_request: https://github.com/python/cpython/pull/22893 ___ Python tracker ___

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

2020-10-22 Thread Blaze Spinnaker
New submission from Blaze Spinnaker : In jupyter / ipython, other repls, as well as from libraries, asyncio code can be called. To simplify integration, there should be a way for libraries to transparently do the right thing, call await or start a new global running event loop. This can

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

2020-10-22 Thread Blaze Spinnaker
Blaze Spinnaker added the comment: Note that the biggest problem are obviously repls, and there are quite a few (iPython has issues due to it's high coupling with jupyter). Providing a contract for them will ensure consistent support across the ecosystem rather than a hodge podge of barely

[issue42111] Make the xxlimited module an example of best extension module practices

2020-10-22 Thread Dong-hee Na
Dong-hee Na added the comment: I am +1 on this idea. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42118] TypeError gives wrong reserved name

2020-10-22 Thread Jason Schwefel
New submission from Jason Schwefel : The following code gives a "TypeError: 'str' object is not callable" exception: int = '' s = '3500:day' a = s.split(':') i = int(a[0]) Proper exception message should be "TypeError: 'int' object is not callable" Only able to test on 3.8 and 3.9

[issue42086] AST: Document / re-design? the simple constructor nodes from sums

2020-10-22 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: After doing experiments with annotating the operator nodes with position information, it is concluded that it doesn't worth the efforts of changing all occurrences of operators from enum to a struct. Other than that, it was designated that we'll keep this

[issue25655] Python errors related to failures loading DLL's lack information

2020-10-22 Thread Steve Dower
Steve Dower added the comment: Thanks for the PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42057] peephole optimizer bug relating to JUMP_IF_NOT_EXC_MATCH

2020-10-22 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset b52432cb8cd7f5f1fc71ea3b7c0ea11573d504f0 by Mark Shannon in branch 'master': bpo-42057: Add regression test to master. (GH-22893) https://github.com/python/cpython/commit/b52432cb8cd7f5f1fc71ea3b7c0ea11573d504f0 -- nosy: +corona10

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

2020-10-22 Thread Blaze Spinnaker
Change by Blaze Spinnaker : -- versions: +Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue39046] collections.abc.Reversible should not be a subclass of Hashable

2020-10-22 Thread Zac Hatfield-Dodds
Zac Hatfield-Dodds added the comment: I'm closing this as not-a-bug. The way protocols just check methods does make sense (thanks for your comment Guido!), and a later refactoring of the code that prompted this issue (to deal only in concrete classes) dissolved the problem. --

[issue42110] race condition in ThreadChildWatcher (default) and MultiLoopChildWatcher

2020-10-22 Thread Alan Jenkins
Alan Jenkins added the comment: There's one way to fix this in MultiLoopChildWatcher (but not ThreadedChildWatcher). Make sure the waitpid() runs on the same thread that created the subprocess. Prototype:

[issue42111] Make the xxlimited module an example of best extension module practices

2020-10-22 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42086] AST: Document / re-design? the simple constructor nodes from sums

2020-10-22 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +21828 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22896 ___ Python tracker ___

[issue27477] IDLE: Switch search dialogs to ttk widgets, and other refinement

2020-10-22 Thread Mark Roseman
Mark Roseman added the comment: Just noting that the current search dialogs (and others) do not have a ttk.Frame directly inside the toplevel which encloses all other widgets. They therefore still display the mismatched backgrounds on macOS. Given that, should #33987 be reopened? The

[issue25655] Python errors related to failures loading DLL's lack information

2020-10-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +21826 pull_request: https://github.com/python/cpython/pull/22894 ___ Python tracker

[issue25655] Python errors related to failures loading DLL's lack information

2020-10-22 Thread Steve Dower
Steve Dower added the comment: New changeset b6f2fc90409e291822166d74ce7402e0ef4dba91 by Philippe Ombredanne in branch 'master': bpo-25655: Improve Win DLL loading failures doc (GH-22372) https://github.com/python/cpython/commit/b6f2fc90409e291822166d74ce7402e0ef4dba91 --

[issue25655] Python errors related to failures loading DLL's lack information

2020-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +21827 pull_request: https://github.com/python/cpython/pull/22895 ___ Python tracker ___

[issue25655] Python errors related to failures loading DLL's lack information

2020-10-22 Thread Eryk Sun
Eryk Sun added the comment: Steve, the PR that you pushed has the wrong error and error message. I told Philippe in msg377335 that ctypes raises FileNotFoundError with no error code. For example: >>> try: ctypes.CDLL('spam') ... except OSError as e: err = e ... >>> err

[issue25655] Python errors related to failures loading DLL's lack information

2020-10-22 Thread miss-islington
miss-islington added the comment: New changeset 5d8bc65ba5be5742b3a4cc470dfd990512bdaa93 by Miss Skeleton (bot) in branch '3.8': bpo-25655: Improve Win DLL loading failures doc (GH-22372) https://github.com/python/cpython/commit/5d8bc65ba5be5742b3a4cc470dfd990512bdaa93 --

[issue42086] AST: Document / re-design? the simple constructor nodes from sums

2020-10-22 Thread miss-islington
miss-islington added the comment: New changeset b37c994e5ac73268abe23c52005b80cdca099793 by Batuhan Taskaya in branch 'master': bpo-42086: Document AST operator nodes acts as a singleton (GH-22896) https://github.com/python/cpython/commit/b37c994e5ac73268abe23c52005b80cdca099793 --

[issue42035] [C API] PyType_GetSlot cannot get tp_name

2020-10-22 Thread fancitron
fancitron added the comment: True enough. Btw, PyType_FromSpec accepts Py_tp_doc (char *), Py_tp_base (PyTypeObject *), etc ... so to be strictly standard compliant, a union would be necessary. PyType_GetName() sounds great. One "proper" workaround at the moment is

[issue42086] AST: Document / re-design? the simple constructor nodes from sums

2020-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +21829 pull_request: https://github.com/python/cpython/pull/22897 ___ Python tracker ___

[issue25655] Python errors related to failures loading DLL's lack information

2020-10-22 Thread miss-islington
miss-islington added the comment: New changeset f22f874a66d6ddb32fa74ad4325199db7e4c25fd by Miss Skeleton (bot) in branch '3.9': bpo-25655: Improve Win DLL loading failures doc (GH-22372) https://github.com/python/cpython/commit/f22f874a66d6ddb32fa74ad4325199db7e4c25fd --

[issue38980] Compile libpython with -fno-semantic-interposition

2020-10-22 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset c6d7e82d19c091af698d4e4b3623648e259843e3 by Petr Viktorin in branch 'master': bpo-38980: Only apply -fno-semantic-interposition if available (GH-22892) https://github.com/python/cpython/commit/c6d7e82d19c091af698d4e4b3623648e259843e3

[issue42118] TypeError gives wrong reserved name

2020-10-22 Thread Eric V. Smith
Eric V. Smith added the comment: I should point out that this is the same as doing: >>> ''() :1: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma? Traceback (most recent call last): File "", line 1, in TypeError: 'str' object is not callable Except for the

[issue42118] TypeError gives wrong reserved name

2020-10-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Closing as "not a bug". -- nosy: +rhettinger resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I closed this prematurely. Cheryl's PR 11433 converts frames for help and statusbar. My patch also omitted searchbase, perhaps because this I wanted to refactor at the same time. In any case, the macOS appearance bug that motivated Mark's post remains,

[issue42120] Depreciated MACRO of copysign for MSVC

2020-10-22 Thread Erjia Guan
Change by Erjia Guan : -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24165] Free list for single-digits ints

2020-10-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Inada-san, you can run pyperformance with this workaround: python -m pip install pyperformance==1.0.0 We are fixing the error soon after

[issue2190] MozillaCookieJar ignores HttpOnly cookies

2020-10-22 Thread Daniel Lenski
Daniel Lenski added the comment: @terry.reedy, it looks like my PR just needs a core developer to review it. Would you mind taking a look? :-) https://github.com/python/cpython/pull/22798 -- ___ Python tracker

[issue16515] TypeError message incorrect for max() with one keyword arg

2020-10-22 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue42120] Depreciated MACRO of copysign for MSVC

2020-10-22 Thread Zachary Ware
Change by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue38980] Compile libpython with -fno-semantic-interposition

2020-10-22 Thread Petr Viktorin
Change by Petr Viktorin : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue42119] Error when debugging logging.FileHandler subclass __init__ method

2020-10-22 Thread Françoise CONIL
New submission from Françoise CONIL : In pdb, when I hit "a" to see __init__ parameters of a logging.FileHandler subclass, I get an error because __repr__ needs a logging level. The level has been removed from the parameters by configure_handler() when it instanciates the handler. The level

[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg332835 ___ Python tracker ___ ___ Python-bugs-list

[issue14979] pdb doc: Explain how to extend debugger instead of sending readers to the source

2020-10-22 Thread Irit Katriel
Change by Irit Katriel : -- type: -> enhancement versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker

[issue42118] TypeError gives wrong reserved name

2020-10-22 Thread Eric V. Smith
Eric V. Smith added the comment: Unfortunately there's not much that can be done about this. The code that writes that error message only knows about objects, which don't have names, only types and values. -- ___ Python tracker

[issue42115] Caching infrastructure for the evaluation loop: specialised opcodes

2020-10-22 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42118] TypeError gives wrong reserved name

2020-10-22 Thread Jason Schwefel
Jason Schwefel added the comment: >What do you expect to gain with the "int = ''" statement? I did not expect anything. I made a mistake in my initial code and the error message indicated that I rebound 'str'. I could not find where I had used 'str' as a variable name. If it would have said

[issue42120] Depreciated MACRO of copysign for MSVC

2020-10-22 Thread Erjia Guan
New submission from Erjia Guan : At https://github.com/python/cpython/blob/c60394c7fc9cc09b16e9675a3eeb5844b6d8523f/PC/pyconfig.h#L196, the MACRO converts copysign to _copysign. This MACRO is defined 13 years ago and it's really dangerous to define a lower-letter MACRO at this low level.

[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +21830 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22899 ___ Python tracker ___

[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +21831 pull_request: https://github.com/python/cpython/pull/22900 ___ Python tracker ___

[issue25655] Python errors related to failures loading DLL's lack information

2020-10-22 Thread Steve Dower
Steve Dower added the comment: > Steve, the PR that you pushed has the wrong error and error message. Ah whoops. I'll reopen and hopefully someone can fix it up. > The advice to use dumpbin is fine and works well in simple cases. It's only meant as a starting point. It's possible to brute

[issue25655] Python errors related to failures loading DLL's lack information

2020-10-22 Thread Steve Dower
Change by Steve Dower : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-10-22 Thread Brian Kohan
Brian Kohan added the comment: Hi all, I'm experiencing the same issue. I took a look at the is_zipfile code - seems like its not checking the start of the file for the magic numbers, but looking deeper in. I presume because the magic numbers at the start are considered unreliable for some

[issue2350] 'exceptions' import fixer

2020-10-22 Thread Irit Katriel
Irit Katriel added the comment: Updating the versions, though it seems that you may want to close this as rejected based on the discussion. -- keywords: -needs review, patch nosy: +iritkatriel versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3,

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

2020-10-22 Thread Irit Katriel
Irit Katriel added the comment: Updating the versions, but from the discussion I think this can probably be closed as "won't fix". -- nosy: +iritkatriel versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4

[issue33987] IDLE: use ttk.Frame for ttk widgets

2020-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset facb522d44fceaf15de6bc95de1cd680c4621c2a by Cheryl Sabella in branch 'master': bpo-33987: IDLE: Use ttk Frame on doc window and statusbar (GH-11433) https://github.com/python/cpython/commit/facb522d44fceaf15de6bc95de1cd680c4621c2a --

[issue16729] Document how to provide defaults for setup.py commands options

2020-10-22 Thread Éric Araujo
Change by Éric Araujo : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24970] Make distutils.Command an ABC

2020-10-22 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-10-22 Thread Yury Selivanov
Yury Selivanov added the comment: I'm not sure what you're actually proposing, and only have a vague understanding of what you're complaining about. This is perhaps related to https://bugs.python.org/issue33523? If so then maybe leave a comment there? --

[issue38727] setup.py sdist --format=gztar should use (equivalent of) `gzip -n`

2020-10-22 Thread Éric Araujo
Éric Araujo added the comment: Distutils isn’t used much (directly), I think this should be reported to the tools that create sdists, such as setuptools and flit. -- ___ Python tracker

[issue42121] unable to input certain Unicode characters in Text widget

2020-10-22 Thread Xuan Wu
New submission from Xuan Wu : When creating a text editor with tkinter Text widget, I found that some Chinese punctuations cound't be input correctly. When input "(", which is open parenthesis in Chinese, it behaves like a back space. When input ")", close parenthesis in Chinese, it seems

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

2020-10-22 Thread Christopher Marchfelder
Christopher Marchfelder added the comment: @steve.dower Your advice did it, is fixed and green! :) Thank you again -- ___ Python tracker ___

[issue5043] get_msvcr() returns None rather than []

2020-10-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: The claimed bug is that when msc_pos is -1 in the code as posted, 'return []' should be executed, but None is returned instead. When I add 'msc_pos = -1 before the if statement, and call the function, after adding the needed sys import, [] is indeed

  1   2   >