[issue18054] Add more exception related assertions to unittest

2013-05-24 Thread Nick Coghlan
New submission from Nick Coghlan: When creating the error handling tests for the new ipaddress module, one of the things I added was an "assertCleanError" method on the test cases [1]. This is a wrapper around assertRaisesRegex which ensures that either no exception context is set, or if there

[issue18053] Add checks for Misc/NEWS in make patchcheck

2013-05-24 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: I am not sure which component patchcheck corresponds to, so I have left that out and added people on nosy list in http://bugs.python.org/issue17953. If I have missed the concerned maintainer, kindly let me know. -- nosy: +brett.cannon, pitrou, r.davi

[issue18053] Add checks for Misc/NEWS in make patchcheck

2013-05-24 Thread Yogesh Chaudhari
New submission from Yogesh Chaudhari: Based on the threads about http://mail.python.org/pipermail/python-committers/2013-May/002529.html and discussion on http://bugs.python.org/issue17953; It would be good to add some (very high level)checks inside patchcheck that will tell the user if Misc/N

[issue12641] Remove -mno-cygwin from distutils

2013-05-24 Thread Renato Silva
Renato Silva added the comment: ERRATA. Where you see: "[1] clearly did not come to reality." Please read: "[0] clearly did not come to reality." [0] http://cygwin.com/ml/cygwin/2009-03/msg00802.html -- ___ Python tracker

[issue12641] Remove -mno-cygwin from distutils

2013-05-24 Thread Renato Silva
Renato Silva added the comment: > MinGW has never "supported" the -mno-cygwin option. It has simply > tolerated it. The option never did anything useful and at some point > it became an error to even supply it. I'm not sure exactly when but > some time after 4.4 sounds reasonable to me. Hi Os

[issue17953] sys.modules cannot be reassigned

2013-05-24 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: That sounds good. I will open up an issue (if not for anything else other than to get more eyes on this issue) -- ___ Python tracker ___

[issue17953] sys.modules cannot be reassigned

2013-05-24 Thread R. David Murray
R. David Murray added the comment: I think that is a reasonable suggestion for an enhancement to patchcheck (though I think Brett had a good reason to add a news entry in this particular case). You could open a new issue with that suggestion. On the other hand, patchcheck always warns about

[issue17953] sys.modules cannot be reassigned

2013-05-24 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: You are most welcome Brett. I am just starting to contribute with this doc fix. Didn't think a small detail in it will generate such a long debate in the python-committers mailing list. Is there a plan in action for 'fixing' Misc/NEWS. I now realize that th

[issue18052] IDLE 3.3.2 Windows taskbar icon regression

2013-05-24 Thread Terry J. Reedy
New submission from Terry J. Reedy: Windows 7 (32 bit?), 32 bit IDLE 3.3.2: When I start from the start menu, the taskbar icon is the red Tk icon instead of the IDLE icon. If I try to pin the Tk icon to the task bar, a useless pythonw icon is pinned instead. The Tk icon goes when the program i

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2013-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can one of you three answer Kuchling's question about formatting a data entry that consists of a function pointer with function signature? -- nosy: +eric.araujo, ezio.melotti, georg.brandl ___ Python tracker

[issue18050] _sre.MAXREPEAT not defined in 2.7.3

2013-05-24 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue18009] os.write.__doc__ is misleading

2013-05-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7935844c6737 by Benjamin Peterson in branch '3.3': indicate that read/write work with bytes (closes #18009) http://hg.python.org/cpython/rev/7935844c6737 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -

[issue17953] sys.modules cannot be reassigned

2013-05-24 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Yogesh, but I went with different wording that I came up with on the train the other day while offline. But you did remind me to update Misc/NEWS (which led to a discussion on python-committers), so thanks for that. -- resolution:

[issue17953] sys.modules cannot be reassigned

2013-05-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f8160e45cb7 by Brett Cannon in branch '3.3': Issue #17953: document that sys.modules shouldn't be replaced (thanks http://hg.python.org/cpython/rev/4f8160e45cb7 New changeset b60ae4ebf981 by Brett Cannon in branch 'default': merge fix for issue #17

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2013-05-24 Thread A.M. Kuchling
A.M. Kuchling added the comment: One question about the patch: how to give the prototype expected for the function? I currently have it as: char *(*PyOS_ReadlineFunctionPointer)(FILE *stdin, FILE *stdout, char *prompt) Would it be better with a trivial function name, as in: char *func(FILE *

[issue18050] _sre.MAXREPEAT not defined in 2.7.3

2013-05-24 Thread Alex Burka
Changes by Alex Burka : -- nosy: +Alex.Burka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue2053] IDLE - standardize dialogs

2013-05-24 Thread Ned Deily
Ned Deily added the comment: Attached is a refreshed version of the patch against current 2.7 tip. I did a quick visual comparison with the original but make no guarantees that it is totally accurate. I have no plans to work on it further myself. -- nosy: +ned.deily Added file: http

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2013-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not a C-api user, but the entries are pretty clear to me and seem ready to apply. The usage examples are a nice touch. OS Utilites is not where I would expect interpreter loop hooks, so I think the current location is better. -- stage: -> commit

[issue1554133] PyOS_InputHook() and related API funcs. not documented

2013-05-24 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a proposed patch to the c-api manual that describes these two pointers. I put them in the 'very high-level API' section. Maybe they belong in the Operating System Utilities section instead, but I think they're intertwined with the interpreter loop and t

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-05-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: As a policy, the standard library should accept non-ASCII host names ("U-labels") wherever possible. I.e the hostname parameter of match_hostname should allow for U-labels (as well as A-labels). When returning names, it should always return the data "as-is",

[issue18009] os.write.__doc__ is misleading

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

[issue18051] get_python_version undefined in bdist_rpm.py

2013-05-24 Thread Craig McDaniel
Craig McDaniel added the comment: Closing; duplicate of 18045 -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ _

[issue18051] get_python_version undefined in bdist_rpm.py

2013-05-24 Thread Craig McDaniel
New submission from Craig McDaniel: Running "setup.py bdist_rpm" throws an exception on some libraries (e.g. - simplejson) since 2.7.4 due to introduction of get_python_version(): Traceback (most recent call last): File "setup.py", line 103, in run_setup(True) File "setup.py", line 99,

[issue2053] IDLE - standardize dialogs

2013-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have not looked at the details, so cannot currently comment as to whether the idea should be pursued or dropped. Perhaps when Roger is done with overt bugs he will take a look and offer an opinion. -- assignee: kbk -> nosy: +roger.serwy versions: +P

[issue18050] _sre.MAXREPEAT not defined in 2.7.3

2013-05-24 Thread Samuel John
New submission from Samuel John: As also discussed at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704084 and https://github.com/mxcl/homebrew/pull/19300, Python 2.7.4 and 2.7.5 seem to have added an `from _sre import MAXREPEAT` to the sre_compile.py, sre_parse.py and sre_constants.py modu

[issue18003] lzma module very slow with line-oriented reading.

2013-05-24 Thread Éric Araujo
Éric Araujo added the comment: A higher-level interface to abstract differences between gzip, xz and others is actually provided in the tarfile module. (zipfile is left out and its file objects have different methods, but that’s another issue. shutil provides even higher-level functions to w

[issue18000] _md5 should be built if _ssl cannot be built

2013-05-24 Thread Éric Araujo
Éric Araujo added the comment: The other bug report classifies the request behavior as a new feature, so it could not go into 2.7. -- nosy: +eric.araujo, pitrou ___ Python tracker _

[issue18041] mention issues with code churn in the devguide

2013-05-24 Thread Éric Araujo
Éric Araujo added the comment: Tshepang is referring to cases where a patch changes one line but affects ten other lines because a paragraph was rewrapped, modernizing code, updating tests to use latest helpers, etc. I’ve actually seen two contrary kinds of advice: do cleanups when you touch t

[issue7727] xmlrpc library returns string which contain null ( \x00 )

2013-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file30343/xmlrpc_dump_invalid_string-2.7.patch ___ Python tracker ___ ___ P

[issue18041] mention issues with code churn in the devguide

2013-05-24 Thread Éric Araujo
Éric Araujo added the comment: Moving things around. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7727] xmlrpc library returns string which contain null ( \x00 )

2013-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file30339/xmlrpc_dump_invalid_string.patch ___ Python tracker ___ ___ Python

[issue7727] xmlrpc library returns string which contain null ( \x00 )

2013-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updating tests I found some related errors. XML-RPC doesn't work in general case for non UTF-8 encoding: >>> import xmlrpclib >>> xmlrpclib.dumps(('\u20ac',), encoding='iso-8859-1') '\n\n\\u20ac\n\n\n' >>> xmlrpclib.dumps((u'\u20ac',), encoding='iso-8859-1')

[issue17272] request.full_url: unexpected results on assignment

2013-05-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in 3.4. I dont think backporting is a good idea just to support assignment to .full_url. Thinking of this further, the idea of reusing request by assigning to .full_url may not be a good idea, because if you set .full_url to a completely differe

[issue14455] plistlib unable to read json and binary plist files

2013-05-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've started work on integrating the latest patch. Some notes (primarily for my own use): * I'll drop support for the JSON format, that format is not used by Apple's libraries (although the plutil tool can convert plists to JSON) * The patch (plistlib_wit

[issue17701] Improving strftime documentation

2013-05-24 Thread Éric Araujo
Éric Araujo added the comment: Looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue17272] request.full_url: unexpected results on assignment

2013-05-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 51c5870144e7 by Senthil Kumaran in branch 'default': Fix #17272 - Make Request.full_url and Request.get_full_url return same result under all circumstances. http://hg.python.org/cpython/rev/51c5870144e7 -- _

[issue4304] build mode which fails for build failures in extensions

2013-05-24 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone answer the question pointed to by msg109816 i.e. can all of the buildbots build all of the expected extensions? -- ___ Python tracker ___

[issue2053] IDLE - standardize dialogs

2013-05-24 Thread Mark Lawrence
Mark Lawrence added the comment: Bump as IDLE is now being actively developed. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue18049] Re-enable threading test on OSX

2013-05-24 Thread Ronald Oussoren
New submission from Ronald Oussoren: I recently notied that test.test_threading.ThreadingExceptionTests.test_recursion_limit is disabled for debug builds. The attached patch re-enables this test case and fixes the crash be increasing the stack size for new threads. The disadvantage of the

[issue11101] plistlib has no graceful way of handing None values

2013-05-24 Thread Ronald Oussoren
Ronald Oussoren added the comment: At first I didn't like the proposal, but when I looked at the JSON module I noticed it has similar functionality for ignoring keys that cannot be represented in a JSON file. I'll look into this after merging #14455. The JSON library has two other options tha

[issue17269] getaddrinfo segfaults on OS X when provided with invalid arguments combinations

2013-05-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue17482] functools.update_wrapper mishandles __wrapped__

2013-05-24 Thread Łukasz Langa
Changes by Łukasz Langa : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue17482] functools.update_wrapper mishandles __wrapped__

2013-05-24 Thread Nick Coghlan
Nick Coghlan added the comment: Georg, just a heads up that I was informed of a fairly significant bug in the __wrapped__ handling which some folks doing function introspection had been assuming was a feature. I'd like to fix it for 3.3.3, but need your +1 as RM since it *will* break introspe

[issue17482] functools.update_wrapper mishandles __wrapped__

2013-05-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains

2013-05-24 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-05-24 Thread Christian Heimes
Christian Heimes added the comment: I finally found the correct RFC for wildcard matching. I think our implementation violates some recommendations. http://tools.ietf.org/html/rfc6125#section-6.4.2 http://tools.ietf.org/html/rfc6125#section-6.4.3 -- ___

[issue18048] Merging test_pep263.py and test_coding.py

2013-05-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: For a bug fix release, I consider refactoring of test cases inappropriate. If they really ought to be merged, I consider neither file name particularly descriptive, so perhaps a new file name should be used altogether (e.g. test_source_encoding). --

[issue18038] Unhelpful error message on invalid encoding specification

2013-05-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file30345/tokenizer_encoding_problem_msg.patch ___ Python tracker ___ ___

[issue17269] getaddrinfo segfaults on OS X when provided with invalid arguments combinations

2013-05-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4981d8eb401 by Ronald Oussoren in branch '2.7': Issue #17269: Workaround for a platform bug in getaddrinfo on OSX http://hg.python.org/cpython/rev/f4981d8eb401 New changeset 3c4a5dc29417 by Ronald Oussoren in branch '3.3': Issue #17269: Workaround

[issue12641] Remove -mno-cygwin from distutils

2013-05-24 Thread Oscar Benjamin
Oscar Benjamin added the comment: > Renato Silva added the comment: > > I must note that GCC 4.x *does* support -mno-cygwin, at least until 4.4, and at least the MinGW version. MinGW has never "supported" the -mno-cygwin option. It has simply tolerated it. The option never did anything useful an

[issue18038] Unhelpful error message on invalid encoding specification

2013-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a better patch with tests (see also issue18048). -- Added file: http://bugs.python.org/file30358/tokenizer_encoding_problem_msg.patch ___ Python tracker

[issue18041] mention issues with code churn in the devguide

2013-05-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: What does "churn" mean? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue18040] SIGINT catching regression on windows in 2.7

2013-05-24 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: +loewis, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue18038] Unhelpful error message on invalid encoding specification

2013-05-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: LGTM. -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue18048] Merging test_pep263.py and test_coding.py

2013-05-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: There are two test files for the same feature -- defining Python source code encodings (PEP 263). It is not clear where new tests should be added. Perhaps two files should be merged into the one file. test_pep263.py was added in 2002, test_coding.py was ad

[issue18011] Inconsistency between b32decode() documentation, docstring and code

2013-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are there any objections? -- assignee: docs@python -> serhiy.storchaka ___ Python tracker ___ ___

[issue17839] base64 module should use memoryview

2013-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It works only if input also supports slicing and this slicing is corresponded to bytes-slicing. It perhaps doesn't catch a non C-continuous buffers. Actually we need something like (unlikely cast() doesn't work with empty buffers): s = memoryview(s)