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

2009-06-21 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file14326/py3k_winsound.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6317 ___

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

2009-06-21 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file14325/py3k_winsound.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6317 ___

[issue6318] HTMLParser Attributes Containing Javascript

2009-06-21 Thread Eric
New submission from Eric e.rykwal...@gmail.com: The line: n.feed('a onclick=alert(\\test\\)test/a') is not matched by the regular expressions for attributes. -- components: Library (Lib) messages: 89555 nosy: ericryk severity: normal status: open title: HTMLParser Attributes Containing

[issue6318] HTMLParser Attributes Containing Escaped Quotes

2009-06-21 Thread Eric
Eric e.rykwal...@gmail.com 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

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

2009-06-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2009-06-21 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- priority: release blocker - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6317 ___ ___

[issue6318] HTMLParser Attributes Containing Escaped Quotes

2009-06-21 Thread Georg Brandl
Georg Brandl ge...@python.org 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 'quot;', not '\'. -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___

[issue4856] Remove checks for win NT

2009-06-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

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

2009-06-21 Thread Fredrik Lundh
Fredrik Lundh fred...@effbot.org 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 rep...@bugs.python.org

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

2009-06-21 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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 rep...@bugs.python.org

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

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

[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 rdmur...@bitdance.com 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

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

2009-06-21 Thread nlopes
nlopes shelika.v...@gmail.com 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,

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

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

[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 rdmur...@bitdance.com 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 rep...@bugs.python.org

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

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Fine, closing then. Committed as r73497 on py3k. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5450 ___

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

2009-06-21 Thread nlopes
nlopes shelika.v...@gmail.com 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 rep...@bugs.python.org

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

2009-06-21 Thread nlopes
Changes by nlopes shelika.v...@gmail.com: Removed file: http://bugs.python.org/file14324/_elementtree.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6266 ___

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

2009-06-21 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into trunk and py3k. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6314 ___

[issue4856] Remove checks for win NT

2009-06-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org http://bugs.python.org/issue4856

[issue1356969] Tix.py class HList missing info_bbox

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

[issue1356969] Tix.py class HList missing info_bbox

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

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

2009-06-21 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: -- title: Tix.py class HList missing info_bbox - Tix.py class HList missing info_bbox, info_dragsite and info_dropsite ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1356969

[issue1230] Tix HList class missing method implementation for info_bbox

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

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

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

[issue6319] bdist_msi runs out of memory for large packages

2009-06-21 Thread Steven Bethard
New submission from Steven Bethard steven.beth...@gmail.com: 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

[issue6320] Standard string encodings should include GSM0.38

2009-06-21 Thread jwishnie
New submission from jwishnie jwish...@gmail.com: 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

[issue6319] bdist_msi runs out of memory for large packages

2009-06-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch is fine, please apply. -- nosy: +loewis resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6319 ___

[issue1600182] Tix ComboBox entry is blank when not editable

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

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

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

[issue1522587] Tix.Grid patch

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Weird.. I guess no one ever used Tix.Grid ? -- nosy: +gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1522587 ___

[issue802310] tkFont may reuse font names

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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:

[issue6319] bdist_msi runs out of memory for large packages

2009-06-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Done in r73499 and r73500. Thanks! -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6319

[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 fred...@effbot.org 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

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

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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 fred...@effbot.org 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

[issue6267] Cumulative patch to http and xmlrpc

2009-06-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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 rep...@bugs.python.org

[issue1250469] Tix: PanedWindow.panes nonfunctional

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

[issue1250469] Tix: PanedWindow.panes nonfunctional

2009-06-21 Thread Guilherme Polo
Changes by Guilherme Polo ggp...@gmail.com: -- versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1250469 ___

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

2009-06-21 Thread Erik Gorset
Erik Gorset e...@gorset.no 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

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

2009-06-21 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

[issue6320] Standard string encodings should include GSM0.38

2009-06-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

[issue6320] Standard string encodings should include GSM0.38

2009-06-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) priority: - normal stage: - needs patch versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6320

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

2009-06-21 Thread Michael K. Edwards
Michael K. Edwards m.k.edwa...@gmail.com 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

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

2009-06-21 Thread Michael K. Edwards
Michael K. Edwards m.k.edwa...@gmail.com 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

[issue6321] Reload Python modules when running programs

2009-06-21 Thread samwyse
New submission from samwyse samw...@gmail.com: 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