[issue28231] zipfile does not support pathlib

2017-01-10 Thread Jeremy Freeman
Jeremy Freeman added the comment: I have reviewed the code and docs for the public API that should take a pathlib.Path object: - zipfile.is_zipfile(filename) - filename - zipfile.ZipFile(file) - file - ZipFile.extract(member, path=None) - path - ZipFile.extractall(path=None) - path - Zi

[issue29235] Allow profile/cProfile to be used as context managers

2017-01-10 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue29238] Add more kwargs to cProfile's print_stats

2017-01-10 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue29221] ABC Recursion Error on isinstance() with less than recursion limit class hierarchy depth

2017-01-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Not sure if this is related, but I have a simple Cache class that gets a recursion error at a depth of about 166 calls (a sixth of the expected 1000). I suspect that the reason is the many of the steps individually add to the recursion depth causing the re

[issue29221] ABC Recursion Error on isinstance() with less than recursion limit class hierarchy depth

2017-01-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file46251/cache_example.py ___ Python tracker ___ ___ Python-bugs-list maili

[issue29215] pyport.h uses non C90-style comment

2017-01-10 Thread Xiang Zhang
Xiang Zhang added the comment: About the comment style confliction, I opened an issue on Github and assigned to you Benjamin. https://github.com/python/peps/issues/176 -- ___ Python tracker ___

[issue29125] Shell injection via TIX_LIBRARY when using tkinter.tix

2017-01-10 Thread Larry Hastings
Larry Hastings added the comment: Well, clearly I'm not qualified to review the patch. Could someone please review it? I want to cherry-pick the fix for this issue for 3.5.3 final, which I tag in about four days. -- ___ Python tracker

[issue29006] 2.7.13 _sqlite more prone to "database table is locked"

2017-01-10 Thread Larry Hastings
Larry Hastings added the comment: Ping. Hoping to resolve this in time for 3.5.3, which I tag in about four days. -- ___ Python tracker ___ _

[issue29221] ABC Recursion Error on isinstance() with less than recursion limit class hierarchy depth

2017-01-10 Thread Anthony Scopatz
Anthony Scopatz added the comment: It certainly seems related. Attached is an image that displays the scaling of the cache example. The full notebook that generated this image is at [1]. The notebook shows that it does seem to converge towards a value of 1/6th. 1. https://gist.github.com/sco

[issue27603] Migrate IDLE context menu items to shell extension

2017-01-10 Thread Vedran Čačić
Vedran Čačić added the comment: Even worse: I had both 3.5 and 3.6 installed, and then uninstalled 3.5 when 3.6 was final (I suppose I'm not the only one). Now I have the nested menu with only one item, Open with IDLE 3.6. :-\ -- nosy: +veky ___ Pyt

[issue29234] Disable inlining of _PyStack_AsTuple() to reduce the stack consumption

2017-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is a stack usage effect of disabling inlining _PyStack_AsTuple()? Does it impact performance? Should inlining _PyStack_AsDict() be disabled too? Is it worth to extract slow paths of _PyObject_FastCallDict() and _PyObject_FastCallKeywords() into separate

[issue28870] Reduce stack consumption of PyObject_CallFunctionObjArgs() and like

2017-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Awesome! You are great Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue29125] Shell injection via TIX_LIBRARY when using tkinter.tix

2017-01-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +terry.reedy, zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29220] Python 3.6 regression/change using logging.addLevelName() to clear a name

2017-01-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 99ad6e871459 by Vinay Sajip in branch 'default': Closes #29220: Fixed regression in logging.getLevelName(). https://hg.python.org/cpython/rev/99ad6e871459 -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed

[issue28231] zipfile does not support pathlib

2017-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I am not sure what "Shouldn't the ZipFile.filename attribute be converted to > str?" means, can you elaborate? If you pass a Path object to ZipFile constructor, should the filename attribute be a Path object or a str? -- _

[issue29220] Python 3.6 regression/change using logging.addLevelName() to clear a name

2017-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you provide a working example of using your trick Mark? I think that even with empty name the output contains extra separators. -- nosy: +serhiy.storchaka ___ Python tracker

[issue29220] Python 3.6 regression/change using logging.addLevelName() to clear a name

2017-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As for the patch itself, I would add an indentation for the second "if": result = _levelToName.get(level) if result is None: result = _nameToLevel.get(level) if result is None: result = "Level %s" % level return result

[issue29214] Standard open() does not allow to specify file permissions.

2017-01-10 Thread Марк Коренберг
Марк Коренберг added the comment: @haypo, suppose, one thread wants file with permissions A, and other thread wants permissions B. If they will "set" them through umask(), race condition may occur. -- ___ Python tracker

[issue29214] Standard open() does not allow to specify file permissions.

2017-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you needs non-default permission for particular file, you can use one of available ways mentioned above. I think this issue can be closed. The original issues are resolved: 1. os.open() (corresponding to syscall open()) allows this. 2. There are other way

[issue29214] Standard open() does not allow to specify file permissions.

2017-01-10 Thread STINNER Victor
STINNER Victor added the comment: > @haypo, suppose, one thread wants file with permissions A, and other thread > wants permissions B. If they will "set" them through umask(), race condition > may occur. Ok, let's say thta you want file "x" with permission A=0o777 and file "y" with permission

<    1   2