[issue1390] toxml generates output that is not well formed

2007-11-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: It's not a bug in the DOM implementation, as createCommment does not specify an exception in this case. It may be a bug in the W3 DOM specification; please report that to the W3 consortium. It's not a bug in toxml, which should always serialize the DOM tree if

[issue1390] toxml generates output that is not well formed

2007-11-04 Thread Thomas Conway
Thomas Conway added the comment: Either it is a bug in the DOM implementation, which should reject comments containing -->, a bug in toxml() which should refuse to serialize unserializable documents, or it is a bug in the documentation. cheers, Tom __ Tracker <[E

[issue1390] toxml generates output that is not well formed

2007-11-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: That's not a bug in Python, but in your script. You should not pass such a string to createComment. -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> __ __

[issue1744580] cvs.get_dialect() return a class object

2007-11-04 Thread Andrew McNamara
Andrew McNamara added the comment: Seems okay to me. I had a quick look at the examples section, and it shows a use like the one I mention, but I wonder if the section on dialects should quote the specific examples I mention? _ Tracker <[EMAIL PROTECTED]>

[issue1391] Adds the .compact() method to bsddb db.DB objects

2007-11-04 Thread Gregory P. Smith
New submission from Gregory P. Smith: I'm attaching the patch to add this method here just as a place to track it for now. It compiles and it looks right, but it causes a crash within BerkeleyDB when the test case runs using BerkeleyDB 4.6.21. It passes as expected when using 4.4.20 or 4.5.20.

[issue1390] toxml generates output that is not well formed

2007-11-04 Thread Thomas Conway
New submission from Thomas Conway: The attached script yields a non-well-formed xml document. Added file: http://bugs.python.org/file8692/bug.py __ Tracker <[EMAIL PROTECTED]> __from xml.dom.minid

[issue1390] toxml generates output that is not well formed

2007-11-04 Thread Thomas Conway
Changes by Thomas Conway: -- components: Library (Lib) nosy: drtomc severity: normal status: open title: toxml generates output that is not well formed type: behavior versions: Python 2.5 __ Tracker <[EMAIL PROTECTED]> _

[issue1389] py3k-pep3137: struct module is leaking references

2007-11-04 Thread Christian Heimes
New submission from Christian Heimes: ~/dev/python/py3k-pep3137$ ./python Lib/test/regrtest.py -R 2:4 test_struct test_struct beginning 6 repetitions 123456 .. test_struct leaked [12, 7, 20, 10] references, sum=49 1 test OK. [65353 refs] -- components: Extension Modules keywords: py3

[issue1388] py3k-pep3137: possible ref leak in ctypes

2007-11-04 Thread Christian Heimes
New submission from Christian Heimes: ~/dev/python/py3k-pep3137$ ./python Lib/test/regrtest.py -R 3:5 test_ctypes test_ctypes beginning 8 repetitions 12345678 test_ctypes leaked [39, -31, 33, -33, 0] references, sum=8 1 test OK. [101762 refs] -- assignee: theller components: Lib

[issue1387] py3k-pep3137: patch for hashlib on Windows

2007-11-04 Thread Christian Heimes
Christian Heimes added the comment: Thanks! Applied in r58847. -- keywords: +patch, py3k resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1386] py3k-pep3137: patch to ensure that all codecs return bytes

2007-11-04 Thread Christian Heimes
Christian Heimes added the comment: Applied in r58848. Thanks for removing the annoying warnings! A small request: Please use self.assert_() and its friends instead of assert() in unit tests. -- keywords: +patch, py3k resolution: -> fixed status: open -> closed ___

[issue1387] py3k-pep3137: patch for hashlib on Windows

2007-11-04 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: On Windows, openssl is not always available, in this case python uses its own implementation of md5, sha1 &co. This patch correct the failing tests (test_hashlib and test_uuid), by returning bytes instead of buffers. -- components: Windows files:

[issue1386] py3k-pep3137: patch to ensure that all codecs return bytes

2007-11-04 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: Most codecs return buffer objects, when the rule is now to return bytes. This patch adds a test, and corrects failing codecs. (more PyBytes_* -> PyString_* replacements) -- components: Unicode files: codecs.diff messages: 57109 nosy: amaury.forge

[issue1383] Backport abcoll to 2.6

2007-11-04 Thread Benjamin Aranguren
Benjamin Aranguren added the comment: This is a companion to #1026. On 11/4/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > > Georg Brandl added the comment: > > Is this a successor or a companion to #1026? > > -- > nosy: +georg.brandl > > __ > Tracker <[EMA

[issue1383] Backport abcoll to 2.6

2007-11-04 Thread Georg Brandl
Georg Brandl added the comment: Is this a successor or a companion to #1026? -- nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue1385] hmac module violates RFC for some hash functions, e.g. sha512

2007-11-04 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1383] Backport abcoll to 2.6

2007-11-04 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1385] hmac module violates RFC for some hash functions, e.g. sha512

2007-11-04 Thread Joachim Wagner
New submission from Joachim Wagner: (First time submitting a patch to this system.) The hmac module uses a fixed blocksize of 64 bytes. This is fine for many hash functions like md5, sha1 and sha256, but not for sha512 or in the general case. The RFC referenced in the python documentation spec

[issue1384] Windows fix for inspect tests

2007-11-04 Thread Christian Heimes
New submission from Christian Heimes: The patch lower()s the file names on Windows. The tests break on my system because C:\\... != c:\\... -- files: py3k_inspect.patch keywords: patch, py3k messages: 57105 nosy: tiran severity: normal status: open title: Windows fix for inspect tests ve

[issue1381] cmath is numerically unsound

2007-11-04 Thread Martin v. Löwis
Martin v. Löwis added the comment: It would be ok if a test is only run on a system with IEEE floats, and skipped elsewhere. For all practical purposes, Python assumes that all systems have IEEE float. __ Tracker <[EMAIL PROTECTED]>

[issue1378] fromfd() and dup() for _socket on WIndows

2007-11-04 Thread Guido van Rossum
Changes by Guido van Rossum: -- nosy: +gvanrossum __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1382] py3k-pep3137: patch for test_ctypes

2007-11-04 Thread Christian Heimes
Christian Heimes added the comment: Applied in r58843. Thank you very much! -- keywords: +patch, py3k resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue1431091] CSV Sniffer fails to report mismatch of column counts

2007-11-04 Thread Skip Montanaro
Skip Montanaro added the comment: This appears to work better in 2.5 and 2.6 (it doesn't crash, though it gets the delimiter wrong) but does indeed fail in 2.4. -- nosy: +skip.montanaro _ Tracker <[EMAIL PROTECTED]>

[issue1744580] cvs.get_dialect() return a class object

2007-11-04 Thread Skip Montanaro
Skip Montanaro added the comment: I changed the documentation for 2.5 and 2.6 to reflect the change in semantics. r58840 and r58841. Have a look and let me know if that looks reasonable. -- status: open -> pending title: cvs.get_dialect() return a class object -> cvs.get_dialect() r

[issue1382] py3k-pep3137: patch for test_ctypes

2007-11-04 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: This patch corrects test_ctypes in the py3k-pep3137 branch. Replacing PyBytes_* by PyString_* was 99% of the task. Also had to modify binascii, which used to return buffers instead of bytes strings. Tested on winXP. -- components: Tests files:

[issue1381] cmath is numerically unsound

2007-11-04 Thread Mark Dickinson
Mark Dickinson added the comment: I took a look at this a while back, and got as far as writing a pure Python drop-in replacement for cmath, based on Kahan's "branch cuts for elementary functions" paper. This fixes a variety of problems in cmath, including the buggy branch cuts for asinh. Fi

[issue1210] imaplib does not run under Python 3

2007-11-04 Thread Christian Heimes
Changes by Christian Heimes: -- keywords: +py3k priority: -> normal resolution: -> accepted __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-

[issue1378] fromfd() and dup() for _socket on WIndows

2007-11-04 Thread roudkerk
Changes by roudkerk: -- versions: +Python 2.6 -Python 2.5 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue1772916] xmlrpclib crash when PyXML installed - sgmlop is available

2007-11-04 Thread Grzegorz Makarewicz
Grzegorz Makarewicz added the comment: Minimalistic test crash (python 2.5 cvs, sgmlop cvs(pyxml)) - compiled with msvc 2005, where after 10 loops ms-debugger is invoked: data='''\ mws.ScannerLogout 7 ''' import xmlrpclib def main(): i = 1 whil

[issue1379] reloading imported modules sometimes fail with 'parent not in sys.modules' error

2007-11-04 Thread Paul Pogonyshev
Paul Pogonyshev added the comment: Thank you for the commit. I just had a problem with my package, and since I was not sure if it was a bug in Py3k or the package, I went to debugging the former and found this. I just didn't know how to work with Unicode strings properly. _

[issue1379] reloading imported modules sometimes fail with 'parent not in sys.modules' error

2007-11-04 Thread Christian Heimes
Christian Heimes added the comment: Why are you using PyUnicode_AsUTF32String(parentname)? PyUnicode_AsString() is the correct method (although it's not yet in the docs). The rest looks fine. PyModule_GetName() returns a char* from PyUnicode_AsString(). Fixed in r58838. -- keywords: +py

[issue1342] Crash on Windows if Python runs from a directory with umlauts

2007-11-04 Thread Christian Heimes
Christian Heimes added the comment: I've checked in part of the patch in r58837. It doesn't solve the problem but at least it prevents Python from seg faulting on Windows. -- keywords: +py3k, rfe priority: -> high resolution: -> accepted __ Tracker <[EM

[issue1377] test_import breaks on Linux

2007-11-04 Thread Christian Heimes
Christian Heimes added the comment: I'm going to disable the test for now. -- keywords: +py3k resolution: -> accepted superseder: -> Crash on Windows if Python runs from a directory with umlauts __ Tracker <[EMAIL PROTECTED]>