[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-29 Thread anatoly techtonik
anatoly techtonik added the comment: Ok. Maybe I proposed the solution too early. I am fine with doc fix, but given the previous experience I have doubts it will happen. Maybe opening a wiki page with a current draft can help: http://wiki.python.org/moin/Locals or better

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-29 Thread Charles-François Natali
Charles-François Natali added the comment: Greg, the original issue was about an OS X failure, and it's still a problem AFAICT. However it's definitely not a problem with your patch, but an OS X kernel bug (we've had another similar issue some time ago I think), so we might as well skip the

[issue17554] Compact output for regrtest

2013-03-29 Thread Ned Deily
Ned Deily added the comment: There definitely needs to be an option to continue to include the normal progress list in the output. This is essential for comparing test runs. I'm +0 on whether it be the default or not. Actually, what is really needed for automated analysis of test runs is

[issue17571] broken links on Lib/datetime.py docstring

2013-03-29 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe: There are 2 broken links at the beginning of Lib/datetime.py. One other thing, maybe prototype implemented in Python is an outdated and/or needless statement? -- assignee: docs@python components: Documentation, Library (Lib) messages: 185494

[issue17514] Add the license to argparse.py

2013-03-29 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17514 ___ ___ Python-bugs-list mailing

[issue17572] strptime exception context

2013-03-29 Thread Claudiu.Popa
New submission from Claudiu.Popa: When using a directive that is not recognised by time.strptime, the following occurs in Python 3: time.strptime(, %D) Traceback (most recent call last): File C:\Python33\lib\_strptime.py, line 320, in _strptime format_regex =

[issue17573] add ElementTree XML processing benchmark to benchmark suite

2013-03-29 Thread Stefan Behnel
New submission from Stefan Behnel: Here is an artificial but pretty broad ElementTree benchmark, testing the modules xml.etree.ElementTree, xml.etree.cElementTree and lxml.etree (if importable). Please add it to the benchmark suite. -- components: Benchmarks, XML files:

[issue17573] add ElementTree XML processing benchmark to benchmark suite

2013-03-29 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: -- nosy: +brett.cannon, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17573 ___ ___

[issue17561] Add socket.create_server_sock() convenience function

2013-03-29 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Where should I look? Tulip is at code.google.com/p/tulip I meant in the code (and what needs to be done/refactored exactly). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17561

[issue17569] urllib2 urlopen truncates https pages after 32768 characters

2013-03-29 Thread J Porter
J Porter added the comment: Here is the code (security info removed) and the output. I noticed that the problem is a bit different between 2.6.5 and 2.7.3 (on one the use of authentication is different) so I've included the output for both: import urllib2 userData=Basic KEY GOES HERE

[issue17561] Add socket.create_server_sock() convenience function

2013-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: start_serving() in base_events.py. On Fri, Mar 29, 2013 at 4:58 AM, Giampaolo Rodola' rep...@bugs.python.orgwrote: Giampaolo Rodola' added the comment: Where should I look? Tulip is at code.google.com/p/tulip I meant in the code (and what needs to

[issue17574] pysetup failing with OSError: [Errno 18] Invalid cross-device link.

2013-03-29 Thread Valentin Lab
New submission from Valentin Lab: running:: $ pysetup remove shyaml 'shyaml' cannot be removed. Error: [Errno 18] Invalid cross-device link Same happens when using:: $ pysetup install shyaml==0.1.3 Besides, I've no idea of the state of distutils2 which was promising and is working

[issue17575] HTTPConnection.send

2013-03-29 Thread dspub...@freemail.hu
New submission from dspub...@freemail.hu: http.client modul, HTTPConnection object, send method Missing an else for self.sock.sendall(data) try block. ... if hasattr(data, read) : if self.debuglevel 0: print(sendIng a read()able) encode = False

[issue17574] pysetup failing with OSError: [Errno 18] Invalid cross-device link.

2013-03-29 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. I think this bug was already known, but development of distutils2 is currently stopped. The scope and design were fundamentally flawed. Current efforts are centered on defining a toolchain of builders, archivers and installers instead

[issue17575] HTTPConnection.send

2013-03-29 Thread Chris Angelico
Changes by Chris Angelico ros...@gmail.com: -- nosy: +Rosuav ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17575 ___ ___ Python-bugs-list mailing

[issue17425] Update OpenSSL versions in Windows builds

2013-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry to reopen :-). It seems OpenSSL 1.0.1d was a kind of brown paper bag release, they've released 1.0.1e since (some of test_ssl can fail on 1.0.1d and succeed on 1.0.1e, as experienced on my Linux setup; the Windows buildbots also exhibit similar

[issue17554] Compact output for regrtest

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: I fixed all the tests that were producing extra output on my machine, but there are probably some left on other machines. Using -uall also produces extra output, and I haven't decided how to deal with that yet (maybe it should be silenced as well). Getting

[issue17573] add ElementTree XML processing benchmark to benchmark suite

2013-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Haven't looked at the patch in detail but a couple of things: - I don't think we need to benchmark the slow pure-Python ET, except when the fast version isn't present (basically, the main benchmark should try cET and then fallback on ET) - I'm ok with lxml

[issue17540] logging formatter support 'style' key in dictionary config

2013-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6fe31ce789d by Vinay Sajip in branch '3.3': Issue #17540: Added style to Formatter configuration by dict. http://hg.python.org/cpython/rev/d6fe31ce789d New changeset e097fe3a87de by Vinay Sajip in branch 'default': Closes #17540: Merged fix from

[issue6671] webbrowser doesn't respect xfce default browser

2013-03-29 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6671 ___ ___ Python-bugs-list

[issue17573] add ElementTree XML processing benchmark to benchmark suite

2013-03-29 Thread Stefan Behnel
Stefan Behnel added the comment: I considered lxml.etree support more of a convenience feature, just for comparison. Given that it's a binary package that doesn't run reliably on other Python implementations apart of CPython, I don't think it's really interesting to make it part of the

[issue17549] Some exceptions not highlighted in exceptions documentation.

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17549 ___

[issue17573] add ElementTree XML processing benchmark to benchmark suite

2013-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm ok with the conditional import for ET, although I don't see a reason to exclude it. Why not be able to compare the performance of both implementations as well? There's a slowpickle benchmark, for example. It made sense in 2.7 where both implementations

[issue17453] logging.config.fileConfig error

2013-03-29 Thread Vinay Sajip
Vinay Sajip added the comment: Removing myself from nosy, as it appears to be a ConfigParser issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17453 ___

[issue17554] Compact output for regrtest

2013-03-29 Thread R. David Murray
R. David Murray added the comment: -uall shouldn't produce more output by itself, it just runs more tests. Do you mean that some *output* is actually conditionalized on whether a certain resource is enabled? -- ___ Python tracker

[issue17568] re: Infinite loop with repeated empty alternative

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett type: enhancement - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17568

[issue17554] Compact output for regrtest

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: The tests enabled by -uall (and probably -unetwork) use open_urlresource, and open_urlresource has a print('\tfetching %s ...' % url, file=get_original_stdout()). This should probably be printed only when -v is passed. --

[issue5038] urrlib2/httplib doesn't reset file position between requests

2013-03-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, this requires triaging in terms of is the feature request still applicable. Except 100 is sent by httplib and the support for this was added few years ago, much later then this bug was originally raised. -- assignee: - orsenthil

[issue1712522] urllib.quote throws exception on Unicode URL

2013-03-29 Thread Mark Lawrence
Mark Lawrence added the comment: A lot of work has already been done on this issue. If this is likely to get into 2.7 then fine leave it open, if not can this be closed? -- ___ Python tracker rep...@bugs.python.org

[issue17564] test_urllib2_localnet fails

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: Attached a patch to skip the test unless -unetwork/-uall is provided. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file29604/issue17564.diff ___ Python tracker

[issue15494] Move test/support.py into a test.support subpackage

2013-03-29 Thread Nick Coghlan
Nick Coghlan added the comment: OK, Georg has locked the 3.2 branch now, so we can proceed with this without making any 3.2 blockers harder to deal with. -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-03-29 Thread Todd Rovito
Changes by Todd Rovito rovit...@gmail.com: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14146 ___ ___ Python-bugs-list

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-03-29 Thread Todd Rovito
Todd Rovito added the comment: I was going to try Python 3.4 and TK 8.6 on Windows and see what happens. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14146 ___

[issue14191] argparse doesn't allow optionals within positionals

2013-03-29 Thread paul j3
paul j3 added the comment: Glenn I looked at your t18a.py test case parser = ArgumentParser() parser.add_argument('--foo', dest='foo') parser.add_argument('--bar', dest='bar') parser.add_argument('foz') parser.add_argument('baz', nargs='*') and parse variations on 'a b c d

[issue17571] broken links on Lib/datetime.py docstring

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: This is the module docstring: Concrete date/time and related types -- prototype implemented in Python. See http://www.zope.org/Members/fdrake/DateTimeWiki/FrontPage See also http://dir.yahoo.com/Reference/calendars/ For a primer on DST, including many current

[issue17571] broken links on Lib/datetime.py docstring

2013-03-29 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Let's just update the docstring: Concrete date/time and related types. See also http://dir.yahoo.com/Reference/calendars/ For a primer on DST, including many current DST rules, see http://webexhibits.org/daylightsaving/ Sources for time zone and DST

[issue17572] strptime exception context

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: The fix LGTM. The attached patch tweaks a bit your test and adds another one to check _strptime directly. -- nosy: +ezio.melotti stage: - commit review Added file: http://bugs.python.org/file29605/issue17572.diff

[issue17571] broken links on Lib/datetime.py docstring

2013-03-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Shouldn't we link to IANA for timezones information? http://www.iana.org/time-zones/repository/tz-link.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17571

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: You also end up with this nice bit of inconsistency: x = myint(7) from operator import index range(10)[6:x] range(6, 7) range(10)[6:x.__index__()] range(6, 8) range(10)[6:index(x)] range(6, 7) Granted, it's insane to have __index__() return a different

[issue17576] PyNumber_Index() is not int-subclass friendly

2013-03-29 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: operator.index() is just a thin wrapper around PyNumber_Index(). The documentation for operator.index() claims that it is equivalent to calling obj.__index__() but for subclasses of int, this is not true. In fact, PyNumber_Index() first does (e.g. in

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- title: PyNumber_Index() is not int-subclass friendly - PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie) ___ Python tracker rep...@bugs.python.org

[issue17564] test_urllib2_localnet fails

2013-03-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: LGTM - please make the changes in all versions of python. ( I had the same patch pending locally and was waiting for my push-merge cycle time) -- ___ Python tracker rep...@bugs.python.org

[issue17564] test_urllib2_localnet fails

2013-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset f668d2267303 by Ezio Melotti in branch '3.3': #17564: skip test_bad_address unless the tests are run with -unetwork/-uall. http://hg.python.org/cpython/rev/f668d2267303 New changeset a472fece6f31 by Ezio Melotti in branch '2.7': #17564: skip

[issue17564] test_urllib2_localnet fails

2013-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset ae5c4a9118b8 by Ezio Melotti in branch 'default': #17564: merge with 3.3. http://hg.python.org/cpython/rev/ae5c4a9118b8 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17564

[issue17564] test_urllib2_localnet fails

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17564

[issue17577] Add lookahead/peek wrapper to itertools

2013-03-29 Thread Phil Connell
New submission from Phil Connell: A recipe often requested on the likes of stackoverflow and activestate is a way to look 'ahead' in an iterator, without altering the values returned for subsequent next() calls. Last time this came up on python-ideas, it got a reasonable reception:

[issue17577] Add lookahead/peek wrapper to itertools

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17577 ___

[issue14679] Define an __all__ for html.parser

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: The module only defines 2 public objects: HTMLParser and HTMLParseError. The attached patch adds an __all__ with only HTMLParser. Should HTMLParseError be included too, even though it's deprecated and will be removed in 3.5? @Michele: __all__ won't fix that,

[issue12271] panel.h is not found even if it's installed on various flavours of SUSE

2013-03-29 Thread Kenneth O'Brien
Kenneth O'Brien added the comment: Removed generated files from patch. Requesting review. -- Added file: http://bugs.python.org/file29608/ken-ncurses-suse-update.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12271

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-03-29 Thread Eric Snow
Eric Snow added the comment: Would it be okay to do a check on __index__ after the PyLong_Check() succeeds? Something like this: if (PyLong_Check(item) item-ob_type-tp_as_number-nb_index == PyLong_Type.tp_as_number-nb_index) { Py_INCREF(item); return item; }

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-03-29 Thread Alex Gaynor
Alex Gaynor added the comment: In my opinion that should use PyLong_CheckExact -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17576 ___

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

2013-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 30, 2013, at 12:29 AM, Eric Snow wrote: Would it be okay to do a check on __index__ after the PyLong_Check() succeeds? Something like this: if (PyLong_Check(item) item-ob_type-tp_as_number-nb_index == PyLong_Type.tp_as_number-nb_index)

[issue17577] Add lookahead/peek wrapper to itertools

2013-03-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Based on previous discussions on the subject, I'm disinclined to accept a lookahead tool for the itertools module. Adding a recipe using tee() may be reasonable though. I'll mark this a low priority and will come back an give in more consideration at

[issue17577] Add lookahead/peek wrapper to itertools

2013-03-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unmarking the needs patch stage. A rush to implementation would be premature at this point. -- stage: needs patch - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17577

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-03-29 Thread Todd Rovito
Todd Rovito added the comment: I tried both TCL/TK 8.5.13 and TCL/TK 8.6 with the latest Python 3.4 on Windows 7 the editor window never showed a line as I stepped through the debugger. I am going to try in Mac/Linux to make sure I am not crazy that a line in the editor window does indicate

[issue15331] Codecs docs should explain that the bytes-bytes shorthand aliases are missing

2013-03-29 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15331 ___ ___ Python-bugs-list mailing

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-03-29 Thread Todd Rovito
Todd Rovito added the comment: Before I forget here are the general steps I followed to get TCL/TK 8.5.13 and 8.6 to work. For TCL/TK 8.6 I had to change the actual Visual Studio 2010 project. Generally you have to follow the steps in readme.txt located in PCBuild of the source tree.

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: -Python 3.2 ___ Python tracker

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset bc73223e4c10 by Ezio Melotti in branch '2.7': #17526: fix an IndexError raised while passing code without filename to inspect.findsource(). Initial patch by Tyler Doyle. http://hg.python.org/cpython/rev/bc73223e4c10 New changeset 39e103c1577e by

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-03-29 Thread Todd Rovito
Todd Rovito added the comment: I have confirmed that Linux and Mac work great but Windows fails to highlight the current line in the editor window. Next I will try and find/file a bug with the TCL/TK folks. -- ___ Python tracker

[issue17533] test_xpickle fails with cannot import name precisionbigmemtest or cannot import name _2G

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: Can you try the attached patch? -- keywords: +patch nosy: +ezio.melotti Added file: http://bugs.python.org/file29609/issue17533.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17533

[issue17539] Use the builtins module in the unittest.mock.patch example

2013-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset b0c0a03b8033 by Ezio Melotti in branch '3.3': #17539: fix MagicMock example. Patch by Berker Peksag. http://hg.python.org/cpython/rev/b0c0a03b8033 New changeset d5d6209745ab by Ezio Melotti in branch 'default': #17539: merge with 3.3.

[issue17539] Use the builtins module in the unittest.mock.patch example

2013-03-29 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker

[issue17548] unittest.mock: test_create_autospec_unbound_methods is skipped

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17548 ___ ___

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2013-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: PSF accepts contributions from authors under Contributor Agreements. It does not grab software from 3rd parties, no matter how lenient the license. Roger, if you assigned all rights to the University, you should talk with them about either getting some back

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17546 ___ ___ Python-bugs-list

[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: After the last exchange on #7083, Guido emailed me that I could/should revised the doc a bit, but he said he did *not* want the details explained because he regards them as CPython implementation details and not part of the language definition. I have not

[issue17533] test_xpickle fails with cannot import name precisionbigmemtest or cannot import name _2G

2013-03-29 Thread Ned Deily
Ned Deily added the comment: There's a typo in the patch and None won't work. With the following change to the patch: -_2G = _1G = None +_2G = _1M = 0 the test passes on OS X 10.5 against the system 2.5.1 and an installed 2.4.4. Thanks! -- stage: needs patch - commit review

[issue17551] Windows - accessing drive with nothing mounted forces user interaction

2013-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bob, when replying by email, please snip everything except your reply, and perhaps a specific small quote. Since the doc says exists returns True or False, raising a popup seems like a bug to be fixed. -- nosy: +terry.reedy versions: +Python 3.4