[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: For Windows 10.0.17134 (1803) or above why don't we use the format "maj.min.build.ubr" in platform._norm_version (the function that post-processes the version string and then returns the version string in the format "maj.min.build")? -- __

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-04-20 Thread STINNER Victor
Change by STINNER Victor : -- title: urllib.parse should sanitize urls containing ASCII newline and tabs. -> [security] urllib.parse should sanitize urls containing ASCII newline and tabs. ___ Python tracker ___

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-04-20 Thread STINNER Victor
Change by STINNER Victor : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue39432] Distutils generates the wrong export symbol for unicode module names

2021-04-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue43882] [security] urllib.parse should sanitize urls containing ASCII newline and tabs.

2021-04-20 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-43883. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue43883] Making urlparse WHATWG conformant

2021-04-20 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-43882. -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue43318] pdb can't output the prompt message when successfully clear breakpoints by "filename:lineno"

2021-04-20 Thread ZhaoJie Hu
ZhaoJie Hu added the comment: I found a typo in the reproduce step. I'm going to fix it here. The unit test is updated in PR. Now it has some conflicts with the master branch, and I will resolve them soon. The steps to reproduce the bug: Assume the file to be debugged is foo.py(You can use

[issue43878] ./configure fails on Apple Silicon with coreutils uname

2021-04-20 Thread Dustin Rodrigues
Dustin Rodrigues added the comment: In case it changes the calculus on how to proceed, HomeBrew does install coreutils with a "g" prefix -- a user needs to explicitly add the gnubin directory to their path in order for the unprefixed version to take precedence over the Apple-supplied one. h

[issue33178] Add support for BigEndianUnion and LittleEndianUnion in ctypes

2021-04-20 Thread David Goncalves
Change by David Goncalves : -- keywords: +patch nosy: +dpg nosy_count: 6.0 -> 7.0 pull_requests: +24204 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25480 ___ Python tracker __

[issue19023] ctypes docs: Unimplemented and undocumented features

2021-04-20 Thread David Goncalves
Change by David Goncalves : -- nosy: +dpg nosy_count: 11.0 -> 12.0 pull_requests: +24205 pull_request: https://github.com/python/cpython/pull/25480 ___ Python tracker ___ _

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Nick Coghlan
New submission from Nick Coghlan : In the SC submission ticket for PEP 642 (https://github.com/python/steering-council/issues/43 ), Guido indicated he was in favour of the more explicit pattern matching AST changes suggested in that PEP. This ticket covers adapting the pattern matching imple

[issue30898] SSL cert failure running make test during Python 3.6 install

2021-04-20 Thread Christian Heimes
Christian Heimes added the comment: I'm closing the ticket as out of date. Please feel free to reopen the ticket if you can reproduce the problem with a more recent version of Python. -- nosy: +christian.heimes stage: -> resolved status: pending -> closed ___

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-20 Thread Petr Viktorin
Petr Viktorin added the comment: Thanks for linking to the issues/documentation! I see that Py_GetArgcArgv it was exported in python3.def (i.e. stable ABI) in bpo-40910, which got backported to 3.9. And the removal of PyThreadState_DeleteCurrent was reverted: bpo-38266 While we would like t

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Given that the AST is a public interface, I would advise to implement this before beta freeze of 3.10 to avoid making this a breaking change in the future for linters and the like -- nosy: +pablogsal ___ Py

[issue43799] OpenSSL 3.0.0: define OPENSSL_API_COMPAT 1.1.1

2021-04-20 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24206 pull_request: https://github.com/python/cpython/pull/25481 ___ Python tracker ___

[issue43893] typing.get_type_hints does not accept type annotations with leading whitespaces

2021-04-20 Thread Jarry Shaw
New submission from Jarry Shaw : `typing.get_type_hints` does not accept type annotations (in string capsulated form) with leading whitespaces. ``` >>> def foo(arg) -> ' str': ... >>> typing.get_type_hints(foo) Traceback (most recent call last): File "/usr/local/lib/python3.9/typing.py", lin

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-20 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24207 pull_request: https://github.com/python/cpython/pull/25482 ___ Python tracker ___ ___

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-20 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Should we mention PEP 652 in Include/README.rst, now that the PEP is accepted? -- ___ Python tracker ___

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-20 Thread Petr Viktorin
Petr Viktorin added the comment: > Should we mention PEP 652 in Include/README.rst, now that the PEP is accepted? No, we should link to the documentation (when it's written). The PEP is a design document; it'll become outdated. -- ___ Python track

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: Agreed. I had wanted the AST to be part of the PEPs specifically *because* it's a public API, but didn't check until today whether or not the original PEP 634 implementation had been merged as-is, or with a cleaned up AST definition. https://github.com/ncoghla

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: It's specifically the definition of "match_case" in the AST that is affected: match_case = (pattern pattern, expr? guard, stmt* body) pattern = MatchAlways | MatchValue(expr value) | MatchConstant(constant value) | MatchSequence(p

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +Guido.van.Rossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue33025] urlencode produces bad output from ssl.CERT_NONE and friends that chokes decoders

2021-04-20 Thread Ethan Furman
Ethan Furman added the comment: IIUC, the issue is that urlencode( {'cert_reqs': ssl.CERT_NONE} ) no longer produces 'cert_reqs=0' ? -- ___ Python tracker ___

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33025] urlencode produces bad output from ssl.CERT_NONE and friends that chokes decoders

2021-04-20 Thread Christian Heimes
Christian Heimes added the comment: I guess so. We turned CERT_NONE into an IntFlag enum many years ago. urlencode() uses repr to convert integer enums. -- nosy: +christian.heimes ___ Python tracker __

[issue43795] Implement PEP 652 -- Maintaining the Stable ABI

2021-04-20 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24208 pull_request: https://github.com/python/cpython/pull/25483 ___ Python tracker ___ ___

[issue33025] urlencode produces bad output from ssl.CERT_NONE and friends that chokes decoders

2021-04-20 Thread Ethan Furman
Ethan Furman added the comment: Actually, I think it uses str(). An easy fix would be to use format() for all non-bytes objects instead -- the question then becomes how many objects (besides Enums with mixed-in data types) have a different str() vs format() display? -- ___

[issue43893] typing.get_type_hints does not accept type annotations with leading whitespaces

2021-04-20 Thread Jarry Shaw
Change by Jarry Shaw : -- keywords: +patch pull_requests: +24209 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25484 ___ Python tracker ___ _

[issue42422] types.CodeType() has no bytecode verifier

2021-04-20 Thread Sofian Brabez
Sofian Brabez added the comment: It's been a while and I still have no clear guidance from there of what developers want to do. Follow-up on this again to see if requires updates or just close it. -- ___ Python tracker

[issue43878] ./configure fails on Apple Silicon with coreutils uname

2021-04-20 Thread Keith Smiley
Keith Smiley added the comment: I think given that this file seems to be updated occasionally anyways we should still land this. I agree with the sentiment that if this was a super specific fix just for this edge case maybe it wouldn't be worth it. -- ___

[issue43893] typing.get_type_hints does not accept type annotations with leading whitespaces

2021-04-20 Thread Ken Jin
Change by Ken Jin : -- nosy: +gvanrossum, kj, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue43893] typing.get_type_hints does not accept type annotations with leading whitespaces

2021-04-20 Thread Jarry Shaw
Jarry Shaw added the comment: > as discussed in https://bugs.python.org/issue41887 After some additional thoughts, I am thinking that changing the behaviour of ``compile`` in ``'eval'`` mode directly might be a better idea, for consistency all over the builtin functions. Especially that it

[issue43893] typing.get_type_hints does not accept type annotations with leading whitespaces

2021-04-20 Thread Guido van Rossum
Guido van Rossum added the comment: So the question is, whether anyone actually writes `x: ' str'`. Does the fix satisfy a real need? If it does, why don't we change compile(x, ..., 'eval') as you suggested in your second comment? -- ___ Python t

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2021-04-20 Thread Stefan Behnel
Stefan Behnel added the comment: Coming back to this after a while. I would like to get rid of the work-around (read: huge hack) that we have in Cython for this check and thus would ask for the check to be removed in Py3.10. According to the discussion, no-one seemed to remember why it was a

[issue43799] OpenSSL 3.0.0: define OPENSSL_API_COMPAT 1.1.1

2021-04-20 Thread Christian Heimes
Christian Heimes added the comment: New changeset 3309113d6131e4bbac570c4f54175ecca02d025a by Christian Heimes in branch 'master': bpo-43799: Also define SSLv3_method() (GH-25481) https://github.com/python/cpython/commit/3309113d6131e4bbac570c4f54175ecca02d025a -- _

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Brandt Bucher
Brandt Bucher added the comment: Hm, for some reason I was thinking that this was safe to do after the feature freeze. Let's get to it then! Batuhan, perhaps we should change the linked issue for your AST validator PR to this one. That way we can close the old catch-all PEP 634 implementatio

[issue43894] IDLE editor file minor refactoring

2021-04-20 Thread E. Paine
New submission from E. Paine : Despite being large, the PR is mostly trivial changes (e.g. changing indentation). The main changes worth noting (and hence the reason for this issue) are: 1) the renaming of `ResetColorizer` to `reset_colors`, `ResetFont` to `reset_font`, `RemoveKeybindings` to

[issue43894] IDLE editor file minor refactoring

2021-04-20 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +24211 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25485 ___ Python tracker ___ ___

[issue43893] typing.get_type_hints does not accept type annotations with leading whitespaces

2021-04-20 Thread Jarry Shaw
Jarry Shaw added the comment: To me, I discovered this issue because of a typo in my code. And apparently, I do not suggest people will write their type annotations with leading whitespaces purposely. Here’s another thing though: aligning the behaviour of the two builtin functions is good fo

[issue43893] typing.get_type_hints does not accept type annotations with leading whitespaces

2021-04-20 Thread Saiyang Gou
Saiyang Gou added the comment: I think it might be a good idea to just strip leading spaces and tabs for `compile(x, ..., 'eval')` if we want consistent behavior. `compile` might be used in more locations in the whole Python source tree apart from `typing.get_type_hints`. Technically the onl

[issue30800] zlib.compressobj took too much memory on window

2021-04-20 Thread Irit Katriel
Irit Katriel added the comment: It looks like you're not using this API correctly, it doesn't make sense to create 1 compressobj()s. You should create one and then call compress() on it as many times as you need. -- nosy: +iritkatriel resolution: -> not a bug status: open -> p

[issue43895] Unnecessary Cache of Shared Object Handles

2021-04-20 Thread Ian H
New submission from Ian H : While working on another project I noticed that there's a cache of shared object handles kept inside _PyImport_FindSharedFuncptr. See https://github.com/python/cpython/blob/b2b6cd00c6329426fc3b34700f2e22155b44168c/Python/dynload_shlib.c#L51-L55. It appears to be an

[issue43895] Unnecessary Cache of Shared Object Handles

2021-04-20 Thread Ian H
Ian H added the comment: Proposed patch is in https://github.com/python/cpython/pull/25487. -- ___ Python tracker ___ ___ Python-bu

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-20 Thread miss-islington
miss-islington added the comment: New changeset 077a2e76649c2fc49ebb8982b6855bab09a85e8f by Sviatoslav Sydorenko in branch 'master': bpo-43888: Reduce coverage collection timeout to 1h40m in GHA (GH-25471) https://github.com/python/cpython/commit/077a2e76649c2fc49ebb8982b6855bab09a85e8f ---

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2021-04-20 Thread Irit Katriel
Irit Katriel added the comment: The test was disabled for ARM Linux here: https://github.com/python/cpython/commit/e5aefa452b2e3a5a834610cefa1656f36673f686 Does that resolve this issue? -- nosy: +gregory.p.smith, iritkatriel ___ Python tracker

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Also, I would like some more extensive argument or why not having context dependent nodes justifies the extra maintainance cost (I'm not against that of course, and I am sympathetic, but I think this needs some more extensive coverage or why we are do

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Géry
New submission from Géry : This PR updates the page [*Built-in Functions*](https://docs.python.org/3.9/library/functions.html#super) of the Python library documentation: `super` is not a `function` (`isinstance(super, type(lambda: None))` is `False`), it is a `type` (`isinstance(super, type)`

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Géry
Change by Géry : -- keywords: +patch pull_requests: +24212 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25489 ___ Python tracker ___

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: In general, we've decided not to do this. We use function mark-up in the section on builtin functions even though many of these are actually types. We use class markup in other sections because that markup is well suited to listing all the associated met

[issue43804] Add more info about building C/C++ Extensions on Windows using MSVC

2021-04-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: Kindly have a review of my patch -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Adrian Freund
Change by Adrian Freund : -- nosy: +freundTech ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-20 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: I have a patch for this issue. Should I attach it or should I directly open a PR? -- ___ Python tracker ___ ___

[issue42422] types.CodeType() has no bytecode verifier

2021-04-20 Thread STINNER Victor
STINNER Victor added the comment: In terms of security model, usually, if an attacker can execute arbitrary Python code, the game is over. Executing bytecode is the same. Python doesn't provide any tooling to validate bytecode in its stdlib. https://python-security.readthedocs.io/security.ht

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Looking again, it seems to someone has already started applying class markup despite previous decisions not to do so. -- resolution: rejected -> status: closed -> open versions: -Python 3.6, Python 3.7, Python 3.8 ___

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2021-04-20 Thread STINNER Victor
STINNER Victor added the comment: I recently reworked type_new() and PyType_New() in bpo-43770. I wrote documentation for the type_ready_inherit_as_structs() helper function of PyType_Ready(): // For static types, inherit tp_as_xxx structures from the base class // if it's NULL. // // For he

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 on doing this. While class markup has crept into the Built-in Functions section, super() isn't really used this way (people don't subclass it or run isinstance on it). Elsewhere in the docs, all the links to this entry use the markup, :func:`super` w

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Géry
Géry added the comment: > Looking again, it seems to someone has already started applying class markup > despite previous decisions not to do so. Yes, and he forgot super: class bool([x]) class bytearray([source[, encoding[, errors]]]) class bytes([source[, encoding[, errors]]]) class complex

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also, the related text uses callable terminology, "it returns object that ...". -- ___ Python tracker ___

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Géry
Géry added the comment: > Elsewhere in the docs, all the links to this entry use the markup, > :func:`super` which looks nicer in the docs than the class reference. I was suggesting only to update the block Sphinx directive “.. function::” to “.. class::” for defining the signature (so that t

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2021-04-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: given how old this is and how i added that test skip presumably when i setup my first arm buildbot... closing. -- assignee: -> gregory.p.smith resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue43897] Implement support for validation of pattern matching ASTs

2021-04-20 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : ASTs of case clauses for PEP 636 are not validated through PyAST_Validate right now, which might crash the Python interpreter when compiling some trees that doesn't hold the assumptions of the compiler. -- assignee: BTaskaya messages: 391469 nosy:

[issue43897] Implement support for validation of pattern matching ASTs

2021-04-20 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- dependencies: +Make match patterns explicit in the AST ___ Python tracker ___ ___ Python-bugs-list ma

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Batuhan, perhaps we should change the linked issue for your AST validator PR > to this one. That way we can close the old catch-all PEP 634 implementation > issue and keep the discussion focused here. I think it might be better as a separate issue that ha

[issue43897] Implement support for validation of pattern matching ASTs

2021-04-20 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +24213 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24771 ___ Python tracker ___

[issue42128] Structural Pattern Matching (PEP 634)

2021-04-20 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: -23539 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue42128] Structural Pattern Matching (PEP 634)

2021-04-20 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Actually, I didn't see that there are still 2 open linked PRs. I'll wait > until those are merged. I've moved the AST validator to its own separate issue so feel free to close this Brandt! -- ___ Python tracke

[issue43897] Implement support for validation of pattern matching ASTs

2021-04-20 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue43898] Python fails to import .dylib but works when extension is changed to .so

2021-04-20 Thread Ellis trisk-grove
New submission from Ellis trisk-grove : This issue is pretty much summed up by the title. Python does manage to import the library and use it however only when the extension is .so otherwise python cannot find it and fails to import. -- components: macOS messages: 391473 nosy: etriskg

[issue40306] Enhancement request for SSLContext - flag to handle trailing dot in hostname

2021-04-20 Thread Christian Heimes
Christian Heimes added the comment: OpenSSL feature request: https://github.com/openssl/openssl/issues/11560 -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ _

[issue43284] sys.getwindowsversion().platform_version is incorrect

2021-04-20 Thread Steve Dower
Steve Dower added the comment: Opening a PR against the master branch would be ideal. (Make sure you forked from that branch too, or you may see lots of irrelevant changes, which will make it impossible to review.) -- ___ Python tracker

[issue31727] FTP_TLS errors when use certain subcommands

2021-04-20 Thread Christian Heimes
Christian Heimes added the comment: I'm removing the SSL component. The issue here seems to be caused by the way how ftplib use the ssl module, not by a problem in the ssl module itself. -- components: +Library (Lib) -SSL, Windows versions: +Python 3.10, Python 3.9 -Python 3.6, Python

[issue43896] Update the Sphinx directive for super from function to class

2021-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've applied this PR but still am not sure that it makes readers better-off. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2021-04-20 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: ARM != AMD64 (alternative name of x86_64) -- ___ Python tracker ___ ___ Pytho

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2021-04-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 13.0 -> 14.0 pull_requests: +24214 pull_request: https://github.com/python/cpython/pull/25490 ___ Python tracker _

[issue38605] [typing] PEP 563: Postponed evaluation of annotations: enable it by default in Python 3.10

2021-04-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: fixed -> postponed status: closed -> open ___ Python tracker ___ ___ Python-bugs-li

[issue43899] separate builtin function

2021-04-20 Thread David Alvarez Lombardi
New submission from David Alvarez Lombardi : I frequently find myself doing the following for lists, sets, and dicts. passes = [x for x in seq if cond(x)] fails = [x for x in seq if not cond(x)] The proposed function would behave similarly to `filter`, but it would return a tuple of

[issue43900] string comprehension

2021-04-20 Thread David Alvarez Lombardi
New submission from David Alvarez Lombardi : As of now the best way to filter a str is to convert to list, filter, then join back to a str. I think a a string comprehension would be very useful for this. So to get only ascii_lower case chars given this string, s = "a1b2c3d4" I coul

[issue43900] string comprehension

2021-04-20 Thread Zachary Ware
Zachary Ware added the comment: filtered_s = ''.join(c for c in s if c in string.ascii_lowercase) -- nosy: +zach.ware ___ Python tracker ___ __

[issue43900] string comprehension

2021-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please take this to the python-ideas mailing list: https://mail.python.org/mailman3/lists/python-ideas.python.org/ If the idea gains traction, it would likely require a PEP and then this issue can be reopened. -- nosy: +rhettinger resolution: -

[issue41701] Buildbot web page: connection lost after 1 minute, then display "Connection restored" popup

2021-04-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ee, apparently this issue in the buildbot repo may be related: https://github.com/buildbot/buildbot/issues/4078 Could you investigate if we can use this on our PSF server? -- ___ Python tracker

[issue43899] separate builtin function

2021-04-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, here's a recipe from the itertools docs: def partition(pred, iterable): "Use a predicate to partition entries into false entries and true entries" # partition(is_odd, range(10)) --> 0 2 4 6 8 and 1 3 5 7 9 t1, t2 = tee(

[issue43892] Make match patterns explicit in the AST

2021-04-20 Thread Nick Coghlan
Nick Coghlan added the comment: https://www.python.org/dev/peps/pep-0642/#representing-patterns-explicitly-in-the-abstract-syntax-tree covers the rationale for why it is potentially problematic to reuse expression nodes for match patterns: it doesn't semantically align with the fact that pat

[issue43877] Logging Cookbook ambiguity

2021-04-20 Thread Gene Ratzlaff
Gene Ratzlaff added the comment: Agreed, but only to the limits of the buffer - that's what I was getting at when I suggested that limitations should be explained. -- ___ Python tracker

[issue41701] Buildbot web page: connection lost after 1 minute, then display "Connection restored" popup

2021-04-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I'm going to try it our on the server but apparently there are some problems: https://github.com/buildbot/buildbot/issues/5991 -- ___ Python tracker

[issue40137] TODO list when PEP 573 "Module State Access from C Extension Methods" will be implemented

2021-04-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +24215 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/25492 ___ Python tracker ___ ___

[issue43898] Python fails to import .dylib but works when extension is changed to .so

2021-04-20 Thread Ned Deily
Ned Deily added the comment: Can you please give a code snippet of the behavior you believe is incorrect? It is not clear to me what you mean by importing a library. -- ___ Python tracker __

[issue43475] Worst-case behaviour of hash collision with float NaN

2021-04-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +24216 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25493 ___ Python tracker __

[issue42128] Structural Pattern Matching (PEP 634)

2021-04-20 Thread Brandt Bucher
Change by Brandt Bucher : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +24217 pull_request: https://github.com/python/cpython/pull/25494 ___ Python tracker ___ _

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +24218 pull_request: https://github.com/python/cpython/pull/25495 ___ Python tracker ___ _

[issue39194] asyncio.open_connection returns a closed client when server fails to authenticate client certificate

2021-04-20 Thread Christian Heimes
Christian Heimes added the comment: I'm unassigning myself. This seems to be an asyncio-specific behavior. -- assignee: christian.heimes -> components: -SSL versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker

[issue43901] Add an empty annotations dict to all classes and modules

2021-04-20 Thread Larry Hastings
New submission from Larry Hastings : The behavior of the __annotations__ member is wildly different between the three objects (function, class, module) that support it. Many of these differences are minor, but one in particular has been an awful wart for years: classes can inherit __annotati

[issue43901] Add an empty annotations dict to all unannotated classes and modules

2021-04-20 Thread Larry Hastings
Change by Larry Hastings : -- title: Add an empty annotations dict to all classes and modules -> Add an empty annotations dict to all unannotated classes and modules ___ Python tracker __

[issue43901] Add an empty annotations dict to all unannotated classes and modules

2021-04-20 Thread Larry Hastings
Larry Hastings added the comment: Huh. The sample code in my thread got goofed up somewhere along the way--maybe it's my fault, maybe it was done to me by some automated process. Anyway, the example demonstrating classes inheriting annotations was meant to be formatted like this: clas