[issue17578] Update devguide for 3.2 in security-fix-only mode

2013-03-29 Thread Ned Deily
New submission from Ned Deily: The attached patch updates the Developer's Guide to reflect the changes in the development process now that the 3.2 branch has closed for bug fixes and has moved to security-fix-only status. -- components: Devguide files: devguide_32_to_security_mode.patc

[issue17483] Can not tell urlopen not to check the hostname for https connections.

2013-03-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is an approach to solve this. I think, going this way is safe. I shall append with the tests and docs. -- Added file: http://bugs.python.org/file29610/17483-v1-notests-nodocs.patch ___ Python tracker

[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

[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

[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 done

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

2013-03-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[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 or

[issue17548] unittest.mock: test_create_autospec_unbound_methods is skipped

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[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 tracke

[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. http://hg.pyt

[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 __

[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

[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 E

[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 track

[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. readm

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

2013-03-29 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[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 w

[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

[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 some

[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-

[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 ___ ___ Python-bugs-l

[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;

[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 ___

[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, b

[issue17577] Add lookahead/peek wrapper to itertools

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[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: http://co

[issue17564] test_urllib2_localnet fails

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[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 _

[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 test_ba

[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 ___

[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 : -- title: PyNumber_Index() is not int-subclass friendly -> PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie) ___ Python tracker

[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 Pyth

[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__() r

[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 ___ ___

[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 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 da

[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

[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 -

[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 ___ ___

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

2013-03-29 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +Todd.Rovito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 ___

[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

[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 __

[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 __

[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. -- ___

[issue17568] re: Infinite loop with repeated empty alternative

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett type: enhancement -> behavior ___ Python tracker ___ ___

[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

[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 ___ ___ Pyth

[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 implementatio

[issue17549] Some exceptions not highlighted in exceptions documentation.

2013-03-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ P

[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 benchma

[issue6671] webbrowser doesn't respect xfce default browser

2013-03-29 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[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 3.

[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 be

[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 this

[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 failure

[issue17575] HTTPConnection.send

2013-03-29 Thread Chris Angelico
Changes by Chris Angelico : -- nosy: +Rosuav ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[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 of

[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 = Fals

[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 as

[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' wrote: > > 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/refact

[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 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

[issue17573] add ElementTree XML processing benchmark to benchmark suite

2013-03-29 Thread Stefan Behnel
Changes by Stefan Behnel : -- nosy: +brett.cannon, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[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: add_et_benchmar

[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 = _TimeRE_cache.compi

[issue17514] Add the license to argparse.py

2013-03-29 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman : -- nosy: +djc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[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

[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 ge