[issue25430] speed up ipaddress __contain__ method

2017-08-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue31110] Small typo in plistlib docs

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.4 and 3.5 can take only security fixes. Create a PR for the master branch. After merging it the changes can be cherry-picked into the 3.6 branch. See details in Python Developer’s Guide (https://docs.python.org/devguide/). -- stage: -> needs

[issue31110] Small typo in plistlib docs

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: https://github.com/python/cpython -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue31108] add __contains__ for list_iterator (and others) for better performance

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch adds almost 40 line of the code and increases the performance of not well famous feature at best by 10-20%. Adding an optimization for every new iterator type will add a comparable quantity of the code. I think this is too high cost. Using a

[issue30978] str.format_map() silences exceptions in __getitem__

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5075416b8fedc5526b643dabc915f7945fa0d969 by Serhiy Storchaka in branch 'master': bpo-30978: str.format_map() now passes key lookup exceptions through. (#2790) https://github.com/python/cpython/commit/5075416b8fedc5526b643dabc915f7945fa0d969

[issue30978] str.format_map() silences exceptions in __getitem__

2017-08-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3031 ___ Python tracker ___ ___

[issue31071] *args unpacking can mask TypeErrors

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 25e4f779d7ae9f37a1933cb5cbfad06e673c01f9 by Serhiy Storchaka in branch 'master': bpo-31071: Avoid masking original TypeError in call with * unpacking (#2957) https://github.com/python/cpython/commit/25e4f779d7ae9f37a1933cb5cbfad06e673c01f9

[issue31113] Stack overflow with large program

2017-08-03 Thread Manuel Krebber
New submission from Manuel Krebber: With a pattern matching library I am generating some Python code that matches patterns. For a very big pattern set I generate a Python file which is about 20MB and has ~300K LOC. When I try to execute the file with Python 3.6.2 on Windows 10 (64bit), the

[issue31109] zipimport argument clinic conversion

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If zipimport will be reimplemented in Python (issue25711) this change will be not needed. -- nosy: +serhiy.storchaka ___ Python tracker

[issue28777] Add asyncio.Queue __aiter__, __anext__ methods

2017-08-03 Thread Georgy
Georgy added the comment: I successfully use my code: import asyncio, sanic class MyQueue(asyncio.Queue): def __aiter__(self): return self async def __anext__(self): return await self.get() app = sanic.Sanic() ws_set = set() app.static('/', 'async.html') @app.websocket('/ws') async

[issue31071] *args unpacking can mask TypeErrors

2017-08-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +3030 ___ Python tracker ___ ___

[issue31080] Allow `logging.config.fileConfig` to accept kwargs

2017-08-03 Thread Vinay Sajip
Vinay Sajip added the comment: No, that's OK - leave it as is, I'll consider it when next visiting the area. -- ___ Python tracker ___

[issue30978] str.format_map() silences exceptions in __getitem__

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f08b2be4416163e3d18b8d09891e7cda0d8a21d4 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30978: str.format_map() now passes key lookup exceptions through. (GH-2790) (#2992)

[issue31071] *args unpacking can mask TypeErrors

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 946a0b69e217ff22a6c056047eab42053e9a2d5f by Serhiy Storchaka in branch '3.6': [3.6] bpo-31071: Avoid masking original TypeError in call with * unpacking (GH-2957) (#2991)

[issue31113] Stack overflow with large program

2017-08-03 Thread Manuel Krebber
Manuel Krebber added the comment: 1) Yes. 2) A .pyc file was not generated. 3) It is always the same location where the error occurs. 4) It did not crash on the linux machine that I tested it on. I have tried to split the code up into multiple files, but it still crashes. I have uploaded the

[issue30717] Add unicode grapheme cluster break algorithm

2017-08-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Unicode nosy: +benjamin.peterson, ezio.melotti, lemburg, loewis stage: needs patch -> patch review title: str.center() is not unicode aware -> Add unicode grapheme cluster break algorithm

[issue18406] unicodedata.itergraphemes / str.itergraphemes / str.graphemes

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue30717 has a patch. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Add unicode grapheme cluster break algorithm ___ Python tracker

[issue31105] Cyclic GC threshold may need tweaks

2017-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, this is a potentially annoying limitation of the current scheme. Note that it's not obvious how to proceed for resizable objects such as lists. Should the list inform the GC of every internal resizing? May a list resize trigger a GC run? Also, a small

[issue31071] *args unpacking can mask TypeErrors

2017-08-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30717] Add unicode grapheme cluster break algorithm

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue18406 is closed as a duplicate of this issue. There are useful links in issue18406. In particular see a proto-PEP of Unicode Indexing Helper Module: http://mail.python.org/pipermail/python-dev/2001-July/015938.html I agreed that providing grapheme

[issue30978] str.format_map() silences exceptions in __getitem__

2017-08-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31113] Stack overflow with large program

2017-08-03 Thread Stefan Behnel
Stefan Behnel added the comment: 1) Is this reproducible? 2) Getting a crash in compile.c indicates that this is happening at parse/compile time and not when your Python code is executing. Can you confirm that? Does it generate a .pyc file on import that would indicate a successful byte code

[issue31110] Small typo in plistlib docs

2017-08-03 Thread cwee
cwee added the comment: Just noticed the note was removed in commit edef358ed6d in the latest 3.7 docs. Closing issue. Thanks for the intro on how to contribute though! -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed

[issue29304] dict: simplify lookup functions

2017-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Inada! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28777] Add asyncio.Queue __aiter__, __anext__ methods

2017-08-03 Thread Guido van Rossum
Guido van Rossum added the comment: So that's an infinite loop right? -- ___ Python tracker ___ ___

[issue29304] dict: simplify lookup functions

2017-08-03 Thread INADA Naoki
INADA Naoki added the comment: # microbench https://gist.github.com/methane/db16224a99d12ad4ed170cf3bd45b819 Slower (2): - fromkeys_str: 3.85 us +- 0.07 us -> 4.09 us +- 0.09 us: 1.06x slower (+6%) - fromkeys_int: 4.24 us +- 0.13 us -> 4.48 us +- 0.16 us: 1.06x slower (+6%) Faster (2): -

[issue30717] Add unicode grapheme cluster break algorithm

2017-08-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 03.08.2017 15:05, Guillaume Sanchez wrote: > > Guillaume Sanchez added the comment: > > I have a few criticism to do against that proto-PEP > > http://mail.python.org/pipermail/python-dev/2001-July/015938.html > > In particular, the fact that all

[issue29155] test.test_spwd.TestSpwdNonRoot failure with FileNotFoundError:

2017-08-03 Thread rgbyrnes
rgbyrnes added the comment: We are seeing this too, on RHEL 7. It happens when /etc/nsswitch.conf has ... shadow: files ldap The ldap nss back end seems to set errno = ENOENT when it gets no response from the ldap server. If we remove ldap (leaving only files), then we see errno =

[issue29304] dict: simplify lookup functions

2017-08-03 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29304] dict: simplify lookup functions

2017-08-03 Thread INADA Naoki
INADA Naoki added the comment: New changeset 778928b0c7aa438c282727535814d73df850693a by INADA Naoki in branch 'master': bpo-29304: Simplify dict lookup functions (GH-2407) https://github.com/python/cpython/commit/778928b0c7aa438c282727535814d73df850693a --

[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-03 Thread Damon Atkins
Damon Atkins added the comment: Hi Guys, The reason I raise the original is for all those configuration management tools which need the version number. In the uninstall registry is very much an inconsistent. *Anything with a Display Name in the registry (name in the GUI) will be listed. *

[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-03 Thread Damon Atkins
Damon Atkins added the comment: Because this entry "python 3.5.3 (64-bit)" is the USER part of the registry, only the user who installs python can see that it is installed. -- ___ Python tracker

[issue24502] OS X installer provides flat sub-packages with no version numbers

2017-08-03 Thread Shea Craig
Shea Craig added the comment: For what it's worth, I manage a lot of Macs and know a lot of people in similar roles at major enterprises. We greatly prefer installer packages for automated installation, and end up having to repackage installer apps routinely for products that don't use that

[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-03 Thread Damon Atkins
Damon Atkins added the comment: The python 3.5.3 (64-bit) installer currently adds most of the components installed in the "MACHINE" Registry all but 1 item (2 entries) "python 3.5.3 (64-bit)" software entry which it places in both the 32 bit and also the 64 bit registry. It should be in the

[issue31114] 'make install' fails when exec_prefix is '/' and DESTDIR not empty

2017-08-03 Thread Xavier de Gaye
New submission from Xavier de Gaye: The error messages: running install_lib creating /lib/python3.7 error: could not create '/lib/python3.7': Permission denied make[1]: *** [Makefile:1449: sharedinstall] Error 1 The command that triggers this failure:

[issue31103] Windows Installer Product Version 3.6.2150.0 Offset By 0.0.150.0

2017-08-03 Thread Steve Dower
Steve Dower added the comment: There's an existing bug for the registration going to the wrong place. It requires changes to the Wix toolset to resolve. No need to conflate it with this issue. As far as I can tell, the problem here is just the version string displayed in Programs and

[issue31115] Py3.6 threading/reference counting issues with `numexpr`

2017-08-03 Thread Robert McLeod
New submission from Robert McLeod: I'm working on the development branch of the `numexpr` module and I've run into some problems on Python 3.6, where I seem to get a variety of errors relating to threading or reference counting errors. This module is commonly used for accelerating NumPy code,

[issue26901] Argument Clinic test is broken

2017-08-03 Thread Yaron de Leeuw
Yaron de Leeuw added the comment: I have done some diving and git bisecting into this. There are at least two issues: 1. `Clinic.__init__` no longer works without passing in a filename. Because soon after `if filename` in line 1726 [1] it calls `d('file')` which only works if there is a

[issue27470] -3 commandline option documented differently via man

2017-08-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-08-03 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +3033 ___ Python tracker ___ ___ Python-bugs-list

[issue19903] Idle: Use inspect.signature for calltips

2017-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: test needed -> commit review ___ Python tracker ___

[issue29910] Ctrl-D eats a character on IDLE

2017-08-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +3034 ___ Python tracker ___ ___

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-03 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +3032 ___ Python tracker ___ ___

[issue31117] Intersphinx file objects.inv missing 'list' from py:class

2017-08-03 Thread Benjamin Swan
New submission from Benjamin Swan: The objects.inv file my project pulls in for python 2 (https://docs.python.org/2/objects.inv) no longer contains an entry of list under py:class. This is causing sphinx to output WARNING: py:obj reference target not found: list for intershpinx links to the

[issue27470] -3 commandline option documented differently via man

2017-08-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: needs patch -> patch review ___ Python tracker ___

[issue30928] Copy modified blurbs to idlelib/NEWS.txt

2017-08-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Next patch should correct bp0-30723. -- ___ Python tracker ___ ___

[issue31012] suggestion: allow termination argument in argparse to be specified as argument

2017-08-03 Thread paul j3
paul j3 added the comment: The earlier issue for '--' as arguement http://bugs.python.org/issue14364 With the patch I suggested there '-f--' and '--foo=--' work as arguments. '--foo --' is still interpreted as a positionals switch. In optparse parsing, a flagged option gets all the

[issue27470] -3 commandline option documented differently via man

2017-08-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset dd6e4aa113c6db4fcf9d252b5063ab217e8330a2 by Mariatta (Subhendu Ghosh) in branch '2.7': bpo-27470: Improve doc for commandline -3 option https://github.com/python/cpython/commit/dd6e4aa113c6db4fcf9d252b5063ab217e8330a2 -- nosy:

[issue30882] Built-in list disappeared from Python 2.7 intersphinx inventory

2017-08-03 Thread Benjamin Swan
Changes by Benjamin Swan : -- nosy: +Benjamin Swan ___ Python tracker ___ ___

[issue29427] Option to skip padding for base64 urlsafe encoding/decoding

2017-08-03 Thread Robert Xiao
Robert Xiao added the comment: This sounds reasonable. I ran into a similar issue today trying to decode a JSON Web Key. Although I don't have any real say, I'd say that if you put together a patch it may have a higher chance to get reviewed. I wonder about the following: - What about adding

[issue31002] IDLE: Add tests for configdialog keys tab

2017-08-03 Thread Cheryl Sabella
Cheryl Sabella added the comment: I tried to minimize the changes to configdialog. There were more I wanted to make, like reorganizing the order of the functions, but I didn't want to make the diff too crazy. I changed some variable names because all of them had 'keys' in it and I couldn't

[issue31116] base85 z85 variant encoding

2017-08-03 Thread Derek Wilson
New submission from Derek Wilson: Issue #17618 introduced base85 options into the base64 module including b85 and a85/adobe variants. There has since been introduced a variant that is easier to work with specifically as it avoids " ' \ characters which avoids quoting/escaping issues when

[issue31117] Intersphinx file objects.inv missing 'list' from py:class

2017-08-03 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Built-in list disappeared from Python 2.7 intersphinx inventory ___ Python tracker

[issue31029] test_tokenize fails when run directly

2017-08-03 Thread Rajath Agasthya
Changes by Rajath Agasthya : -- pull_requests: +3035 ___ Python tracker ___ ___

[issue29910] Ctrl-D eats a character on IDLE

2017-08-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Adding 'break' to parenmatch.paren_closed_event prevented ')' from closing calltips. Removing it reverts the regression. I am leaving this open to re-review the other optional changes to see if ')' is unique or if anything else is being caught that needs to

[issue30717] Add unicode grapheme cluster break algorithm

2017-08-03 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Thu, Aug 03, 2017 at 11:21:38AM +, Serhiy Storchaka wrote: > Should iterators provide just substrings or their positions? [...] I think we're breaking new ground here and I'm not sure what the right API should be. Should we follow Perl 6?

[issue31109] zipimport argument clinic conversion

2017-08-03 Thread Yaron de Leeuw
Yaron de Leeuw added the comment: Oh that's a cool idea which I was not aware of. -- ___ Python tracker ___

[issue25711] Rewrite zipimport from scratch

2017-08-03 Thread Yaron de Leeuw
Yaron de Leeuw added the comment: What is the status of this work? Is there anything I can do to help make this happen? -- nosy: +jarondl ___ Python tracker

[issue30717] Add unicode grapheme cluster break algorithm

2017-08-03 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: I have a few criticism to do against that proto-PEP http://mail.python.org/pipermail/python-dev/2001-July/015938.html In particular, the fact that all those functions return an index prevents any state keeping. That's a problem because: > next_(u, index)

[issue30717] Add unicode grapheme cluster break algorithm

2017-08-03 Thread Guillaume Sanchez
Guillaume Sanchez added the comment: Thanks for your consideration. I'm currently fixing what's been asked in the reviews. > But it would be useful to provide also word and sentence iterators. I'll gladly do that as well! > I think emitting a pair (pos, substring) would be more useful. That

[issue31012] suggestion: allow termination argument in argparse to be specified as argument

2017-08-03 Thread Leon Avery
Leon Avery added the comment: The POSIX guideline suggests that -- should be available as an option argument. One should be able to say "command --opt --" in order to make '--' the value of the '--opt' option. > There are some known problems with this '--', specially when there are more >

[issue31105] Cyclic GC threshold may need tweaks

2017-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is an existing protocol for estimating the size of allocated memory. __sizeof__. Python API sys.getsizeof() and C API _PySys_GetSizeOf(). But it is too heavy for using in GC. As a fast approximation the default implementation of the __sizeof__ method

[issue31105] Cyclic GC threshold may need tweaks

2017-08-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As a fast approximation the default implementation of the __sizeof__ method > can be used This doesn't handle further resizing of containers, though. -- ___ Python tracker