[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-21 Thread Junyu Zhang
New submission from Junyu Zhang : description: When we were using python to develop a distributed process service, I noticed that the default serialization parameter of Manager and ManagerBase in multiprocessing was pickl, and it didn't seem to be mentioned in the official website's

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I would just call gnu's gfactor for this task. -- nosy: +rhettinger ___ Python tracker ___

[issue40039] [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability

2020-03-21 Thread Junyu Zhang
Change by Junyu Zhang : -- components: Library (Lib) files: Python-multiprocessing-RCE-vulnerability.pdf nosy: Junyu Zhang priority: normal severity: normal status: open title: [CVE-2020-10796] Python multiprocessing Remote Code Execution vulnerability type: security versions: Python

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-21 Thread Ethan Furman
Ethan Furman added the comment: Jonathan Hsu, you are correct -- and "don't do that" was my initial response; but Enum takes many pains to make sure the user doesn't shoot themselves in the foot, so raising a TypeError is appropriate instead of silently doing the wrong thing. --

[issue40038] pathlib: remove partial support for preserving accessor when modifying a path

2020-03-21 Thread Barney Gale
New submission from Barney Gale : `pathlib.Path._init()` accepts a 'template' argument that pathlib uses - in some cases - to preserve the current accessor object when creating modified path objects. This works for `resolve()`, `absolute()` and `readlink()`, *but no other cases*! As

[issue39410] CentOS 6.10 SQLite 3.30.1 - _sqlite3 builds successfully but is removed because it cannot be imported.

2020-03-21 Thread Joshua Y
Joshua Y added the comment: It always a good idea to sleep on these things before I comment. Because I compiled SQLite3 under prefix /usr/local, I rebuilt Python 3.8.2 with `-L /usr/local/lib64` added to my LDFLAGS and now things are working fine (so far). --

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-21 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- nosy: +phsilva ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40037] py_compile.py quiet undefined in main function

2020-03-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This is a duplicate of https://bugs.python.org/issue38731 -- nosy: +xtreak ___ Python tracker ___

[issue40037] py_compile.py quiet undefined in main function

2020-03-21 Thread Vikash Balasubramanian
New submission from Vikash Balasubramanian : I just had a random crash while using the autocomplete feature of Emacs. The error message was basically thrown by py_compile.py:213 quiet is undefined. I tracked down the code and sure enough, there is a comparison if quiet < 2: Please

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

2020-03-21 Thread Paulo Henrique Silva
Change by Paulo Henrique Silva : -- pull_requests: +18468 pull_request: https://github.com/python/cpython/pull/19107 ___ Python tracker ___

[issue24916] In sysconfig, don't rely on sys.version format

2020-03-21 Thread STINNER Victor
STINNER Victor added the comment: Since this issue has been closed, I closed PR 10321 and PR 18487. -- nosy: +vstinner ___ Python tracker ___

[issue40016] Clarify flag case in `re` module docstring

2020-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The docstring is currently 103 lines. I intentionally replaced 1 line with 1 line that I believe to be more informative and kept the expansion of the other line to 3 lines. -- ___ Python tracker

[issue40016] Clarify flag case in `re` module docstring

2020-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The docstring line in question is (?aiLmsux) Set the A, I, L, M, S, U, or X flag for the RE (see below). This is exceptional in that other syntaxes in the special characters list use lower case only for syntax variables (m, n, name, id/name, yes, no).

[issue36144] Dictionary union. (PEP 584)

2020-03-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36144] Dictionary union. (PEP 584)

2020-03-21 Thread Curtis Bucher
Change by Curtis Bucher : -- pull_requests: +18467 pull_request: https://github.com/python/cpython/pull/19106 ___ Python tracker ___

[issue40036] Deleting duplicates in itertoolsmodule.c

2020-03-21 Thread AlphaHot
Change by AlphaHot : -- nosy: AlphaHot priority: normal pull_requests: 18466 severity: normal status: open title: Deleting duplicates in itertoolsmodule.c versions: Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-21 Thread Jonathan Hsu
Jonathan Hsu added the comment: While the current behavior may be initially unexpected, it does match the way that python normally behaves when defining class variables. For example, the following class will throw an exception because the function number_two() is called before it is

[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have no problem with 3.8.2 on Windows 10. Tal and Cheryl, what about your systems? Saaheer, what OS, and if macOS, what version are you using? (macOS Catalina has had some problems.) How did you install or upgrade to 3.8.2? -- nosy:

[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi added the comment: No, the .txt files were the same, when I sent the results. I send another .txt file to show the different, but the results were created with the same .txt file for both runs. Unfortunately, it is forbidden to send .py files. On Sat, Mar 21, 2020 at 9:05 PM

[issue40016] Clarify flag case in `re` module docstring

2020-03-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Clarify flag case in `re` module -> Clarify flag case in `re` module docstring ___ Python tracker ___

[issue40016] Clarify flag case in `re` module

2020-03-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The root confusion is that re compilation has several variations with two sets of indicators, each with an unhelpful exception, and each combined and used in different ways. 1. Module constants with uppercase English words or word pairs, also abbreviated

[issue40035] Filtration of the .txt file

2020-03-21 Thread Eric V. Smith
Eric V. Smith added the comment: I don't see a problem here. Your first file has more lines, so it produces more output than the second file. Presumably the difference in output you see when you run your program is a result of this. But since we can't see the code, we can't know for sure.

[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi added the comment: I don't have any other windows to run on them, too. But, now, when I run .py file from older folders before updating windows, then I've got this problem or when I copy the folders and run .py file from these newly created folders. See here: I ran both files.

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2020-03-21 Thread STINNER Victor
STINNER Victor added the comment: RHEL 7.7 and RHEL 8 provides Python 3.6. PEP 538 was implemented in Python 3.7. PEP 538 feature was backported in RHEL 7.7 and RHEL 8 Python 3.6. -- ___ Python tracker

[issue40035] Filtration of the .txt file

2020-03-21 Thread Eric V. Smith
Eric V. Smith added the comment: So are you saying that you see this problem on the current version of Windows that you're running, but whether or not you see the problem depends on if the file was created before or after you updated Windows? How are you creating these files? Does the file

[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi added the comment: Windows 10 Home Python 3.7.3 [MSC v.1916 64 bit (AMD64)] on win32 I open the file so etc.: settings_file = open('settings.txt','r') settings = [line.strip() for line in settings_file.readlines()] # Filter out comments and empties settings = [line for line in

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2020-03-21 Thread Matej Cepl
Matej Cepl added the comment: > Python 3.4 is no longer supported upstream. Python 3 got tons of Unicode > fixes between Python 3.4 and Python 3.8. Of course, I know that, but I just didn’t want to throw all my effort away, when I spent some hours on making it. And I guess, there may be

[issue40035] Filtration of the .txt file

2020-03-21 Thread Eric V. Smith
Eric V. Smith added the comment: What versions of Windows were involved? Are the versions of Python the same? What's the exact version? Best would be the 2 lines you get after running python, like: $ python3 Python 3.7.4 (default, Jul 21 2019, 14:43:25) [GCC 7.4.0] on cygwin Please provide

[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi added the comment: Hello, I saw a problem when this line of code is used in Python 3: settings = [line for line in settings if (line!='' and line[0] != '#')] Before updating windows, this line of code filtered the texts from the beginning of .txt file, so only the first lines

[issue40035] Filtration of the .txt file

2020-03-21 Thread Hamed Elahi
Hamed Elahi added the comment: Hello, I saw a problem when this line of code is used in Python 3: settings = [line for line in settings if (line!='' and line[0] != '#')] Before updating windows, this line of code filtered the texts from the beginning of .txt file, so only the first lines

[issue40035] ilteration of the .txt file

2020-03-21 Thread Hamed Elahi
New submission from Hamed Elahi : Hello, I saw a problem when this line of code is used in Python 3: settings = [line for line in settings if (line!='' and line[0] != '#')] Before updating windows, this line of code filtered the texts from the beginning of .txt file, so only the first lines

[issue40034] cgi.parse() does not work with multipart POST requests.

2020-03-21 Thread San
New submission from San : The cgi.parse stdlib function works in most cases but never works when given a multipart/form-data POST request because it does not set up pdict in a way cgi.parse_multipart() likes (boundary as bytes (not str) and including content length). $ pwd /tmp $ $

[issue40033] Just defined class missing from scope

2020-03-21 Thread Damian Yurzola
Damian Yurzola added the comment: This is even a better example: Level1A is available to inherit from, but not to type with. Example: from typing import List class Level0A: pass class Level0B: class Level1A: pass class Level1B(Level1A): pass class

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2020-03-21 Thread STINNER Victor
STINNER Victor added the comment: Python 3.4 is no longer supported upstream. Python 3 got tons of Unicode fixes between Python 3.4 and Python 3.8. -- ___ Python tracker ___

[issue40033] Just defined class missing from scope

2020-03-21 Thread Damian Yurzola
New submission from Damian Yurzola : In the following example the last line throws as 'NameError: name 'Level1A' is not defined' for both 3.7 and 3.8 I assumed that Level1A should already be in scope while defining the insides of Level1B. But it isn't. Is this a bug, or am I missing

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-21 Thread STINNER Victor
STINNER Victor added the comment: > Cython doesn't make complete use of PEP-489 yet, specifically not of the > module state feature (nor module subclasses). This change looks good from my > side. Good idea, Victor. Thanks for the confirmation Stefan ;-) --

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Jonathan Fine
Jonathan Fine added the comment: A pre-computed table of primes might be better. Of course, how long should the table be. There's an infinity of primes. Consider >>> 2**32 4294967296 This number is approximately 4 * (10**9). According to https://en.wikipedia.org/wiki/Prime_number_theorem,

[issue40029] test_importlib.test_zip requires zlib but not marked

2020-03-21 Thread Roman Yurchak
Change by Roman Yurchak : -- keywords: +patch nosy: +rth nosy_count: 2.0 -> 3.0 pull_requests: +18465 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19105 ___ Python tracker

[issue40032] Remove explicit inheriting of object in class definitions

2020-03-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Sat, Mar 21, 2020 at 01:30:13PM +, Julin wrote: > Why do you think it makes the code less clear, though? Classes that inherit from object, and those which don't ("classic classes") behave differently in Python 2. But in Python 3, they are precisely

[issue40032] Remove explicit inheriting of object in class definitions

2020-03-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Previous discussion: https://bugs.python.org/issue17351 -- nosy: +xtreak ___ Python tracker ___

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Steven, I agree, your set of proposed methods seem sensible to me. I'm happy to start with an implementation of at least some of those methods and open for review, taking this one step at a time for easier review and regular feedback. > Another question:

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 39680fb7043e555469e08d3c4f49073acca77b20 by Serhiy Storchaka in branch '3.7': [3.7] bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set. (GH-18942). (GH-19104)

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread miss-islington
miss-islington added the comment: New changeset 687f5921a46cf95c2a648d8031f9e99cdcc3e6b7 by Miss Islington (bot) in branch '3.8': bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set. (GH-18942)

[issue40011] Tkinter widget events become tuples

2020-03-21 Thread Hênio Tierra Sampaio
Hênio Tierra Sampaio added the comment: Yes, you guys were right. I solved the problem by writing a new, simpler debugging class. I'm sorry for taking your time! Thank you! -- ___ Python tracker

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: Ross: "implement this logic for a limited range of non-negative n, imposing an upper limit (suggestions welcome) to make sure all provided input can be safely processed. We can then build from there to support larger n going forward if the demand is out

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't know... To my mind, if we are going to support working with primes, the minimum API is: - is_prime(n) - next_prime(n) - prev_prime(n) - factorise(n) - generate_primes(start=0) (I trust the names are self-explanatory.) There are various other

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18464 pull_request: https://github.com/python/cpython/pull/19104 ___ Python tracker ___

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +18463 pull_request: https://github.com/python/cpython/pull/19103 ___ Python tracker

[issue39652] sqlite3 bug handling column names that contain square braces

2020-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b146568dfcbcd7409c724f8917e4f77433dd56e4 by Serhiy Storchaka in branch 'master': bpo-39652: Truncate the column name after '[' only if PARSE_COLNAMES is set. (GH-18942)

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Serhiy, > Provide a pull request. Apologies, by "this idea" I should clarify I meant the "imath" module proposal. On this particular enhancement, yes, I'm happy to work on and later provide a pull request. --

[issue24916] In sysconfig, don't rely on sys.version format

2020-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 684d2b9a071fa8e54749e0eec3c16aafcd642ed4 by Serhiy Storchaka in branch 'master': bpo-24916: Remove an outdated comment. (GH-19101) https://github.com/python/cpython/commit/684d2b9a071fa8e54749e0eec3c16aafcd642ed4 --

[issue24916] In sysconfig, don't rely on sys.version format

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Regardless, how can we best move forward with this idea? Provide a pull request. -- ___ Python tracker ___

[issue40032] Remove explicit inheriting of object in class definitions

2020-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We usually do not accept mass cosmetic changes. It messes the history and may break pending PRs. It also consumes the time of core developers for review and has a risk of introducing bugs. -- nosy: +serhiy.storchaka resolution: -> rejected stage:

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Serhiy, Thanks for sharing your thread. I support this proposal, and would be happy to help where time permits if we can gather sufficient support. I inadvertently posted my support twice on your thread with no obvious means of deleting the duplicate post,

[issue40032] Remove explicit inheriting of object in class definitions

2020-03-21 Thread Julin
Julin added the comment: I just thought it looked different compared to the usual code that some of us were used to. Though it is probably familiar enough to the people who actually maintain the cpython code base. I agree with everything that you mentioned with regards to what I could

[issue40032] Remove explicit inheriting of object in class definitions

2020-03-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: Code churn for no good reason is not a good idea. I cannot think of any good reasons to change this: - it doesn't add new functionality; - it doesn't fix bugs; - it doesn't make the code easier to maintain; - it makes the code LESS clear instead of more

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-21 Thread Amir Mohamadi
Change by Amir Mohamadi : -- keywords: +patch pull_requests: +18462 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/19102 ___ Python tracker

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2020-03-21 Thread Matej Cepl
Matej Cepl added the comment: I have tried to port this patch to Python 3.4 (still maintained by SUSE on SLE-12), but I have the hardest time to debug this. All affected tests end with errors like this: [ 493s] == [ 493s]

[issue40032] Remove explicit inheriting of object in class definitions

2020-03-21 Thread Julin
New submission from Julin : In the source, many class definitions still explicitly inherit from `object` though it is no longer necessary in Python3. Can't we change it? -- components: Library (Lib) messages: 364739 nosy: ju-sh priority: normal severity: normal status: open title:

[issue24916] In sysconfig, don't rely on sys.version format

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18461 pull_request: https://github.com/python/cpython/pull/19101 ___ Python tracker ___

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-21 Thread Stefan Behnel
Stefan Behnel added the comment: > I think Cython makes use of PEP-489 so unless I am missing something all > generated extensions use PEP-489 structures. Cython doesn't make complete use of PEP-489 yet, specifically not of the module state feature (nor module subclasses). This change looks

[issue39410] CentOS 6.10 SQLite 3.30.1 - _sqlite3 builds successfully but is removed because it cannot be imported.

2020-03-21 Thread Joshua Y
Joshua Y added the comment: I am hitting a possibly related issue. System is running Centos6.9 and SQLite 3.10.0. Python 3.8.2 built successfully (using pyenv / python-build), and I can import the sqlite3 lib with seemingly no issue... % python3 Python 3.8.2 (default, Mar 21 2020,

[issue40011] Tkinter widget events become tuples

2020-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem is in ExceptionCatcher. It uses builtin function apply() which was outdated even in Python 2.7 and was removed in Python 3 (instead of apply(func, args) you can use func(*args)). So that code always failed, but all exceptions were logged and

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

2020-03-21 Thread hai shi
Change by hai shi : -- pull_requests: +18460 pull_request: https://github.com/python/cpython/pull/19100 ___ Python tracker ___

[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-03-21 Thread Saaheer Purav
New submission from Saaheer Purav : In Python 3.8.2 IDLE, when I try to select a new theme or change the font and font size in the Configure IDLE section, and click on 'Ok' or 'Apply', nothing happens. The buttons have no action. Even when I tried to press F5 to run module, nothing happened.

[issue40016] Clarify flag case in `re` module

2020-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I apologize if I was rude. It's only because of my bad English. There were many translation options for my words suggested by Google Translator and I obviously picked up the wrong one. Improving documentation is always a good thing. But I leave the final

[issue40029] test_importlib.test_zip requires zlib but not marked

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40030] Error with math.fsum() regarding float-point error

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40029] test_importlib.test_zip requires zlib but not marked

2020-03-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +easy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40030] Error with math.fsum() regarding float-point error

2020-03-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This seems to be a similar case of https://docs.python.org/3/tutorial/floatingpoint.html. See also comment

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Are there any open discussions or threads following the proposed “imath” > module? https://mail.python.org/archives/list/python-id...@python.org/message/YYJ5YJBJNCVXQWK5K3WSVNMPUSV56LOR/ Issue37132. -- nosy: +serhiy.storchaka

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Ross Rhodes
Ross Rhodes added the comment: Hi Tim, Are there any open discussions or threads following the proposed “imath” module? I’m a relatively new entrant to the Python community, so if there’s any ongoing discussion on that front I’d be happy to read further. I think as a first step it would be

[issue40030] Error with math.fsum() regarding float-point error

2020-03-21 Thread Mathias Talbo
New submission from Mathias Talbo : An issue occurs when running the following code. import math math.fsum([0.1, 0.2]), math.fsum([0.1, 0.7]) This should output 0.3, 0.8 respectively. Instead, it output 0.30004, 0.7999 The very floating-point error it is trying to

[issue38945] Remove newline characters from uu encoding methods

2020-03-21 Thread Larry Hastings
Change by Larry Hastings : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40013] CSV DictReader parameter documentation

2020-03-21 Thread Juhana Jauhiainen
Change by Juhana Jauhiainen : -- keywords: +patch nosy: +Juhana.Jauhiainen nosy_count: 3.0 -> 4.0 pull_requests: +18459 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19099 ___ Python tracker

[issue40013] CSV DictReader parameter documentation

2020-03-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like a good clarification to me where None is clarified that it's the value of restval. DictWriter has a similar doc "The optional restval parameter specifies the value to be written if the dictionary is missing a key in fieldnames" at

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Amir, this needs a test like the initial report without preferably using sys.stdout and patch for cases below : 1. Where the attribute is present on the wrapped object and uses it. 2. Where the attribute is not present on the wrapped object and

[issue40029] test_importlib.test_zip requires zlib but not marked

2020-03-21 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : I was trying to compile and run tests on a fresh ubuntu 18.03 machine that didn't zlib. test_importlb.test_zip seems to have some tests that depend on zlib but not marked as such causing test errors. Like other tests these could be skipped zlib