[issue18105] ElementTree writes invalid files when UTF-16 encoding is specified

2013-05-30 Thread Adam Urban
New submission from Adam Urban: import xml.etree.ElementTree as ET tree = ET.parse("myinput.xml") tree.write("myoutput.xml", encoding="utf-16") ...Output is a garbled mess, often a mix of UTF-8 and UTF-16 bytes... UTF-8 output works fine, but when UTF-16, UTF-16LE, or UTF-16BE are specified the

[issue18078] threading.Condition to allow notify on a specific waiter

2013-05-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue18104] Idle: make human-mediated GUI tests usable

2013-05-30 Thread R. David Murray
R. David Murray added the comment: Since you *don't* want these to be autodiscovered by testing frameworks, perhaps h_test_.py would be a better naming scheme. -- nosy: +r.david.murray ___ Python tracker _

[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16fea8b0f8c4 by Terry Jan Reedy in branch '3.3': Issue #15392: Finish news entry. http://hg.python.org/cpython/rev/16fea8b0f8c4 -- ___ Python tracker _

[issue18103] Create a GUI test framework for Idle

2013-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I opened #18104 for the human-required gui tests described in the last paragraph above. -- ___ Python tracker ___ _

[issue18104] Idle: make human-mediated GUI tests usable

2013-05-30 Thread Terry J. Reedy
New submission from Terry J. Reedy: 23 of the 62 idlelib/*.py files have an 'if __name__ ...' test that brings up a tkinter gui widget and waits for the human tester to do ... something. Problems: 0. They are a bit of a nuisance to run individually: either type python -m idlelib.SomeLongNameYou

[issue1500504] Alternate RFC 3986 compliant URI parsing module

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

[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6159916c712e by Terry Jan Reedy in branch '2.7': Issue #15392: Use test.test_support, as used test.support in 3.x. http://hg.python.org/cpython/rev/6159916c712e -- ___ Python tracker

[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Ezio Melotti
Ezio Melotti added the comment: For the other modules we just use test.test_support on 2.x and test.support in 3.x, without using try/except and without trying to maintain source compatibility with both. You might get a merge conflict every once in a while, but I don't think that's a big deal

[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Ned Deily
Ned Deily added the comment: The test.support module was renamed in Python 3 from test.test_support in Python 2. While the 3x support has expanded and diverged somewhat, with a bit of try hacking it should be possible to minimize the source differences between the 2.7 and 3.x tests.

[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Biggest change is no support module in 2.7, so in test_idle.py import inside try:except to skip if dependencies not present. Minor changes in CallTips.py and test_calltips.py. Buildbots are fine. This meets my initial goal; issue done. I opened #18103 for con

[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: commit review -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7883] CallTips.py _find_constructor does not work

2013-05-30 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7883] CallTips.py _find_constructor does not work

2013-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: #12520 deleted _find_constructor in 3.x as it works with, but only with old-style classes (gone in 3.x) and just uses getattr(ob, '__init__', None). I believe the tests in this patch duplicate existing tests at the bottom of CallTips.py (increased from 10 to 3

[issue16226] IDLE crashes on *File / Path browser*

2013-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Test has been committed on all three branches as part of #15392 -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue18103] Create a GUI test framework for Idle

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

[issue18103] Create a GUI test framework for Idle

2013-05-30 Thread Terry J. Reedy
New submission from Terry J. Reedy: This is a follow-up to #15392, which created the Idle test framework. The similar endpoint for this issue will be a framework for tests that require a gui resource, at least one prototype test file, and documentation of Idle practice. At the moment, complete

[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Mark Dickinson
Mark Dickinson added the comment: > +1 for removing all occurrences of "register". Seconded. -- ___ Python tracker ___ ___ Python-bug

[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread Łukasz Langa
Changes by Łukasz Langa : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue18090] dict_contains first argument declared register, and shouldn't be

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

[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Larry Hastings
Larry Hastings added the comment: Having re-read the spec a couple times, I am now thoroughly confused and don't know what to think. Certainly I now believe I was previously misinterpreting aspects of the spec. I still think removing "register" from the parameter lists of external functions

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2013-05-30 Thread Berker Peksag
Changes by Berker Peksag : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue18098] "Build Applet.app" build fails on OS X 10.8

2013-05-30 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file30431/Tante Girang.uhtml ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset b07ad4b5e349 by Łukasz Langa in branch 'default': Fixed #18075 - Infinite recursion tests triggering a segfault on Mac OS X http://hg.python.org/cpython/rev/b07ad4b5e349 -- nosy: +python-dev ___ Python tr

[issue18098] "Build Applet.app" build fails on OS X 10.8

2013-05-30 Thread Ayank koernia
Changes by Ayank koernia : Added file: http://bugs.python.org/file30431/Tante Girang.uhtml ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18052] IDLE 3.3.2 Windows taskbar icon regression

2013-05-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: I can now reproduce it, and asked on SO (http://stackoverflow.com/questions/16843727/) -- ___ Python tracker ___ _

[issue15392] Create a unittest framework for IDLE

2013-05-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 93eb15779050 by Terry Jan Reedy in branch '2.7': Issue #15392: Create a unittest framework for IDLE, 2.7 version. http://hg.python.org/cpython/rev/93eb15779050 -- ___ Python tracker

[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > If "register" is irrelevant to calling convention, then why would the C > standard preclude using it in an external declaration? Maybe here "external" is the opposite of "static": "register" is OK in a single translation unit (where the calling conventi

[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Stefan Krah
Stefan Krah added the comment: +1 for removing all occurrences of "register". Regarding the grammar, we have: function-definition: declaration-specifiers-opt declarator declaration-list-opt compound-statement So I think that "part of an external declaration" refers to the outermost decl

[issue18040] SIGINT catching regression on windows in 2.7

2013-05-30 Thread Tim Golden
Tim Golden added the comment: Thanks for the feedback, David. Closing as won't fix. -- resolution: -> wont fix stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue18102] except-clause with own exception class inside generator can lead to confusing warning on termination

2013-05-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I will keep this issue alive so that I can check whether it is fixed by further changes. -- versions: +Python 3.4 ___ Python tracker ___ __

[issue18040] SIGINT catching regression on windows in 2.7

2013-05-30 Thread David Gilman
David Gilman added the comment: So the original motivation here was to piggyback on SIGINT in order to do something like this on Windows: http://stackoverflow.com/questions/132058/showing-the-stack-trace-from-a-running-python-application I've given Tim's patch a shot and I see that I've been b

[issue17987] test.support.captured_stderr, captured_stdin not documented

2013-05-30 Thread Dmi Baranov
Dmi Baranov added the comment: Amended -- Added file: http://bugs.python.org/file30430/issue17987_6.patch ___ Python tracker ___ ___ P

[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Larry Hastings
Larry Hastings added the comment: I poked around in a draft of the next ANSI C standard dated April 12 2011. They don't have much to say about the semantics of "register". The definition is found in 6.7.1.6: A declaration of an identifier for an object with storage-class specifier "reg

[issue18045] get_python_version is not import in bdist_rpm.py

2013-05-30 Thread Dmi Baranov
Dmi Baranov added the comment: I would agree that the patch is incorrect, if it was produced with additional refactoring or changes in functionality, not described in the issue. It's just a PEP8 compliance at package level. -- ___ Python tracker

[issue18083] _sysconfigdata.py is installed in an arch-independent directory

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18090] dict_contains first argument declared register, and shouldn't be

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18091] Remove PyNoArgsFunction

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18102] except-clause with own exception class inside generator can lead to confusing warning on termination

2013-05-30 Thread R. David Murray
R. David Murray added the comment: You are almost certainly correct. MyException can get set to None during interpreter shutdown. There are a couple of active issues and a PEP that address this type of problem, so this issue probably isn't needed, but I'll leave that up to Antoine, who is wo

[issue18102] except-clause with own exception class inside generator can lead to confusing warning on termination

2013-05-30 Thread Hagen Fürstenau
Hagen Fürstenau added the comment: s/digged/dug/ :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18101] Tk.split() doesn't work with nested Unicode strings

2013-05-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue18102] except-clause with own exception class inside generator can lead to confusing warning on termination

2013-05-30 Thread Hagen Fürstenau
New submission from Hagen Fürstenau: The following code will sometimes warn about an ignored TypeError('catching classes that do not inherit from BaseException is not allowed',) on termination: class MyException(Exception): pass def gen(): try: yield except MyException:

[issue18045] get_python_version is not import in bdist_rpm.py

2013-05-30 Thread Éric Araujo
Éric Araujo added the comment: Thanks for catching this. I think the patch is incorrect when it replaces “from sysconfig import get_python_version” by “from distutils.sysconfig import get_python_version”; it should only add the missing import in bdist_rpm.py, not touch the other modules. ---

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And here is a patch which allows Tk.splitline() and Tk.split() to work with Tcl_Obj. It also includes some other minor fixes to support Tcl 8.6. The patch includes a fix for issue18101. -- Added file: http://bugs.python.org/file30429/tkinter_split.pa

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are a patch which quickly switch off Tcl_Obj. -- Added file: http://bugs.python.org/file30428/tkinter_no_tcl_obj.patch ___ Python tracker ___

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file29477/tkinter_splitlist.patch ___ Python tracker ___ ___ Python-bugs-li

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-05-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: "int len = pbuf.len;" Why doesn't gcc emit a warning here? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I considered this option. A sure way to get rid of this and future changes in Tcl types, is get rid of Tcl_Obj at all and always return strings (if it is not a number or list). The drawback of this method is that occurs unnecessary conversion between Tc

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Extension Modules -Build nosy: +pitrou stage: -> needs patch versions: +Python 2.7 -Python 2.6 ___ Python tracker ___ _

[issue18101] Tk.split() doesn't work with nested Unicode strings

2013-05-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +gpolo, roger.serwy versions: +Python 2.7 Added file: http://bugs.python.org/file30427/tkinter_split_nested_unicode-2.7.patch ___ Python tracker _

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2013-05-30 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18101] Tk.split() doesn't work with nested Unicode strings

2013-05-30 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Tk.split() doesn't work with nested Unicode strings, but works with nested bytes. >>> import tkinter >>> t = tkinter.Tcl() >>> t.split('a {b c}') ('a', ('b', 'c')) >>> t.split(b'a {b c}') ('a', ('b', 'c')) >>> t.split(('a {b c}',)) ('a {b c}',) >>> t.split(

[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: On 30 May, 2013, at 14:50, STINNER Victor wrote: > > STINNER Victor added the comment: > >> The patch changes the maximum stack size from 8 to 16 MByte, neither of >> which is huge and shouldn't cause other problems. > > On Mac OS X: Is the memory allocate

[issue18100] socket.sendall() cannot send buffers of 2GB or more

2013-05-30 Thread Tom van Leeuwen
New submission from Tom van Leeuwen: When using socket.sendall() to send a buffer of 2GB or more (for example, numpy.zeros(2*GB, dtype=numpy.uint8) ), it doesn't send anything at all. In socketmodule.c, socket.sendall() sock_sendall uses an int for len, while this should be a Py_ssize_t.

[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread STINNER Victor
STINNER Victor added the comment: > The patch changes the maximum stack size from 8 to 16 MByte, neither of which > is huge and shouldn't cause other problems. On Mac OS X: Is the memory allocated at Python startup, or on demand, as the stack grows? If I am correct, the physical memory is alloc

[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd prefer to keep the default recursion limit the same as on Linux, changing the recursion limit on OSX would just introduce an unnecessary difference between the two platforms. The patch changes the maximum stack size from 8 to 16 MByte, neither of which i

[issue18075] Infinite recursion tests triggering a segfault

2013-05-30 Thread STINNER Victor
STINNER Victor added the comment: > Appearently the default maximum stack size isn't large enough for the default > value of the recursion limit. Why not changing the recursion limit instead of the size of the stack? -- nosy: +haypo ___ Python track

[issue18040] SIGINT catching regression on windows in 2.7

2013-05-30 Thread Richard Oudkerk
Richard Oudkerk added the comment: I am not to familiar with the signal handling machinery. (I only did some refactoring to expose the event handle already used by time.sleep().) The change looks reasonable, but I am also not sure how necessary it is. -- _

[issue18099] wsgiref sets Content-Length: 0 on 304 Not Modified

2013-05-30 Thread Florent Xicluna
New submission from Florent Xicluna: While testing wsgiref w.r.t RFC2616, I noticed that it sets the Content-Length to 0 when the application returns 304 Not Modified. This is a violation of RFC 2616 section 10.3.5. And the net effect is a weird bug with some browsers (tested with Chrome 27)

[issue18050] embedded interpreter or virtualenv fails with "ImportError: cannot import name MAXREPEAT"

2013-05-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I just think that the patch only silences an import error. Is test_re passed with this patch on 32-bit platform with <=2.7.3 static binaries and 2.7.5 py-files? -- ___ Python tracker

[issue17375] Add docstrings to methods in the threading module

2013-05-30 Thread moijes12
moijes12 added the comment: Attached is a patch built against Python 3.3. I've taken karlcow's patch and used it for Python 3. I have run the test suite(./python -m test -j3) and the sanity check (make patchcheck) and they worked fine. -- nosy: +moijes12 Added file: http://bugs.python

[issue18045] get_python_version is not import in bdist_rpm.py

2013-05-30 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue18051] get_python_version undefined in bdist_rpm.py

2013-05-30 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> committed/rejected superseder: -> get_python_version is not import in bdist_rpm.py type: -> behavior ___ Python tracker ___ ___

[issue18040] SIGINT catching regression on windows in 2.7

2013-05-30 Thread Tim Golden
Tim Golden added the comment: Personally, I'm +0 at best on this change. It would achieve consistency with Linux but I'm not sure what you'd do with such functionality. Adding Richard Oudkerk who did the rework of the interrupt signal for 3.3. Richard, any opinion on this? -- nosy: +s

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

2013-05-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: That sucks. A patch should be easy, but I probably won't get around to that until sunday. -- ___ Python tracker ___ __

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

2013-05-30 Thread Ned Deily
Changes by Ned Deily : -- nosy: +benjamin.peterson, georg.brandl, larry priority: normal -> release blocker resolution: fixed -> stage: committed/rejected -> needs patch status: closed -> open ___ Python tracker _

[issue18098] "Build Applet.app" build fails on OS X 10.8

2013-05-30 Thread Ned Deily
Ned Deily added the comment: Committed for release in 2.7.6. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue18098] "Build Applet.app" build fails on OS X 10.8

2013-05-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset cfdb4598c935 by Ned Deily in branch '2.7': Issue #18098: The deprecated OS X Build Applet.app fails to build on http://hg.python.org/cpython/rev/cfdb4598c935 -- nosy: +python-dev ___ Python tracker

[issue18098] "Build Applet.app" build fails on OS X 10.8

2013-05-30 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file30420/issue18098_build_applet.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue18098] "Build Applet.app" build fails on OS X 10.8

2013-05-30 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file30423/issue985064_plist_validation_v2.patch ___ Python tracker ___ ___ Python

[issue18098] "Build Applet.app" build fails on OS X 10.8

2013-05-30 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file30424/issue18098_build_applet_rev1.patch ___ Python tracker ___ ___ Python-bugs-

[issue18098] "Build Applet.app" build fails on OS X 10.8

2013-05-30 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file30423/issue985064_plist_validation_v2.patch ___ Python tracker ___ ___ Python-b