[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat
Tal Einat added the comment: New changeset ede0b6fae20290bf22b6ee1b9a1e1179d750f360 by Tal Einat in branch 'master': bpo-20182: AC convert Python/sysmodule.c (GH-11328) https://github.com/python/cpython/commit/ede0b6fae20290bf22b6ee1b9a1e1179d750f360 --

[issue35629] hang and/or leaked processes with multiprocessing.Pool(...).imap(...)

2018-12-31 Thread Anthony Sottile
New submission from Anthony Sottile : This simple program causes a hang / leaked processes (easiest to run in an interactive shell): import multiprocessing tuple(multiprocessing.Pool(4).imap(print, (1, 2, 3))) $ python3.6 Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10761 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10761, 10762, 10763 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: +10761, 10762 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35606] Add prod() function to the math module

2018-12-31 Thread Mark Dickinson
Mark Dickinson added the comment: [Raymond] > or to implement particular NaN/Inf handling not present in a naive > implementation On this subject, some effort has been made in the past to make (almost) all the math module functions behave consistently with respect to things like

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 052b2dfdc967a8c061ff9561534e905009b88b8c by Serhiy Storchaka in branch 'master': bpo-32492: Tweak _collections._tuplegetter. (GH-11367) https://github.com/python/cpython/commit/052b2dfdc967a8c061ff9561534e905009b88b8c --

[issue32492] C Fast path for namedtuple's property/itemgetter pair

2018-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33039] int() and math.trunc don't accept objects that only define __index__

2018-12-31 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: >I think we should also consider changing the type creation behaviour in 3.8 @ncoghlan is this what's being done in PyTypeReady? -- nosy: +remi.lapeyre ___ Python tracker

[issue35626] Python dictreader KeyError issue

2018-12-31 Thread Eduardo Orochena
New submission from Eduardo Orochena : def load_file(filename): with open(filename, 'r', encoding='utf-8') as fin: header = fin.readline() print('Found ' + header) reader = csv.DictReader(fin) for row in reader: print(type(row), row)

[issue35628] Allow lazy loading of translations in gettext.

2018-12-31 Thread s-ball
New submission from s-ball : When working on i18n, I realized that msgfmt.py did not generate any hash table. One step further, I realized that the gettext.py would not have used it because it unconditionnaly loads the whole translation files and contains the following TODO message: TODO:

[issue35627] multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1

2018-12-31 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I just tried your script in "9a3ffc" (3.7.2final) and "260ec2c36a" (3.7.1final) and it worked on both without halting the main process. I'm on MacOS Sierra, can you give more details about your environment? -- nosy: +remi.lapeyre

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat
Tal Einat added the comment: AFAICT, this issue can finally be closed! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35625] documentation of list, set & dict comprehension make no mention of buggy class scope behavior

2018-12-31 Thread bzip2
New submission from bzip2 : The sections on list, set and dict comprehensions in the tutorial on data structures (ref. 1) state repeatedly that they are equivalent to for loops, but do not mention that this is not true in classes. In fact, the example used for nested list comprehensions

[issue35624] Shelve sync issues while using Gevent

2018-12-31 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, thanks for opening a bug report. Can you provide a script that reproduce the issue? -- nosy: +remi.lapeyre ___ Python tracker ___

[issue35626] Python dictreader KeyError issue

2018-12-31 Thread Steven D'Aprano
Steven D'Aprano added the comment: Can you please provide a *simple* and *complete* demonstration, including the *full* traceback? As given, we cannot run the supplied code and don't know what the contents of the csv file are supposed to be. See here for more detail: http://www.sscce.org/

[issue35627] multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1

2018-12-31 Thread June Kim
Change by June Kim : -- components: Library (Lib) nosy: June Kim priority: normal severity: normal status: open title: multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1 type: behavior versions: Python 3.7 ___ Python tracker

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-31 Thread wwq
wwq added the comment: I have tried zipping the stdlib myself form normal version's "Python37\Lib" with all files were end with ".py"(without "site-packages" of course). And then everything work fine. Maybe the loader only reject ".pyc" file from zip load? -- nosy: +wwqgtxx

[issue35431] Add a function for computing binomial coefficients to the math module

2018-12-31 Thread Mark Dickinson
Mark Dickinson added the comment: > Can I work on C implementation if no-one else is doing it right now? Sounds fine to me. You might want to coordinate with @kellerfuchs to see what the status of their PR is; maybe the two of you can collaborate? @kellerfuchs: are you still planning to

[issue35431] Add a function for computing binomial coefficients to the math module

2018-12-31 Thread Yash Aggarwal
Yash Aggarwal added the comment: Can I work on C implementation if no-one else is doing it right now? -- nosy: +FR4NKESTI3N ___ Python tracker ___

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Cheryl Sabella
Cheryl Sabella added the comment: PR11392 is the first refactor. It moves translate_key to the module level and also moves the definitions of the key tuples to the module level since they are used in more than one place (and they don't change). As a side note, I'll do the refactoring over

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- Removed message: https://bugs.python.org/msg332776 ___ Python tracker ___ ___ Python-bugs-list

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: -10762 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35627] multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1

2018-12-31 Thread June Kim
New submission from June Kim : ## Test code ## ## Modified a bit from the original written by Doug Hellmann ## https://pymotw.com/3/multiprocessing/communication.html import multiprocessing import time class Consumer(multiprocessing.Process): def __init__(self, task_queue, result_queue):

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Cheryl Sabella
Change by Cheryl Sabella : -- pull_requests: -10763 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat
Tal Einat added the comment: Note that the problematic part of the Modules/_hashopenssl.c AC conversion was reverted, as part of GH-11379. -- ___ Python tracker ___

[issue35627] multiprocessing.queue in 3.7.2 doesn't behave as it was in 3.7.1

2018-12-31 Thread June Kim
June Kim added the comment: Here is my environment ---system CPU: Intel i5 @2.67GHz RAM: 8G OS: Windows 10 Home (64bit) OS version: 1803 OS build: 17134.472 ---python version1: 3.7.1 AMD64 on win32 version2: 3.7.2 AMD64 on win32 Python path: (venv)/Scripts/python.exe IDE: VS Code(1.30.1)

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

2018-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: We don't really need a new issue. Mark's opening post was generic. I grepped for ttk to get existing ttk imports and am making Frame and LabelFrame the first item or items for each import. I won't worry about whether any background is visible, as this

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat
Tal Einat added the comment: New changeset ede0b6fae20290bf22b6ee1b9a1e1179d750f360 by Tal Einat in branch 'master': bpo-20182: AC convert Python/sysmodule.c (GH-11328) https://github.com/python/cpython/commit/ede0b6fae20290bf22b6ee1b9a1e1179d750f360 --

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b4ea8bb080f63ef27682f3f9bbaa4d12a83030b1 by Terry Jan Reedy (Cheryl Sabella) in branch 'master': bpo-35598: IDLE - Globalize some config_key objects (GH-11392) https://github.com/python/cpython/commit/b4ea8bb080f63ef27682f3f9bbaa4d12a83030b1

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +10764, 10765 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +10764 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +10764, 10765, 10766 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue looks complete to me unless there is something simple not previously mentioned. Fixing cancel would be a separate issue. Separating window and frame needs separate discussion on a separate issue, and is not a priority now. Model popups are

[issue35596] Fatal Python error: initfsencoding: unable to load the file system codec zipimport.ZipImportError: can't find module 'encodings'

2018-12-31 Thread Steve Dower
Steve Dower added the comment: Yes, we've established that zipimport is rejecting .pyc files now, but we need to dig through it to figure out why. I haven't had time yet, but if someone else can then don't wait for me. -- ___ Python tracker

[issue33987] IDLE: add ttk.Frame inside searchbaseToplevel

2018-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: *35598 converted config_key to ttk, including a t tk frame inside toplevel. -- ___ Python tracker ___

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

2018-12-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10773 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-12-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10772 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch, patch pull_requests: +10774, 10775 stage: -> patch review ___ Python tracker ___ ___

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch, patch, patch pull_requests: +10774, 10775, 10776 stage: -> patch review ___ Python tracker ___

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
New submission from Ville Skyttä : The typing docs for List includes a note to use generic collection types, but lists AbstractSet and Mapping which aren't generally replacements for a List. It would be better to remove those types from the List note and add corresponding ones to Dict and Set

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
Change by Ville Skyttä : -- keywords: +patch pull_requests: +10774 stage: -> patch review ___ Python tracker ___ ___

[issue20182] Derby #13: Convert 50 sites to Argument Clinic across 5 files

2018-12-31 Thread Tal Einat
Tal Einat added the comment: New changeset ede0b6fae20290bf22b6ee1b9a1e1179d750f360 by Tal Einat in branch 'master': bpo-20182: AC convert Python/sysmodule.c (GH-11328) https://github.com/python/cpython/commit/ede0b6fae20290bf22b6ee1b9a1e1179d750f360 --

[issue35630] Missing code tag for "python3" in README.rst

2018-12-31 Thread Suriyaa Sundararuban
New submission from Suriyaa Sundararuban : Currently there is no code tag for "python3" in the sentence "This will install Python as python3." (Location: https://github.com/python/cpython#build-instructions). I'm working on this small improvement. -- assignee: docs@python

[issue35631] Improve typing docs wrt abstract/concrete collection types

2018-12-31 Thread Ville Skyttä
Ville Skyttä added the comment: (s/generic collection types/abstract collection types/ in the initial message) -- ___ Python tracker ___

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread miss-islington
miss-islington added the comment: New changeset 74e46483773fa2ed03ed02f1b5e3fb0a4691535e by Miss Islington (bot) in branch '3.7': bpo-35598: IDLE - Globalize some config_key objects (GH-11392) https://github.com/python/cpython/commit/74e46483773fa2ed03ed02f1b5e3fb0a4691535e --

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10765 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35598] IDLE: Modernize config_key module

2018-12-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -10766 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33987] IDLE: add ttk.Frame inside searchbaseToplevel

2018-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change is trivial and there was already a Frame test, which initially failed. I will open another issue about similar changes needed elsewhere. -- nosy: +cheryl.sabella ___ Python tracker

[issue35630] Missing code tag for "python3" in README.rst

2018-12-31 Thread Suriyaa Sundararuban
Change by Suriyaa Sundararuban : -- keywords: +patch, patch, patch pull_requests: +10767, 10768, 10769 stage: -> patch review ___ Python tracker ___

[issue35630] Missing code tag for "python3" in README.rst

2018-12-31 Thread Suriyaa Sundararuban
Change by Suriyaa Sundararuban : -- keywords: +patch, patch pull_requests: +10767, 10768 stage: -> patch review ___ Python tracker ___

[issue35630] Missing code tag for "python3" in README.rst

2018-12-31 Thread Suriyaa Sundararuban
Change by Suriyaa Sundararuban : -- keywords: +patch pull_requests: +10767 stage: -> patch review ___ Python tracker ___ ___

[issue35626] Python dictreader KeyError issue

2018-12-31 Thread Eric V. Smith
Eric V. Smith added the comment: Steven is correct: your problem is that in the first example you're reading the header row before you pass the file to DictReader, so the DictReader cannot know what your columns are named. (Actually, your code uses the second row of your file as the column

[issue35630] Missing code tag for "python3" in README.rst

2018-12-31 Thread Suriyaa Sundararuban
Suriyaa Sundararuban added the comment: Done. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33987] IDLE: add ttk.Frame inside searchbaseToplevel

2018-12-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch, patch pull_requests: +10771, 10772 stage: test needed -> patch review ___ Python tracker ___

[issue35431] Add a function for computing binomial coefficients to the math module

2018-12-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Kellar and Yash, my suggestion is to separate the work into two phases. Start with an initial patch that implements this simplest possible implementation, accompanied by clean documentation and thorough testing. Once everyone has agreed on the API (i.e.

[issue33987] IDLE: add ttk.Frame inside searchbaseToplevel

2018-12-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +10771 stage: test needed -> patch review ___ Python tracker ___ ___

[issue33987] IDLE: add ttk.Frame inside searchbaseToplevel

2018-12-31 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch, patch, patch pull_requests: +10771, 10772, 10773 stage: test needed -> patch review ___ Python tracker ___

[issue35629] hang and/or leaked processes with multiprocessing.Pool(...).imap(...)

2018-12-31 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Weirdly enough, it works with iPython: $ ipython3 Python 3.7.1 (default, Nov 6 2018, 18:49:54) Type 'copyright', 'credits' or 'license' for more information IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import

[issue35624] Shelve sync issues while using Gevent

2018-12-31 Thread Oded Engel
Change by Oded Engel : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35624] Shelve sync issues while using Gevent

2018-12-31 Thread Oded Engel
New submission from Oded Engel : Shelve method, sync, does not work when using gevent threading. writeback was set to True, flag was set to 'c'. only way to get the dbb synced is by closing and reopening the db. -- components: Library (Lib) messages: 332807 nosy: Oded Engel priority:

[issue35609] Improve of abc.py docstring

2018-12-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___