[issue42818] AttributeError: 'zipimporter' object has no attribute 'find_spec'

2021-01-07 Thread Klaus Ethgen
Klaus Ethgen added the comment: I also tested the original bug and it seems to be gone. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue42818] AttributeError: 'zipimporter' object has no attribute 'find_spec'

2021-01-07 Thread Klaus Ethgen
Klaus Ethgen added the comment: You are right. Generally I have the installation on devuan Linux, the unstable tree. But... In 2019-03-13 I started to patch this file as many python scripts started to fail due to the fact that they had the find_spec implemented. This was still true in Apr

[issue42851] Subclassing Enum with ipaddress.IPv4Network/IPv6Network raises TypeError.

2021-01-07 Thread Mariusz Felisiak
Mariusz Felisiak added the comment: Ethan, Thanks for the patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42836] docs: struct: clarify struct caching behaviour

2021-01-07 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +22992 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24164 ___ Python tracker

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: Oh, you’re right about walrus. And I don’t actually understand async generator expressions. This suggests that we definitely need a PEP. :-) -- ___ Python tracker

[issue42798] pip search fails

2021-01-07 Thread Desmond Cheong
Desmond Cheong added the comment: Seems that this is due to PyPI's search API being disabled. https://github.com/pypa/pip/issues/5216#issuecomment-744605466 -- nosy: +desmondcheongzx ___ Python tracker

[issue42818] AttributeError: 'zipimporter' object has no attribute 'find_spec'

2021-01-07 Thread Desmond Cheong
Desmond Cheong added the comment: Could you provide some information about the system you're running this on? I might be wrong, but this does seem like an issue with this copy of setuptools. From the Traceback, it seems that line 2196 of

[issue25457] json dump fails for mixed-type keys when sort_keys is specified

2021-01-07 Thread naught101
naught101 added the comment: I want to do something like this: hashlib.md5(json.dumps(d, sort_keys=True)) So I can check if a dict's contents are the same as a DB version, but I can't guarantee that all the keys are strings, so it breaks, annoyingly. I would very much like the

[issue42865] sysconfig appends CFLAGS to LD

2021-01-07 Thread Victor Lopez
Victor Lopez added the comment: I'm updating this to comply with the GitHub PR policies -- keywords: +patch message_count: 1.0 -> 2.0 pull_requests: +22991 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24163 ___

[issue42865] sysconfig appends CFLAGS to LD

2021-01-07 Thread Victor Lopez
New submission from Victor Lopez : This should not happen as some CFLAGS are exclusive to the compiler and it will break cross-compiling linkers The proposed sysconfig is attached -- components: Distutils files: sysconfig.py messages: 384632 nosy: Greentwip, dstufft, eric.araujo

[issue42762] infinite loop resulted by "yield"

2021-01-07 Thread Xinmeng Xia
Xinmeng Xia added the comment: I get a little confused. So is it a bug in Python 3.5 and 3.6? -- ___ Python tracker ___ ___

[issue42864] Improve error messages regarding unclosed parentheses

2021-01-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +lys.nikolaou stage: patch review -> ___ Python tracker ___ ___ Python-bugs-list

[issue42864] Improve error messages regarding unclosed parentheses

2021-01-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +22988 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24161 ___ Python tracker

[issue42864] Improve error messages regarding unclosed parentheses

2021-01-07 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Consider this file: ``` x = ( ``` The error that we get is: ❯ python ../a.py File "/home/pablogsal/github/python/master/../a.py", line 6 ^ SyntaxError: unexpected EOF while parsin This is quite uninformative of the actual problem, which is

[issue42850] Process hangs when calling urllib.request in a multiprocessing.Process with import of sounddevice package

2021-01-07 Thread Robin Scheibler
Robin Scheibler added the comment: Thank you very much for the reply! I was indeed hesitating where to post the issue. I have now cross-posted in the sounddevice issue tracker. https://github.com/spatialaudio/python-sounddevice/issues/302 I'll update the issue if things progress on that

[issue14678] Update zipimport to support importlib.invalidate_caches()

2021-01-07 Thread Desmond Cheong
Change by Desmond Cheong : -- keywords: +patch nosy: +desmondcheongzx nosy_count: 9.0 -> 10.0 pull_requests: +22987 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24159 ___ Python tracker

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 20:35 de 07/01/21, Terry Reedy escreveu: > On 1/7/2021 4:20 AM, Terry Reedy wrote: >> On 1/7/2021 2:42 AM, Christian Gollwitzer wrote: >>> Am 07.01.21 um 08:29 schrieb Paulo da Silva: >>> Does anybody know why cmd method isn't called when I change the button state (clicking on it) in

[issue42863] Python venv inconsistent folder structure on windows

2021-01-07 Thread Jeff Moguillansky
New submission from Jeff Moguillansky : When creating a virtual environment on windows using venv, the folder structure: "Scripts", "Include", "Lib", is inconsistent with other platforms (e.g. "include", "lib", "bin", etc). This causes various integration issues. For example, suppose we

[issue42862] Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module

2021-01-07 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Short diffstat: 8 files changed, 85 insertions(+), 406 deletions(-) -- ___ Python tracker ___

[issue42848] asyncio produces an unexpected traceback with recursive __getattribute__

2021-01-07 Thread Irit Katriel
Irit Katriel added the comment: So, we have a contact chain of length almost equal to the recursion limit, which is too much to process recursively in python (in c it does work, hence the difference between the outputs of the OP's two scripts). The PR removes recursion from

[issue42848] asyncio produces an unexpected traceback with recursive __getattribute__

2021-01-07 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +22986 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24158 ___ Python tracker ___

Re: primitive password cracker

2021-01-07 Thread Chris Angelico
On Fri, Jan 8, 2021 at 11:31 AM Greg Ewing wrote: > > Another way to approach this problem is using recursion, e.g. > > def find_combinations(items, n, comb, result): >if n == 0: > result.append(comb) >else: > for item in items: >find_combinations(items, n - 1, comb +

[issue42862] Use functools.lru_cache iso. _sqlite.Cache in sqlite3 module

2021-01-07 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Pro: less code, less complexity, improved maintainability Con: minor performance hit PoC here: https://github.com/erlend-aasland/cpython/commits/sqlite-cache $ ./python.exe >>> import sqlite3 >>> con = sqlite3.connect(":memory:") >>>

[issue42861] ipaddress - add ability to get next closet subnet of any prefix size

2021-01-07 Thread Faisal Mahmood
Faisal Mahmood added the comment: Not sure how to edit an issue, but I made a mistake, where I said: "...Calling this method would return an IPv4/v6 address that is the closest possible match..." I meant to say: "...Calling this method would return an IPv4/v6 -NETWORK- that is the closest

Re: primitive password cracker

2021-01-07 Thread Greg Ewing
Another way to approach this problem is using recursion, e.g. def find_combinations(items, n, comb, result): if n == 0: result.append(comb) else: for item in items: find_combinations(items, n - 1, comb + [item], result) words = [] find_combinations(['a', 'b', 'c'], 3, [],

[issue42861] ipaddress - add ability to get next closet subnet of any prefix size

2021-01-07 Thread Faisal Mahmood
New submission from Faisal Mahmood : The ipaddress module in Python is an excellent tool, but I noticed it is missing a feature that I needed several months ago, which is the ability to find the next closest subnet with a specific prefix length. For example, imagine I had a

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread STINNER Victor
STINNER Victor added the comment: > 1) python -m test --verbose test_threading > 2) python -m test --verbose test_embed I ran manually these two tests with cp932 ANSI code page: they now pass with my fix. I also added a regression test to test_multibytecodec.py. Thanks for your quick bug

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 07f2cee93f1b619650403981c455f47bfed8d818 by Victor Stinner in branch 'master': bpo-42846: Convert CJK codec extensions to multiphase init (GH-24157) https://github.com/python/cpython/commit/07f2cee93f1b619650403981c455f47bfed8d818 --

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread STINNER Victor
STINNER Victor added the comment: Ah, if you don't want to change the ANSI code page to cp932 (Japanese language) just to reproduce the issue, you can just set the stdio encoding: - C:\> set PYTHONIOENCODING=cp932 C:\> python t.py|more sys.stdout.encoding='cp1250' TypeError: codec is

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread STINNER Victor
STINNER Victor added the comment: Simpler way to reproduce the issue with t.py script: --- import test.support import sys import _testcapi print(f"{sys.stdout.encoding=}", file=sys.stderr) with test.support.SuppressCrashReport(): _testcapi.run_in_subinterp("pass") --- By default, UTF-8

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread STINNER Victor
STINNER Victor added the comment: Attached PR 24157 should fix the issue. > FAIL: test_daemon_threads_fatal_error > (test.test_threading.SubinterpThreadingTests) This test runs code in a subinterpreter which is run in a subprocess. The problem is not in the code run in the subinterpreter,

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22985 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24157 ___ Python tracker ___

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does not walrus affect the meaning of variable? And await affects the meaning of generator expression. -- ___ Python tracker ___

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread STINNER Victor
STINNER Victor added the comment: I'm working on a fix. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42860] Incompatible types in Python grammar

2021-01-07 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: This is now fixed, Tobias! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42860] Incompatible types in Python grammar

2021-01-07 Thread miss-islington
miss-islington added the comment: New changeset 07dcd86ceed0bd88d1e96dcf53b1de2fea024385 by Lysandros Nikolaou in branch 'master': bpo-42860: Remove type error from grammar (GH-24156) https://github.com/python/cpython/commit/07dcd86ceed0bd88d1e96dcf53b1de2fea024385 -- nosy:

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: It should be sufficient to convert cjkcodecs.h to multi-phase init then? From what I can see, the support modules are state less, right? -- ___ Python tracker

[issue42837] Symbol table incorrectly identifies code as a generator, when 'yield' occurs in an annotation

2021-01-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Well even though I still don't understand 'how this issue is different than issue42725', I don't think you actually fix the symbol table; see this one: https://bugs.python.org/msg383659 Annotations still have side effects on the symbol table (even though

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread STINNER Victor
STINNER Victor added the comment: It took me a while to understand it, the _multibytecodec module itself is fine. The issue comes from the _codecs_jp module which uses the legacy module API: codec = _codecs_jp.getcodec('cp932') -- ___ Python

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the issue on Windows configured in Japanese language: ANSI code page cp932. I managed to reproduce the bug on Linux with attached bug.py -- Added file: https://bugs.python.org/file49727/bug.py ___

[issue42837] Symbol table incorrectly identifies code as a generator, when 'yield' occurs in an annotation

2021-01-07 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42860] Incompatible types in Python grammar

2021-01-07 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +22984 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24156 ___ Python tracker

[issue42860] Incompatible types in Python grammar

2021-01-07 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: +lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42859] smtplib: recipe for certifying message delivery

2021-01-07 Thread Dmitry Goldenberg
Dmitry Goldenberg added the comment: Yes, it's a question which could lend itself well to a documentation issue. I've looked at things like: https://stackoverflow.com/questions/54047021/python-smtplib-how-to-use-disposition-notification-to

[issue42851] Subclassing Enum with ipaddress.IPv4Network/IPv6Network raises TypeError.

2021-01-07 Thread Ethan Furman
Ethan Furman added the comment: New changeset 9ab4dd452287169f08a8cf4d4c68c2139f8de714 by Ethan Furman in branch '3.9': [3.9] bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154) (GH-24155) https://github.com/python/cpython/commit/9ab4dd452287169f08a8cf4d4c68c2139f8de714

[issue42846] Using _multibytecodec module on Windows, test_threading/embed get failure

2021-01-07 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: I'm unable to reproduce this on Windows 10 (amd64). What's your exact locale setting? Are you compiling with HEAD at 0b858cdd5d114f0890b11b6c4d6559d0ceb468ab? -- ___ Python tracker

[issue42850] Process hangs when calling urllib.request in a multiprocessing.Process with import of sounddevice package

2021-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: I would assume it’s some interaction between threads and fork. Have you asked the authors of sound device about this? -- nosy: +gvanrossum ___ Python tracker

[issue42851] Subclassing Enum with ipaddress.IPv4Network/IPv6Network raises TypeError.

2021-01-07 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +22983 pull_request: https://github.com/python/cpython/pull/24155 ___ Python tracker ___

This is a test

2021-01-07 Thread Craig Hatch
I have added you to the EMAIL list, so when I have questions. Just learn for fun. Craig Hatch -- https://mail.python.org/mailman/listinfo/python-list

Re: Class and tkinter problem

2021-01-07 Thread Terry Reedy
On 1/7/2021 4:20 AM, Terry Reedy wrote: On 1/7/2021 2:42 AM, Christian Gollwitzer wrote: Am 07.01.21 um 08:29 schrieb Paulo da Silva: Does anybody know why cmd method isn't called when I change the button state (clicking on it) in this example? I know that this seems a weird class use. But

[issue42851] Subclassing Enum with ipaddress.IPv4Network/IPv6Network raises TypeError.

2021-01-07 Thread Ethan Furman
Ethan Furman added the comment: New changeset a581a868d97f649aedf868a1d27865a10925c73a by Ethan Furman in branch 'master': bpo-42851: [Enum] remove brittle __init_subclass__ support (GH-24154) https://github.com/python/cpython/commit/a581a868d97f649aedf868a1d27865a10925c73a --

[issue42857] Fails to construct paths lead to "python is likely shutting down"

2021-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: You are doing something very evil during finalization here. There’s nothing that can be done reasonably. -- nosy: +gvanrossum resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker

[issue42858] Incorrect return value for os.system() in recognizing import error

2021-01-07 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42860] Incompatible types in Python grammar

2021-01-07 Thread Tobias Kohn
New submission from Tobias Kohn : There seems to be a small type error in the Python grammar in the rule `invalid_parameters`: ``` invalid_parameters: | param_no_default* (slash_with_default | param_with_default+) param_no_default ``` While the `slash_with_default` returns a single

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: I wouldn’t have thought you’d need a PEP for this but if you want to write one that sounds like the right thing. Re: async and walrus: I think those are different, their presence doesn’t affect the meaning of the function like yield. We can’t hope to

[issue42859] smtplib: recipe for certifying message delivery

2021-01-07 Thread Guido van Rossum
Guido van Rossum added the comment: This looks more like a question than an issue. Have you tried stackoverflow or a user forum? -- nosy: +gvanrossum ___ Python tracker ___

[issue42851] Subclassing Enum with ipaddress.IPv4Network/IPv6Network raises TypeError.

2021-01-07 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +22982 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24154 ___ Python tracker ___

[issue42859] smtplib: recipe for certifying message delivery

2021-01-07 Thread Dmitry Goldenberg
New submission from Dmitry Goldenberg : Is there a reliable way to certify (ensure, track) the delivery of an email message when using smtplib? For example: Disposition-Notification-To message header which enables the e-mail reader of the recipient to send confirmation e-mail when the

Re: primitive password cracker

2021-01-07 Thread dn via Python-list
On 08/01/2021 05.52, Bischoop wrote: > On 2021-01-07, Chris Angelico wrote: >> >> True. Unfortunately, it doesn't work, so what you'd have is something >> that can be easily parameterized to not work on other numbers of >> characters too. :) >> > > My bad is I'm kinda maniac and have to know how

[issue42811] Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__

2021-01-07 Thread Brett Cannon
Brett Cannon added the comment: New changeset ca8e96d1edbeb536f58da91e607082463398fce1 by Miss Islington (bot) in branch '3.8': bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24144)

Re: primitive password cracker

2021-01-07 Thread David Kolovratník
I find a parallel to counting useful. Let letters be '0' to '9' and think of manual (in contrast to formatting range(0, 10)) construction of list of strings "" to "" Let's start with . How do you compute the next item? Start looking from its end. I stop here in order to leave space

[issue42811] Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__

2021-01-07 Thread miss-islington
miss-islington added the comment: New changeset 8c3914aef47e6e5a31b48a0b1f165ec3f4dc4c98 by Yair Frid in branch '3.9': [3.9] bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24149)

Re: primitive password cracker

2021-01-07 Thread Bischoop
On 2021-01-07, Bischoop wrote: > On 2021-01-07, Chris Angelico wrote: >> >> True. Unfortunately, it doesn't work, so what you'd have is something >> that can be easily parameterized to not work on other numbers of >> characters too. :) >> > > My bad is I'm kinda maniac and have to know how to, I

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 07:29 de 07/01/21, Paulo da Silva escreveu: > Hi! > > Does anybody know why cmd method isn't called when I change the button > state (clicking on it) in this example? > I know that this seems a weird class use. But why doesn't it work? > Thanks. > > class C: > from tkinter import

Re: primitive password cracker

2021-01-07 Thread Bischoop
On 2021-01-07, David Raymond wrote: > I think you might want to check out itertools.product() > https://docs.python.org/3.9/library/itertools.html#itertools.product Thanks David for contribution I find it very convenient but not knowing how to solve solution without itertools for: for a i :

Re: primitive password cracker

2021-01-07 Thread Bischoop
On 2021-01-07, Chris Angelico wrote: > > True. Unfortunately, it doesn't work, so what you'd have is something > that can be easily parameterized to not work on other numbers of > characters too. :) > My bad is I'm kinda maniac and have to know how to, I know best solution itertool but... I just

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 16:02 de 07/01/21, Peter Otten escreveu: > On 07/01/2021 08:42, Christian Gollwitzer wrote: >> Am 07.01.21 um 08:29 schrieb Paulo da Silva: >> ... > > I recommend that the OP use a more conventional stye and do the setup > outside the class or, better, in an instance of the class. > There

[issue42855] pathlib.exists on Windows raises an exception on URL like/bad input

2021-01-07 Thread Eryk Sun
Eryk Sun added the comment: An alternative would be to add a "strict" parameter that defaults to False. In non-strict mode, map all OSError exceptions to a False return value. In strict mode, use _ignore_error(e) to determine whether to return False or propagate the exception. The question

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 09:20 de 07/01/21, Terry Reedy escreveu: > On 1/7/2021 2:42 AM, Christian Gollwitzer wrote: >> Am 07.01.21 um 08:29 schrieb Paulo da Silva: >> >>> Does anybody know why cmd method isn't called when I change the button >>> state (clicking on it) in this example? >>> I know that this seems a

Re: Class and tkinter problem

2021-01-07 Thread Paulo da Silva
Às 07:42 de 07/01/21, Christian Gollwitzer escreveu: > Am 07.01.21 um 08:29 schrieb Paulo da Silva: > >> Does anybody know why cmd method isn't called when I change the button >> state (clicking on it) in this example? >> I know that this seems a weird class use. But why doesn't it work? >>

Re: Some problem in code execution in python

2021-01-07 Thread Bischoop
On 2021-01-07, Dario Dario wrote: > Sir, I am one of the user of your python program, that is after completion > of installation I got some statement like "you got code execution problem > ". I don't know how to rectify this problem.so please help me to rectify > this problem . > You send me the

Re: Some problem in code execution in python

2021-01-07 Thread David L Neil via Python-list
On 07/01/2021 22.44, Dario Dario wrote: > Sir, I am one of the user of your python program, that is after completion > of installation I got some statement like "you got code execution problem > ". I don't know how to rectify this problem.so please help me to rectify > this problem . > You send me

[issue42513] Socket.recv hangs

2021-01-07 Thread Barney Stratford
Barney Stratford added the comment: Sure. So, I'm using STOMP to connect to a messaging server. STOMP uses heartbeats to detect and close failed connections. The problem was that if the connection fails before the protocol has set up its heartbeats then there's nothing to stop the whole

[issue42855] pathlib.exists on Windows raises an exception on URL like/bad input

2021-01-07 Thread Steve Dower
Steve Dower added the comment: Yeah, I think saying "return True if it provably exists and False if existence cannot be proven (and never raise)" is a good general rule for boolean-returning functions. This definitely raises some edge cases where we can infer from certain error codes that

[issue42513] Socket.recv hangs

2021-01-07 Thread Jakub Stasiak
Jakub Stasiak added the comment: If the edge-case is vaguely socket/file descriptor-related and not application-specific or otherwise secret do you mind sharing what is it? (I'm just curious) -- ___ Python tracker

[issue42513] Socket.recv hangs

2021-01-07 Thread Barney Stratford
Barney Stratford added the comment: Instrumented code shows that the poll is in fact working completely correctly, and I've run into a documented edge-case in an unrelated area. Hence, closing the bug report and cancelling the pull request. -- resolution: -> not a bug stage: patch

Re: Class and tkinter problem

2021-01-07 Thread Peter Otten
On 07/01/2021 08:42, Christian Gollwitzer wrote: Am 07.01.21 um 08:29 schrieb Paulo da Silva: Does anybody know why cmd method isn't called when I change the button state (clicking on it) in this example? I know that this seems a weird class use. But why doesn't it work? Thanks. class C:

Re: Tkinter menu item underline syntax [RESOLVED]

2021-01-07 Thread Rich Shepard
On Wed, 6 Jan 2021, Terry Reedy wrote: 'underline' has nothing to do with looking up the command in self.callbacks. It is a keyword parameter for the add_command method, and is handled like all other values passed by name, and as you did for the other arguments file_menu.add_command(

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-01-07 Thread Christian Heimes
Christian Heimes added the comment: They are impacted. However 3.7.9 and 3.6.8 were the last releases with binaries for Windows and macOS. All subsequent releases are source-only releases. Since we don't release binaries for 3.6 and 3.7 any more, we typically don't update them. --

Re: primitive password cracker

2021-01-07 Thread Chris Angelico
On Fri, Jan 8, 2021 at 2:12 AM Bischoop wrote: > > On 2021-01-07, Chris Angelico wrote: > > This could allow easy to change the number of characters in > combination, just pass n argument to range where n is how many characters. > True. Unfortunately, it doesn't work, so what you'd have is

RE: primitive password cracker

2021-01-07 Thread David Raymond
I think you might want to check out itertools.product() https://docs.python.org/3.9/library/itertools.html#itertools.product import itertools import string passe = 'pass' for p in itertools.product(string.ascii_lowercase, repeat = 4): p = "".join(p) if p == passe: print("Found

Re: primitive password cracker

2021-01-07 Thread Bischoop
On 2021-01-07, Chris Angelico wrote: This could allow easy to change the number of characters in combination, just pass n argument to range where n is how many characters. -- https://mail.python.org/mailman/listinfo/python-list

Re: Class and tkinter problem

2021-01-07 Thread Terry Reedy
On 1/7/2021 2:42 AM, Christian Gollwitzer wrote: Am 07.01.21 um 08:29 schrieb Paulo da Silva: Does anybody know why cmd method isn't called when I change the button state (clicking on it) in this example? I know that this seems a weird class use. But why doesn't it work? Thanks. class C:

Some problem in code execution in python

2021-01-07 Thread Dario Dario
Sir, I am one of the user of your python program, that is after completion of installation I got some statement like "you got code execution problem ". I don't know how to rectify this problem.so please help me to rectify this problem . You send me the solution in this email ID itself . --

Re: Tkinter menu item underline syntax [RESOLVED]

2021-01-07 Thread Terry Reedy
On 1/6/2021 4:17 PM, Terry Reedy wrote: On 1/6/2021 4:03 PM, Rich Shepard wrote: On Thu, 7 Jan 2021, Chris Angelico wrote: Are you sure that this works? It's syntactically valid, but I don't think it means what you think it does. ChrisA, I'm always open to learning. There's no error

[issue42851] Subclassing Enum with ipaddress.IPv4Network/IPv6Network raises TypeError.

2021-01-07 Thread Ethan Furman
Ethan Furman added the comment: That would be due to some changes to try and get `Enum` and `__init_subclass__` to work together. I'll revert those changes. Thank you for the report. -- assignee: -> ethan.furman priority: normal -> high ___

[issue42783] asyncio.sleep(0) idiom is not documented

2021-01-07 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj nosy_count: 5.0 -> 6.0 pull_requests: +22981 stage: backport needed -> patch review pull_request: https://github.com/python/cpython/pull/24153 ___ Python tracker

[issue41837] Upgrade installers to OpenSSL 1.1.1i

2021-01-07 Thread Sebastian Voigt
Sebastian Voigt added the comment: The fix has only be done for 3.8, 3.9 and 3.10. Are 3.7 and 3.6 are not impacted? -- nosy: +squear ___ Python tracker ___

[issue42725] PEP 563: Should the behavior change for yield/yield from's

2021-01-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Should not "await" and "async for" (in comprehesions) and ":=" be forbidden too? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue42852] pprint fails in transformming non-breaking space

2021-01-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: fixed -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42852] pprint fails in transformming non-breaking space

2021-01-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

Re: primitive password cracker

2021-01-07 Thread Bischoop
On 2021-01-07, Chris Angelico wrote: > > I'd recommend having just a string, rather than a list; it'll behave > identically for what you're doing, and it'll be a lot easier to see > when you have all the right letters. > Yes that's definitely better, I've done so. >> mineset= set() >> for a in

[issue42858] Incorrect return value for os.system() in recognizing import error

2021-01-07 Thread STINNER Victor
STINNER Victor added the comment: See also https://docs.python.org/dev/library/sys.html#sys.unraisablehook -- nosy: +vstinner ___ Python tracker ___

[issue19683] test_minidom has many empty tests

2021-01-07 Thread karl
Change by karl : -- pull_requests: +22980 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24152 ___ Python tracker ___

[issue42858] Incorrect return value for os.system() in recognizing import error

2021-01-07 Thread Christian Heimes
Christian Heimes added the comment: The exceptions are ignored (Exception ignored in) on shutdown and therefore don't cause the interpreter to fail with an error code. Unraisable exceptions typically occur when the interpreter is mostly shut down and garbage collection, import or atexit

[issue42513] Socket.recv hangs

2021-01-07 Thread Barney Stratford
Barney Stratford added the comment: The instrumented code froze today, so I'm finally able to probe the bug. Despite what that website said, it's looking like checking the return fron the poll syscall isn't the problem here. I'm probably going to close this bug report as not a bug, but want

Re: Tkinter menu item underline syntax [RESOLVED]

2021-01-07 Thread Rich Shepard
On Thu, 7 Jan 2021, Peter Otten wrote: Spoiler: unless the name 'underline' is defined you get a NameError: NameError: name 'underline' is not defined If it is defined and self.callbacks is a dict you get a TypeError: TypeError: unhashable type: 'slice' because that's what a colon means in a

[issue42855] pathlib.exists on Windows raises an exception on URL like/bad input

2021-01-07 Thread Paul Moore
Paul Moore added the comment: So I guess the key question then is whether Path.exists() should trap exceptions and interpret them as "does not exist" (on all platforms, although it looks like the null character case in Unix has now been fixed). Which doesn't seem unreasonable, I guess.

[issue42855] pathlib.exists on Windows raises an exception on URL like/bad input

2021-01-07 Thread Eryk Sun
Eryk Sun added the comment: > "http:" isn't a valid drive letter, I'd imagine. It's not a valid DOS drive, but that's not the problem. "http://w.org; is parsed as a relative path. The double slashes are replaced by a single backslash, and the Windows API tries to open the path relative to a

EuroPython 2021: Format Poll

2021-01-07 Thread M.-A. Lemburg
We are currently working out the format for this year’s online EuroPython conference. The conference will be run using online conference tools during the week of July 26 - August 1 and we would like to learn about your preferences regarding the overall structure. For this reason, we’re running a

  1   2   >