[issue26027] Support Path objects in the posix module

2016-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'll take a look. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27364] Deprecate invalid unicode escape sequences

2016-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +gvanrossum ___ Python tracker ___ ___

[issue27377] Add smarter socket.fromfd()

2016-06-24 Thread Martin Panter
Martin Panter added the comment: Okay, I guess the fdtype() API could be useful if we don’t alter fromfd(), i.e. as a workaround for Issue 18391. IMO the specific SO_* constants should at least be listed in the documentation, so users know which versions of Python have which constants.

[issue27385] itertools.groupby has misleading doc string

2016-06-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch is fine. -- assignee: docs@python -> rhettinger priority: normal -> low ___ Python tracker ___

[issue26907] Add missing getsockopt constants

2016-06-24 Thread Martin Panter
Martin Panter added the comment: SO_PASSCRED was added to Python 3.3 as part of Issue 6560; it is just missing documentation. -- nosy: +martin.panter ___ Python tracker

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-24 Thread Martin Panter
Martin Panter added the comment: FWIW I had a quick look at ways to detect if you are running on Ubuntu. But platform.linux_distribution() seems to be deprecated and looks like it might have trouble differentiating Debian and Ubuntu. So it may be easier to just go with the current patch on

[issue27385] itertools.groupby has misleading doc string

2016-06-24 Thread Ned Deily
Changes by Ned Deily : -- nosy: +rhettinger stage: -> patch review versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue27351] Unexpected ConfigParser.read() behavior when passed fileobject

2016-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doing what the doc says is not a bug. The doc being obsolete in saying 'list' (which was once true) instead of the now correct 'iterable' is. The 3.6 ConfigParser.__doc___ also says 'list', so both docstrings and docs for all current versions should be fixed.

[issue27038] Make os.DirEntry exist

2016-06-24 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Jelle! -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue27038] Make os.DirEntry exist

2016-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset b841972ed0bd by Brett Cannon in branch 'default': Issue #27038: Expose DirEntry as os.DirEntry. https://hg.python.org/cpython/rev/b841972ed0bd -- nosy: +python-dev ___ Python tracker

[issue26027] Support Path objects in the posix module

2016-06-24 Thread Brett Cannon
Brett Cannon added the comment: Did you still want to handle this, Serhiy, or should I assign the issue to myself? -- ___ Python tracker ___

[issue27385] itertools.groupby has misleading doc string

2016-06-24 Thread Grant Mathews
New submission from Grant Mathews: The itertools.groupby function is generally well-documented, but the fact that it only groups consecutive occurrences of keys is not mentioned in the doc string, which is where that information is most needed. -- assignee: docs@python components:

[issue27182] PEP 519 support in the stdlib

2016-06-24 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: -Add a "What's New" entry for PEP 519 ___ Python tracker ___

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client

2016-06-24 Thread Vlad K.
Vlad K. added the comment: Doesn't this affect Python 3.3 as well, which is in security-only mode? Shouldn't that version be patched as well? -- nosy: +vladk ___ Python tracker

[issue27186] add os.fspath()

2016-06-24 Thread Ethan Furman
Ethan Furman added the comment: Brett, no worries. My time has been extremely limited. I'll get the other locations in the stdlib fixed sometime in the next two months if no one beats me to it. -- ___ Python tracker

[issue27186] add os.fspath()

2016-06-24 Thread Brett Cannon
Brett Cannon added the comment: I think with the glossary change, this issue is done! Thanks everyone for the help with getting this far! Now on to os.path... -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___

[issue27186] add os.fspath()

2016-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c57178f13dc by Brett Cannon in branch 'default': Issue #27186: Define what a "path-like object" is. https://hg.python.org/cpython/rev/9c57178f13dc -- ___ Python tracker

[issue27384] itertools islice consumes items when given negative range

2016-06-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue27384] itertools islice consumes items when given negative range

2016-06-24 Thread Matthew Malcomson
New submission from Matthew Malcomson: While the itertools.islice(iterator, n, n) trick is useful as used in the consume recipe, I find the current behaviour if stop is less than start (e.g. itertools.islice(iterator, 3, 0) ) to be surprising. It still consumes the first three elements of

[issue27186] add os.fspath()

2016-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea7b6a7827a4 by Brett Cannon in branch 'default': Issue #27186: Update os.fspath()/PyOS_FSPath() to check the return https://hg.python.org/cpython/rev/ea7b6a7827a4 -- ___ Python tracker

[issue27186] add os.fspath()

2016-06-24 Thread Brett Cannon
Brett Cannon added the comment: And now that I have updated os.fspath() I realize that Ethan said he was going to implement the update. :( If you started on the work, Ethan, I'm really sorry for duplicating your (potential) work. I'm going to commit Dusty's glossary term next and then go

[issue27383] executuable in distutils triggering microsoft anti virus

2016-06-24 Thread Rob Bairos
Rob Bairos added the comment: thanks for the quick action! -- ___ Python tracker ___ ___ Python-bugs-list

[issue25042] Create an "embedding SDK" distribution?

2016-06-24 Thread Steve Dower
Steve Dower added the comment: This was done! Just never closed -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue27344] zipfile *does* support utf-8 filenames

2016-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This note looks outdated. In 2.x 8-bit file names are written as is, implying cp437 or what your consumers expect. Unicode file names are encoded to ascii or utf-8 (with setting utf-8 flag). In 3.x only Unicode file names are accepted, and they always are

[issue26907] Add missing getsockopt constants

2016-06-24 Thread Neil Schemenauer
Neil Schemenauer added the comment: Issue #27377 adds these constants. -- nosy: +nascheme ___ Python tracker ___

[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2016-06-24 Thread Neil Schemenauer
Neil Schemenauer added the comment: Sorry, forgot to link the patch: Issue #27377. -- ___ Python tracker ___

[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2016-06-24 Thread Neil Schemenauer
Neil Schemenauer added the comment: I've created a patch to add fromfd2(). I think it addresses the original concern of this issue. My patch also adds the constants suggested by Issue #26907. -- nosy: +nascheme ___ Python tracker

[issue27371] Runaway memory consumption using tkinter update()

2016-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please file a report on Tk bugtracker? https://core.tcl.tk/tk/ticket -- ___ Python tracker ___

[issue27377] Add smarter socket.fromfd()

2016-06-24 Thread Neil Schemenauer
Neil Schemenauer added the comment: Thank you for the excellent review Martin. I'm attaching a new patch which I think addresses your points. I created it from hg, maybe that works nicer. I've added constants for SO_DOMAIN, SO_PROTOCOL, SO_PASSCRED, SO_PEERSEC, and SO_PASSEC. Using

[issue26171] heap overflow in zipimporter module

2016-06-24 Thread Vlad K.
Vlad K. added the comment: Any updates on this? We've committed the patch for Python 3.3 as well in FreeBSD. https://svnweb.freebsd.org/ports?view=revision=417019 -- ___ Python tracker

[issue27383] executuable in distutils triggering microsoft anti virus

2016-06-24 Thread Steve Dower
Steve Dower added the comment: Wow, that sucks. I just rebuilt it and it's still detected, so presumably somebody distributed malware as a bdist_exe and it made it into the signature. There haven't been any unexpected modifications to the sources. I've submitted the file to the right people,

[issue27198] Adding an assertClose() method to unittest.TestCase

2016-06-24 Thread Chris Barker
Chris Barker added the comment: Thanks Robert. I'll try to find time to re-do the patch soon. There was enough resistance to the whole idea that I wanted some confirmation that is was worth my time to do that! Stay tuned. -- ___ Python tracker

[issue27382] calendar module .isleap() probleam

2016-06-24 Thread Dyl Tuckey
Dyl Tuckey added the comment: Thank you ebarry. I would probably never have figured that out -- ___ Python tracker ___

[issue27344] zipfile *does* support utf-8 filenames

2016-06-24 Thread Daniel Holth
Daniel Holth added the comment: https://hg.python.org/cpython/file/2.6/Lib/zipfile.py#l331 Python 2.6 zipfile supports utf8 properly. It has only improved since then. -- ___ Python tracker

[issue27363] Complex with negative zero imaginary part

2016-06-24 Thread Mark Dickinson
Mark Dickinson added the comment: > I suspect that literal_eval, on the other hand, should reproduce what the > interpreter does I think that's going to be awkward to achieve without making the behaviour of literal_eval significantly less obvious and more DWIMmy. And I'm not convinced that

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2016-06-24 Thread Xiang Zhang
Xiang Zhang added the comment: I think we can start from index 1 instead of 0. -- nosy: +xiang.zhang ___ Python tracker ___

[issue22455] idna/punycode give wrong results on narrow builds

2016-06-24 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue27383] executuable in distutils triggering microsoft anti virus

2016-06-24 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

2016-06-24 Thread R. David Murray
R. David Murray added the comment: I don't think "out of date" means "hasn't been touched in X years", I think it means "there is no longer any need to fix this issue". That might mean it is a bug in something we no longer support, or a bug that has been fixed accidentally by later

[issue27383] executuable in distutils triggering microsoft anti virus

2016-06-24 Thread Rob Bairos
New submission from Rob Bairos: python 3.5: wininst-14.0.exe Is triggering Microsoft Security Essentials virus detection: Recommended action: Remove this software immediately. Items: file:D:\PythonBuilds\202ee57ca3\py\Lib\distutils\command\wininst-14.0.exe I've tried on two separate

[issue27382] calendar module .isleap() probleam

2016-06-24 Thread Dyl Tuckey
New submission from Dyl Tuckey: I don't know why but whenever I try and run this code: import calendar import time calendar = calendar.month(2016,6) print ("Loading date, time, month and leap year status") time.sleep(5) print (calendar) localtime = time.asctime(time.localtime(time.time())) print

[issue16821] bundlebuilder broken in 2.7

2016-06-24 Thread R. David Murray
R. David Murray added the comment: No, I think out of date is closest. It's no longer relevant because it no longer exists in python3, so its support date has effectively passed EOL :) -- ___ Python tracker

[issue27382] calendar module .isleap() probleam

2016-06-24 Thread Emanuel Barry
Emanuel Barry added the comment: You're overriding the 'calendar' variable, holding the module, by the result of your 'calender.month' call, which happens to be a str. Use a different variable name (e.g. 'result') and the error will disappear. Unrelated, but don't check for 'if x == True' -

[issue21106] Updated Mac folder icon

2016-06-24 Thread R. David Murray
R. David Murray added the comment: Someone from the development team can contact legal, so yes there is a development action item here. It could be marked as languishing, but that status hasn't actually proven useful in practice and I think we should drop it. --

[issue27371] Runaway memory consumption using tkinter update()

2016-06-24 Thread R. David Murray
Changes by R. David Murray : -- stage: -> resolved ___ Python tracker ___ ___

[issue27363] Complex with negative zero imaginary part

2016-06-24 Thread R. David Murray
R. David Murray added the comment: That's a good point; however the goal of the "repr invariant" is to be able to losslessly reproduce the object when possible. The fact that you have to use the complex constructor to do that is unfortunate, but is a consequence of the underlying problem. I

[issue22455] idna/punycode give wrong results on narrow builds

2016-06-24 Thread Josh Lee
Changes by Josh Lee : -- nosy: +jleedev ___ Python tracker ___ ___ Python-bugs-list

[issue27344] zipfile *does* support utf-8 filenames

2016-06-24 Thread R. David Murray
R. David Murray added the comment: I bet the existing wording is just left over from the python2 docs. I think cp437 should still be mentioned explicitly. And mentioning "setting the utf-8 flag" would probably make the explanation clearer, though I'm not sure. Tecnically speaking, I think

[issue16821] bundlebuilder broken in 2.7

2016-06-24 Thread Carol Willing
Carol Willing added the comment: R. David, Would there be a better resolution than 'out of date'? The other resolutions didn't really seem to fit either. Agree, that the issue is a moot point. -- ___ Python tracker

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2016-06-24 Thread Carol Willing
Carol Willing added the comment: R. David, Fair enough. Thanks for pointing out the difference between 'out of date' and 'works for me'. -- ___ Python tracker

[issue21106] Updated Mac folder icon

2016-06-24 Thread Carol Willing
Carol Willing added the comment: R. David, I'm confused. There isn't anything actionable from a development standpoint on this issue. Why wouldn't it be marked languishing. -- ___ Python tracker

[issue21106] Updated Mac folder icon

2016-06-24 Thread R. David Murray
R. David Murray added the comment: We do not close issues just because they are old. Someone could still pick this up and contact psf legal and get this merged. -- nosy: +r.david.murray resolution: out of date -> status: closed -> open ___ Python

[issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

2016-06-24 Thread Carol Willing
Carol Willing added the comment: Perhaps it would be prudent to update the dev guide, or the contribution process, to close issues that have stagnated for years as opposed to marking them languishing. It would likely help with the issue backlog. Also, expanding out of date to reflect that an

[issue13829] exception error in _scproxy.so when called after fork

2016-06-24 Thread R. David Murray
R. David Murray added the comment: Why is it out of date? Has it been fixed? Has apple changed their abort policy? Obviously it isn't high priority, though :) -- assignee: ronaldoussoren -> nosy: +r.david.murray priority: normal -> low resolution: out of date -> status: closed ->

[issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

2016-06-24 Thread Carol Willing
Carol Willing added the comment: This issue was closed as "out of date" since there has been no activity on the issue in 7 years. IMHO the issue, if still relevant, should be opened as a new issue with better scope based on today's technology. --

[issue13759] Python 3.2.2 Mac installer version doesn't accept multibyte character in interactive mode

2016-06-24 Thread R. David Murray
R. David Murray added the comment: This isn't out of date, it appears that it was not a bug in the first place, but the OP never got back to us with confirmation one way or the other. -- nosy: +r.david.murray resolution: out of date -> works for me

[issue5225] OS X "Update Shell Profile" may not update $PATH if run more than once

2016-06-24 Thread R. David Murray
R. David Murray added the comment: Why is it out of date? Did Ned solve this another way at some point? What I'm getting at is just closing an issue as "out of date" is not enough, really, it is best to record *why* the issue is out of date. -- nosy: +r.david.murray

[issue8406] Make some setup.py paths exclude-able

2016-06-24 Thread R. David Murray
R. David Murray added the comment: We don't close issues just because they are languishing. We'd need to know that the issue has been superseded or is otherwise no longer an issue. It sounds like this one falls into that category, since another issue is noted as a possible superseder, but I

[issue16821] bundlebuilder broken in 2.7

2016-06-24 Thread R. David Murray
R. David Murray added the comment: It's not obvious that this issue would be out of date by our normal policies; however, since bundlebuilder doesn't exist in python3 it seems reasonable to close it. What functionality python2 has at this point is what it has. -- nosy:

[issue27381] Typo in zipfile documentation

2016-06-24 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior versions: +Python 3.5 ___ Python tracker

[issue27381] Typo in zipfile documentation

2016-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset be435520e493 by Berker Peksag in branch '3.5': Issue #27381: Remove superfluous paren in zipfile documentation https://hg.python.org/cpython/rev/be435520e493 New changeset f859380d4708 by Berker Peksag in branch 'default': Issue #27381: Merge from

[issue27381] Typo in zipfile documentation

2016-06-24 Thread Xiang Zhang
New submission from Xiang Zhang: There is a redundant ')' in zipfile doc. Remove it. -- assignee: docs@python components: Documentation files: zipfile_doc.patch keywords: patch messages: 269166 nosy: docs@python, xiang.zhang priority: normal severity: normal status: open title: Typo in

[issue26867] test_ssl test_options fails on ubuntu 16.04

2016-06-24 Thread Larry Hastings
Larry Hastings added the comment: Well, I want this fixed in 3.5.2 final. If nobody can propose a better patch in the next 24 hours then I'm going with Matthias's patch. -- ___ Python tracker

[issue18300] script_helper._assert_python should set TERM='' by default.

2016-06-24 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the review, Martin. -- components: +Tests resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 -Python 2.7, Python 3.3, Python 3.4 ___ Python

[issue18300] script_helper._assert_python should set TERM='' by default.

2016-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 983fe8f96b08 by Berker Peksag in branch '3.5': Issue #18300: Set TERM='' by default in assert_python_* https://hg.python.org/cpython/rev/983fe8f96b08 New changeset 1c49cf82d115 by Berker Peksag in branch 'default': Issue #18300: Merge from 3.5

[issue26547] Undocumented use of the term dictproxy in vars() documentation

2016-06-24 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Julien. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26547] Undocumented use of the term dictproxy in vars() documentation

2016-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79e4593ce746 by Berker Peksag in branch '3.5': Issue #26547: Remove outdated term dictproxy from vars() documentation https://hg.python.org/cpython/rev/79e4593ce746 New changeset 45544b868f7b by Berker Peksag in branch 'default': Issue #26547: