[issue6321] Reload Python modules when running programs

2009-06-21 Thread samwyse
New submission from samwyse : Every time IDLE is asked to run a program, it doesn't ensure that the modules referenced by the program are completely loaded. This can cause problems if one of those modules is also being edited, because once it is loaded, any subsequent changes are not compiled

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2009-06-21 Thread Michael K. Edwards
Michael K. Edwards added the comment: It would also be useful to point out that there is a shortcut in the interpreter itself (PyObject_RichCompareBool, in object.c) which checks the equivalent of id(a) == id(b) and bypasses __eq__/__ne__ if so. Since not every call to __eq__ passes through thi

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2009-06-21 Thread Michael K. Edwards
Michael K. Edwards added the comment: The implementation you are looking for is in object_richcompare, in http://svn.python.org/projects/python/branches/py3k/Objects/typeobject.c . It would be most accurate to say something like: The "object" base class, from which all user-defined classes

[issue6320] Standard string encodings should include GSM0.38

2009-06-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) priority: -> normal stage: -> needs patch versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker ___

[issue6320] Standard string encodings should include GSM0.38

2009-06-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: You should provide your code as a patch against the Python trunk. Also, unit tests should probably be part of Lib/test/test_codecs.py. -- nosy: +pitrou ___ Python tracker _

[issue1259434] Tix CheckList 'radio' option cannot be changed

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Just adding patch as a .diff -- keywords: +patch nosy: +gpolo versions: +Python 2.7, Python 3.1 -Python 2.6 Added file: http://bugs.python.org/file14335/issue1259434.diff ___ Python tracker

[issue1657] [patch] epoll and kqueue wrappers for the select module

2009-06-21 Thread Erik Gorset
Erik Gorset added the comment: The kqueue implementation is not working. It has a silly bug: - chl[i] = ((kqueue_event_Object *)ei)->e; + chl[i++] = ((kqueue_event_Object *)ei)->e; I've created issue 5910 and included a patch, which a

[issue1250469] Tix: PanedWindow.panes nonfunctional

2009-06-21 Thread Guilherme Polo
Changes by Guilherme Polo : -- versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1250469] Tix: PanedWindow.panes nonfunctional

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Is there some reason to prefer .split over .splitlist ? It is very likely that .split would still return a string if you had a single pane, while .splitlist would return a tuple with an item on it. Patch attached. -- keywords: +patch nosy: +gpolo Added

[issue6267] Cumulative patch to http and xmlrpc

2009-06-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Py-dev, Fredrik Lundh wrote "The xmlrpclib.py changes looks ok. I'll leave it to other reviewers to check the rest." -- nosy: +tjreedy ___ Python tracker __

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-21 Thread Fredrik Lundh
Fredrik Lundh added the comment: Did you look at the 1.3 alpha code base when you came up with this idea? Unfortunately, 1.3's _encode is used for a different purpose... I don't have time to test it tonight, but I suspect that 1.3's escape_data/escape_attrib functions might work better under

[issue4961] Inconsistent/wrong result of askyesno function in tkMessageBox

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: I guess this will have to be accepted without any tests, unless someone can come up with a way to test tk_messageBox under Windows and Mac. -- keywords: +patch Added file: http://bugs.python.org/file14333/stringify.diff

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-21 Thread Fredrik Lundh
Fredrik Lundh added the comment: Umm. Isn't _encode used to encode tags and attribute names? The charref syntax is only valid in CDATA sections and attribute values, which are encoded by the corresponding _escape functions. I suspect this patch will make things blow up on a non-ASCII tag/a

[issue6319] bdist_msi runs out of memory for large packages

2009-06-21 Thread Steven Bethard
Steven Bethard added the comment: Done in r73499 and r73500. Thanks! -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ __

[issue802310] tkFont may reuse font names

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Uhm, now I'm getting it at around 3 iterations with python-trunk. So, can't we just use a simple generator for this ? Patch attached. The same could be done for widget and callback naming. -- keywords: +patch Added file: http://bugs.python.org/file1433

[issue1522587] Tix.Grid patch

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Weird.. I guess no one ever used Tix.Grid ? -- nosy: +gpolo ___ Python tracker ___ ___ Python-bug

[issue869780] curselection() in Tkinter.py should return ints

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Closing this in favour of issue6181 as it contains several other minor fixes in Listbox that now have been tested in the tk_and_idle_maintenance branch. -- status: open -> closed superseder: -> Tkinter.Listbox several minor issues

[issue1600182] Tix ComboBox entry is blank when not editable

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: I don't have access to this file "issue_1600182.py" but it seems you are forgetting to instantiate Tix.Tk (which will load the 'tix' package) before creating the Tix.ComboBox. I'm closing this as it is not a bug in the python tix wrapper, and I believe the tix

[issue6319] bdist_msi runs out of memory for large packages

2009-06-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: The patch is fine, please apply. -- nosy: +loewis resolution: -> accepted ___ Python tracker ___ _

[issue6320] Standard string encodings should include GSM0.38

2009-06-21 Thread jwishnie
New submission from jwishnie : The standard string codecs for converting from unicode to strs does not include the GSM 0.38 char mapping used by GSM services (like SMS). I've written a codec for my use based on 'char_mapper' and the skeleton from gencodec.py, though it's a little complicated b

[issue6319] bdist_msi runs out of memory for large packages

2009-06-21 Thread Steven Bethard
New submission from Steven Bethard : Right now, bdist_msi can run out of memory when used for larger packages. (I found this problem working with NLTK.) The solution is really simple - just add a db.Commit() so that stuff gets flushed to disk more often. The attached patch does just that. I set

[issue3062] Turtle speed() function has no effect under Mac OS X

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Although turtle.py lives inside the tkinter package, this doesn't seem to be related to tkinter at all. I've set the "no selection" option for the Components now. -- components: -Tkinter nosy: +gpolo ___ Python trac

[issue1230] Tix HList class missing method implementation for info_bbox

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Closing in favour of issue1356969. -- resolution: -> duplicate status: open -> closed superseder: -> Tix.py class HList missing info_bbox, info_dragsite and info_dropsite ___ Python tracker

[issue1356969] Tix.py class HList missing info_bbox, info_dragsite and info_dropsite

2009-06-21 Thread Guilherme Polo
Changes by Guilherme Polo : -- title: Tix.py class HList missing info_bbox -> Tix.py class HList missing info_bbox, info_dragsite and info_dropsite ___ Python tracker ___

[issue1356969] Tix.py class HList missing info_bbox

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: There you go. -- Added file: http://bugs.python.org/file14330/missing_tixhlist_info_subcomands.diff ___ Python tracker ___ _

[issue1356969] Tix.py class HList missing info_bbox

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Should info_dragsite and info_dropsite be added too ? (I guess I would be too lucky to get an answer after ~3 years). I'm preparing a patch but I don't tend to use Tix, so it would be good if someone else wrote tests and at least tested the patch too. -

[issue4856] Remove checks for win NT

2009-06-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think it's easier if the patch just sits here for six more days; 3.1 won't take much longer. -- ___ Python tracker ___ __

[issue6314] logging.basicConfig(level='DEBUG', ...

2009-06-21 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into trunk and py3k. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue6266] cElementTree.iterparse & ElementTree.iterparse return differently encoded strings

2009-06-21 Thread nlopes
Changes by nlopes : Removed file: http://bugs.python.org/file14324/_elementtree.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue6266] cElementTree.iterparse & ElementTree.iterparse return differently encoded strings

2009-06-21 Thread nlopes
nlopes added the comment: Don't mind what I just said. I overlooked the N. I couldn't figure out what was going wrong with your solution. That works. Mine is a ... aham. :) -- ___ Python tracker _

[issue5450] test_tcl testLoadTk fails if DISPLAY defined but connect fails, instead of being skipped

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Fine, closing then. Committed as r73497 on py3k. -- status: open -> closed ___ Python tracker ___ _

[issue5450] test_tcl testLoadTk fails if DISPLAY defined but connect fails, instead of being skipped

2009-06-21 Thread R. David Murray
R. David Murray added the comment: No, I don't see any reason to bother backporting. From my understanding we're not backporting anything to 3.0 at this point anyway. -- ___ Python tracker

[issue5450] test_tcl testLoadTk fails if DISPLAY defined but connect fails, instead of being skipped

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Running tk tests through both Lib/test/test_tk.py and Lib/test/regrtest.py show the desired behaviour (from what I understood from your description and from what I tested). It has been committed now, r73495 (trunk). Should 2.6 and 3.0 really receive this patch

[issue6266] cElementTree.iterparse & ElementTree.iterparse return differently encoded strings

2009-06-21 Thread nlopes
nlopes added the comment: I got pure gibberish output, but I know why. It was a compilation gone wrong. To get the output as ElementTree, I think instead of parcel = Py_BuildValue("sN", (prefix) ? prefix : "", makestring(uri)); it should be parcel = Py_BuildValue("sN", (prefix) ? prefix : "

[issue5450] test_tcl testLoadTk fails if DISPLAY defined but connect fails, instead of being skipped

2009-06-21 Thread R. David Murray
R. David Murray added the comment: On Sun, 21 Jun 2009 at 14:57, Guilherme Polo wrote: > Patch attached. May I reassign it to me David ? Absolutely. -- title: test_tcl testLoadTk fails if DISPLAY defined but connect fails, instead of being skipped -> test_tcl testLoadTk fails if DISPL

[issue5450] test_tcl testLoadTk fails if DISPLAY defined but connect fails, instead of being skipped

2009-06-21 Thread Guilherme Polo
Guilherme Polo added the comment: Finally I'm looking into this again. So, for now, I decided to only move the tk load tests to Lib/lib-tk/test/test_tkinter under a new module named test_loadtk. Lib/test/test_tcl remains almost the same, except it no longer it contain those tests related to tk l

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2009-06-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I agree. By the way, I created the patch for trunk experimentally. -- Added file: http://bugs.python.org/file14328/py2x_winsound.patch ___ Python tracker ___

[issue6266] cElementTree.iterparse & ElementTree.iterparse return differently encoded strings

2009-06-21 Thread Fredrik Lundh
Fredrik Lundh added the comment: It should definitely give what's intended (either a Unicode string, or, if the content is plain ASCII, an 8-bit string). What did you get instead? -- ___ Python tracker __

[issue4856] Remove checks for win NT

2009-06-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Here is an updated patch with Py_GetFileAttributesEx[AW] removal. I propose to commit this to trunk, and merge it to py3k after 3.1 will be released. -- Added file: http://bugs.python.org/file14327/remove_w9x_code.patch _

[issue6318] HTMLParser Attributes Containing Escaped Quotes

2009-06-21 Thread Georg Brandl
Georg Brandl added the comment: That snippet is not valid HTML. The attribute string is not a JS string, so quotes in it must be escaped with '"', not '\"'. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker <

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2009-06-21 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: release blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2009-06-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: Even for 3k, I would defer this patch after the 3.1 release, as it is an incompatible change (requiring a Unicode string where a byte string was acceptable before). -- nosy: +loewis ___ Python tracker

[issue6318] HTMLParser Attributes Containing Escaped Quotes

2009-06-21 Thread Eric
Eric added the comment: More specifically, the attributes cannot contain escaped quotes of the same kind that the attribute value is wrapped in. -- title: HTMLParser Attributes Containing Javascript -> HTMLParser Attributes Containing Escaped Quotes ___