[issue43134] (list have item) instate (item in list)

2021-02-07 Thread Masoud Azizi
Change by Masoud Azizi : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11717] conflicting definition of ssize_t in pyconfig.h

2021-02-07 Thread Jozef Grajciar
Change by Jozef Grajciar : -- nosy: +JoeyGrajciar nosy_count: 7.0 -> 8.0 pull_requests: +23271 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24479 ___ Python tracker

[issue43143] Allow multiple assignment (i.e. tuple on LHS) in walrus operator

2021-02-07 Thread Paul Sokolovsky
Paul Sokolovsky added the comment: Thanks. I would like to put this ticket in the context of other grammar-related tickets/elaboration for the assignment operator: https://bugs.python.org/issue42316 - allow foo[a:=1] instead of foo[(a:=1)] https://bugs.python.org/issue42374 - allow (c := i

[issue43134] (list have item) instate (item in list)

2021-02-07 Thread Masoud Azizi
Masoud Azizi added the comment: powerful languages always reduces multi-lines to one line. like python than make it ease to say a,b=1,3 and now we shroud have a command to say that i want to search in some one that i know him but still i did not know what i want to search I'm waiting to get

[issue43143] Allow multiple assignment (i.e. tuple on LHS) in walrus operator

2021-02-07 Thread Paul Sokolovsky
Change by Paul Sokolovsky : -- nosy: +lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43134] (list have item) instate (item in list)

2021-02-07 Thread Masoud Azizi
Masoud Azizi added the comment: English is a powerful language too. In English we have just one way to say someone have something too. there is one way to say that are you have this or not cuz of that: in this one line simple code we check the search keyword after all 10 inputs

[issue43161] Taking sum of massive list comprehension results in total system crash.

2021-02-07 Thread George
George added the comment: Thanks Christian for the solutions. I am guessing that since it is my entire machine that crashes, and python is not simply killed for requesting so much memory, that this is an operating system problem. Should I submit this as a bug to the kernel project then?

[issue43161] Taking sum of massive list comprehension results in total system crash.

2021-02-07 Thread Christian Heimes
Christian Heimes added the comment: You are using a list comprehension that consumes a LOT of memory very fast. The line requires more physical RAM than available on a typical user system. This causes your computer to become unresponsive to input. You can rewrite tie list comprehension as

[issue43161] Taking sum of massive list comprehension results in total system crash.

2021-02-07 Thread George
New submission from George : I tried running the following command in the interpreter, and without fail it will completely crash my entire computer. Python 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux Type "help", "copyright", "credits" or

[issue43160] argparse: add extend_const action

2021-02-07 Thread hai shi
Change by hai shi : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43160] argparse: add extend_const action

2021-02-07 Thread Tony Lykke
Change by Tony Lykke : -- keywords: +patch pull_requests: +23269 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24478 ___ Python tracker ___

[issue43160] argparse: add extend_const action

2021-02-07 Thread Tony Lykke
New submission from Tony Lykke : I submitted this to the python-ideas mailing list early last year: https://mail.python.org/archives/list/python-id...@python.org/thread/7ZHY7HFFQHIX3YWWCIJTNB4DRG2NQDOV/. Recently I had some time to implement it (it actually turned out to be pretty trivial),

[issue40692] Adjust test_concurrent_futures to run more of its tests if multiprocessing.synchronize is missing

2021-02-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40692] Adjust test_concurrent_futures to run more of its tests if multiprocessing.synchronize is missing

2021-02-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset bf2e7e55d7306b1e2fce7dce767e8df5ff42cf1c by Asheesh Laroia in branch 'master': bpo-40692: Run more test_concurrent_futures tests (GH-20239) https://github.com/python/cpython/commit/bf2e7e55d7306b1e2fce7dce767e8df5ff42cf1c --

[issue42269] Add ability to set __slots__ in dataclasses

2021-02-07 Thread Paul Bryan
Change by Paul Bryan : -- nosy: +pbryan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43159] pathlib with_suffix() should accept suffix not start with dot

2021-02-07 Thread JiKwon Kim
New submission from JiKwon Kim : Currently pathlib with_suffix() function only accepts suffix starts with dot("."). Consider this code; some_pathlib_path.with_suffix("jpg") This should change suffix to ".jpg", not raising ValueError. -- components: Library (Lib) messages: 386612

[issue43147] Remove mention of "subcontrary mean" from the docs

2021-02-07 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43147] Remove mention of "subcontrary mean" from the docs

2021-02-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 30a8b2839646c849371c7f8411132571cd8bf17c by Raymond Hettinger in branch 'master': bpo-43147: Remove archaic terminology. (GH-24462) https://github.com/python/cpython/commit/30a8b2839646c849371c7f8411132571cd8bf17c --

[issue32509] doctest syntax ambiguity between continuation line and ellipsis

2021-02-07 Thread Jason R. Coombs
Jason R. Coombs added the comment: Today I encountered another situation where it would be convenient to allow an ellipsis at the beginning of the syntax: >>> pathlib.Path('abc') ...Path('abc') Because pathlib.Path resolves to `PosixPath` and `WindowsPath` depending on the platform, it

[issue43151] is with literals in 3.8 release

2021-02-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Terry, this may be an IDLE issue, can you confirm whether or not the difference in behaviour is intentional? -- nosy: +terry.reedy resolution: not a bug -> stage: resolved -> status: closed -> open ___ Python

[issue43157] Bug in methods of creating the 2d list

2021-02-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: There is also an FAQ about this: https://docs.python.org/3/faq/programming.html#how-do-i-create-a-multidimensional-list See also: https://docs.python.org/3/faq/programming.html#why-did-changing-list-y-also-change-list-x By the way, for future bug reports,

[issue43158] uuid won't build when libuuid is installed in a non-standard place

2021-02-07 Thread Larry Hastings
New submission from Larry Hastings : I'm building Python for a mildly-embedded ARM system. The system is running Linux, but doesn't have a native toolchain installed. So I'm building in a Docker container using a native toolchain (virtualizing the CPU). The toolchain I'm given has a bunch

[issue43157] Bug in methods of creating the 2d list

2021-02-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is not a bug, it is working correctly, as designed. List multiplication does not *copy* the list, it replicates the reference to the same list object. So [[0]]*5 does not make five different sublists, but the same list repeated five times. Exactly the

[issue36028] Integer Division discrepancy with float

2021-02-07 Thread استاذ بشير كهربائي
Change by استاذ بشير كهربائي : -- nosy: +ba5367125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42982] Update suggested number of iterations for pbkdf2_hmac()

2021-02-07 Thread Illia Volochii
Illia Volochii added the comment: Clock rate is not the only indicator. Some new instructions supporting SHA were introduced during the last decade. https://software.intel.com/content/www/us/en/develop/articles/intel-sha-extensions.html

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Grégory Starck added the comment: I filled the PR https://github.com/python/cpython/pull/24476 feel free to comment. -- ___ Python tracker ___

[issue43157] Bug in methods of creating the 2d list

2021-02-07 Thread sandeep kumar
sandeep kumar added the comment: def generateMatrix(A): d=A-1 data=1 B=[[0]*A]*A for l in range(int(A/2)): i=l j=l for a in range(d): B[i][j]=data print("{0}:{1}:{2}".format(i,j,B[i][j]),end=" ") data+=1

[issue43157] Bug in methods of creating the 2d list

2021-02-07 Thread sandeep kumar
Change by sandeep kumar : -- title: Bug in methods of creating the list -> Bug in methods of creating the 2d list ___ Python tracker ___

[issue43157] Bug in methods of creating the list

2021-02-07 Thread sandeep kumar
New submission from sandeep kumar : def generateMatrix(A): d=A-1 data=1 B=[[0]*A]*A for l in range(int(A/2)): i=l j=l for a in range(d): B[i][j]=data print("{0}:{1}:{2}".format(i,j,B[i][j]),end=" ") data+=1

[issue43149] Misleading error message for except with missing parens (3.10.a5)

2021-02-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43149] Misleading error message for except with missing parens (3.10.a5)

2021-02-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 206cbdab16cb054e859597a562e2f6ab35e99766 by Pablo Galindo in branch 'master': bpo-43149: Improve error message for exception group without parentheses (GH-24467)

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Change by Grégory Starck : -- keywords: +patch pull_requests: +23268 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24476 ___ Python tracker ___

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-07 Thread Barry Alan Scott
Barry Alan Scott added the comment: I happy with your names. I think they are better then my version. -- ___ Python tracker ___

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-07 Thread Matthew Barnett
Matthew Barnett added the comment: Sorry to bikeshed, but I think it would be clearer to keep the version next to the "python" and the "setup" at the end: python-3.10.0a5-win32-setup.exe python-3.10.0a5-win64-setup.exe -- nosy: +mrabarnett ___

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Change by Grégory Starck : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-07 Thread Barry Alan Scott
New submission from Barry Alan Scott : New users of Python on Windows frequently confuse the Python installation program with Python itself. They also can end up with the wrong 32 or 64 bit version. I suggest that the installation program name is changed to include "setup" in its name. This

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Grégory Starck added the comment: problem seems to/could be in /usr/lib/python3.8/email/base64mime.py ``` def body_encode(s, maxlinelen=76, eol=NL): r"""Encode a string with base64. Each line will be wrapped at, at most, maxlinelen characters (defaults to 76 characters).

[issue41402] email: ContentManager.set_content calls nonexistent method encode() on bytes

2021-02-07 Thread Johannes Reiff
Johannes Reiff added the comment: Could someone comment on the way forward? Or ideally just merge my PR (it was approved on GitHub)? I am still very much interested in this bug getting fixed. -- ___ Python tracker

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-07 Thread Barry Alan Scott
New submission from Barry Alan Scott : When using the limited API PyCMethod_New is not defined in python3.lib. This leads to a link error. This error is in 3.9 and 3.10a5 Discovered when I improved the PyCXX test suite. Example output: Link obj\simple.pyd cl /nologo /W4 /LD /Zi /MT

[issue43125] Trying To Concatenate Bytes and String in SMTPLIB

2021-02-07 Thread Grégory Starck
Grégory Starck added the comment: I reproduced directly. by using a valid smtp server. -- nosy: +g.sta...@gmail.com ___ Python tracker ___

[issue43065] Delegating to thread and process deadlocks

2021-02-07 Thread doublex
Change by doublex : -- title: Delegating to thread and process stucks in 3.9.1 -> Delegating to thread and process deadlocks ___ Python tracker ___

[issue43065] Delegating to thread and process stucks in 3.9.1

2021-02-07 Thread doublex
Change by doublex : -- components: +Library (Lib) -Interpreter Core title: 'concurrent.futures' stucks in 3.9.1 -> Delegating to thread and process stucks in 3.9.1 ___ Python tracker

[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-02-07 Thread Julian Berman
Change by Julian Berman : -- nosy: +Julian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43154] code.InteractiveConsole can crash if sys.excepthook is broken

2021-02-07 Thread Carl Friedrich Bolz-Tereick
New submission from Carl Friedrich Bolz-Tereick : When using code.InteractiveConsole to implement a Python shell (like PyPy is doing), having a broken sys.excepthook set can crash the console (see attached terminal log). Instead, it should catch errors and report then ignore them (using

[issue43151] is with literals in 3.8 release

2021-02-07 Thread Gary Litvin
Gary Litvin added the comment: I noticed it in IDLE 3.8. I installed 3.8 because it is a fairly recent release described as "stable." Thanks to everyone for considering this. At 03:41 AM 2/7/2021, you wrote: >Dennis Sweeney added the comment: > >I think the strangeness is happening because

[issue16781] execfile/exec execution in other than global scope uses locals(), leading to undefined behavior

2021-02-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 863eb7170b3017399fb2b786a1e3feb6457e54c2 by Miss Islington (bot) in branch '3.9': bpo-16781: In 'exec' doc, add 'nonlocal' to 'yield' and 'return' (GH-2446) https://github.com/python/cpython/commit/863eb7170b3017399fb2b786a1e3feb6457e54c2

[issue43132] Incorrect handling of PyObject_RichCompareBool() in the _zoneinfo module

2021-02-07 Thread Zackery Spytz
Zackery Spytz added the comment: Okay, I will add some tests. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43123] email MIME splitting

2021-02-07 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Martin, Looking into this further, it appears we already catch CR-LF characters in header values, but your test case shows that we do not run the same checks on header names. I've opened a PR to rectify this - feel free to leave feedback. Ross --

[issue43123] email MIME splitting

2021-02-07 Thread Ross Rhodes
Change by Ross Rhodes : -- keywords: +patch nosy: +trrhodes nosy_count: 3.0 -> 4.0 pull_requests: +23267 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24475 ___ Python tracker

[issue43147] Remove mention of "subcontrary mean" from the docs

2021-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: Sounds good to me. I don't recall ever meeting the term. -- nosy: +mark.dickinson ___ Python tracker ___

[issue43153] tempfile seems to treat a file as a directory when processing an exception in the onerror()

2021-02-07 Thread Oleg Navolotsky
New submission from Oleg Navolotsky : >>> import sys, tempfile, os >>> sys.version '3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]' >>> folder = tempfile.TemporaryDirectory() >>> file = open(os.path.join(folder.name, "example.txt"), 'wb') >>> folder.cleanup()

[issue43151] is with literals in 3.8 release

2021-02-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think the strangeness is happening because sometimes, the warning is printed to stderr, while other times, IDLE's parser notices the "is " anti-pattern and raises a SyntaxError. See the attached screenshot for the IDLE output versus the console output for

[issue43151] is with literals in 3.8 release

2021-02-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: There may be reason to re-open this. With Python 3.9.0, I see the inconsistent behavior that Gary describes only when using IDLE. So this is likely an IDLE issue. I attached a screenshot of the difference. -- Added file: