[issue2121] complex constructor doesn't accept string with nan and inf

2008-02-15 Thread Christian Heimes
New submission from Christian Heimes: This is a reminder. The issue makes the complex(repr(...)) round-trip impossible when either the real or imag part is nan or infinite. -- components: Interpreter Core messages: 62422 nosy: tiran priority: normal severity: normal status: open title:

[issue2120] broken links in advocacy HOWTO

2008-02-15 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: - georg.brandl priority: - normal type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2120 __ ___

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2008-02-15 Thread Christian Heimes
Christian Heimes added the comment: Why is this a bug? Do the docs promise that smtplib only raises SMTPConnectError? -- nosy: +tiran priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2118 __

[issue2111] mmap segfaults when trying to write a block opened with PROT_READ

2008-02-15 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r60830 (trunk) Martin, is the fix a candidate for 2.5.3, too? -- assignee: - loewis nosy: +loewis, tiran priority: - high resolution: - accepted status: open - pending versions: +Python 2.5 -Python 2.6 __

[issue2112] mmap.error should be a subclass of EnvironmentError and not a direct EnvironmentError

2008-02-15 Thread Christian Heimes
Christian Heimes added the comment: Sounds fine with me -- keywords: +easy, patch nosy: +tiran priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2112 __

[issue2120] broken links in advocacy HOWTO

2008-02-15 Thread Ori Avtalion
Ori Avtalion added the comment: Removing the spaces is wrong. They should be replaced with '~'. I also found two other punctuation problems: * A period that should be a colon. * A comma that should be a dash/semicolon/something else. I'm not really sure what's the best replacement. See the

[issue2122] mmap.flush does not check for errors on windows

2008-02-15 Thread Ralf Schmitt
New submission from Ralf Schmitt: mmap.flush returns the result of the call to FlushViewOfFile as an integer, and does not check for errors. On unix it does check for errors. The function should return None and raise an exception if an error occurs... This bug can lead to data loss... Here's

[issue2120] broken links in advocacy HOWTO

2008-02-15 Thread Robert Lehmann
Robert Lehmann added the comment: Right, the second link requires a tilde -- I just tried the first one (which works without). You should change all lines to be 80 characters wide maximum, though (can quickly be done by any commiter, not worth a new patch IMO). The dash thing looks okay, --- is

[issue2123] ctypes pointer not always keeping target alive

2008-02-15 Thread Armin Rigo
New submission from Armin Rigo: It's hard to tell for sure, given the lack of precise definition, but I believe that the attached piece of code should work. What it does is make p1 point to c_long(20). So ctypes should probably keep the c_long(20) alive as long as p1 is alive (and not further

[issue2124] xml.sax and xml.dom fetch DTDs by default

2008-02-15 Thread A.M. Kuchling
New submission from A.M. Kuchling: The W3C posted an item at http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic describing how their DTDs are being fetched up to 130M times per day. The Python parsers are part of the problem, as noted by Paul Boddie on the python-advocacy

[issue2124] xml.sax and xml.dom fetch DTDs by default

2008-02-15 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- type: - resource usage __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2124 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2124] xml.sax and xml.dom fetch DTDs by default

2008-02-15 Thread A.M. Kuchling
A.M. Kuchling added the comment: Here's a simple test to demonstrate the problem: from xml.sax import make_parser from xml.sax.saxutils import prepare_input_source parser = make_parser() inp = prepare_input_source('file:file.xhtml') parser.parse(inp) file.xhtml contains: ?xml version=1.0

[issue2124] xml.sax and xml.dom fetch DTDs by default

2008-02-15 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- priority: - urgent __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2124 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2125] [patch] Read support for Records in msilib

2008-02-15 Thread Floris Bruynooghe
New submission from Floris Bruynooghe: The msilib documentation mentions that read support of MSI files is supported, however the actual methods on the Record class for it are missing. This patch wraps two more functions from the MSI API to the record class, enabling to read integers and

[issue1813] Codec lookup failing under turkish locale

2008-02-15 Thread Árni Már Jónsson
Árni Már Jónsson added the comment: There is more to this bug than appears. I'm guessing that the name mangling code in locale (e.g. the normalizing code) is locale dependent. See this example: #!/usr/bin/python2.5 import locale print 'TR', locale.normalize('tr') print

[issue2101] xml.dom documentation doesn't match implementation

2008-02-15 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +easy __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2101 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1390] toxml generates output that is not well formed

2008-02-15 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1390 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2115] __slots__ make attribute setting 10x slower

2008-02-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: __instancecheck__ is not only slower, it can also cause crashes: import abc class MyABC: __metaclass__ = abc.ABCMeta __slots__ = [a] class Unrelated: pass MyABC.register(Unrelated) u=Unrelated() assert isinstance(u, MyABC)

[issue2072] SimpleXMLRPCServer documentation about rpc_paths might be wrong

2008-02-15 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: - akuchling nosy: +akuchling __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2072 __ ___ Python-bugs-list mailing list

[issue2123] ctypes pointer not always keeping target alive

2008-02-15 Thread Thomas Heller
Thomas Heller added the comment: May I ask: do you have a real use case for this, or is it a carefully constructed example? Of course I take all the blame for not defining/documenting this stuff. My current view is this: Python code C code ===

[issue1061803] Source code encoding in IDLE console

2008-02-15 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: No response from OP, closing. -- assignee: loewis - kbk resolution: - rejected _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1061803 _

[issue1599] IDLE hangs if os.spwanv command is given

2008-02-15 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: No response from OP, closing. -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1599 __ ___ Python-bugs-list

[issue1734234] Fast path for unicodedata.normalize()

2008-02-15 Thread Virgil Dupras
Virgil Dupras added the comment: It's a very interesting patch. I wonder why it fell into oblivion. stuff like unicode.normalize('NFC', u'\xe9') was more than twice as fast for me. Making sure that all unicode is normalized can be a bottleneck in a lot of applications (it somewhat is in my

[issue2115] __slots__ make attribute setting 10x slower

2008-02-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I think I fixed the issue. svn annotate showed that the exact same optimization was applied on __slots__ read access, five years ago: r28297. -- resolution: - fixed status: open - closed __ Tracker [EMAIL

[issue2050] IDLE - make ScriptBinding event handlers return 'break'

2008-02-15 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: r60843. Thanks for the patch! -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2050 __

[issue1948] Cant open python gui using VISTA

2008-02-15 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Please switch to the recently released 2.5.2 and let us know if the problem is still there. -- priority: high - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1948 __

[issue2067] file.__exit__ does not call subclass' close method

2008-02-15 Thread Ralf Schmitt
Ralf Schmitt added the comment: The patch looks good, I've tested it on trunk and also release25-maint. It applies with fuzz and one has to add a from __future import with_statement. I think this should also be applied to release25-maint. IMHO, this is a rather severe problem, as it can easily

[issue1777134] minidom pretty xml output improvement

2008-02-15 Thread Virgil Dupras
Virgil Dupras added the comment: If the patch would have better styling (if(onetextnode == True):), correct the test it breaks, and even better, add new ones, I guess it would be an acceptable one. -- nosy: +vdupras _ Tracker [EMAIL PROTECTED]

[issue2061] IDLE - autocompletion to support alternate patch separators

2008-02-15 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Why do we care about Python 2.2? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2061 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1334] IDLE - Fix several highlighting bugs

2008-02-15 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: r60844. Thanks for the patch! -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1334 __

[issue1061803] Source code encoding in IDLE console

2008-02-15 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser: -- status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1061803 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1334] IDLE - Fix several highlighting bugs

2008-02-15 Thread Kurt B. Kaiser
Changes by Kurt B. Kaiser: Removed file: http://bugs.python.org/file8618/IDLE_highlighting.071026.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1334 __ ___

[issue2124] xml.sax and xml.dom fetch DTDs by default

2008-02-15 Thread Martin v. Löwis
Martin v. Löwis added the comment: On systems that support catalogs, the parsers should be changed to support public identifiers, using local copies of these DTDs. However, I see really no way how the library could avoid resolving the DTDs altogether. The blog is WRONG in claiming that the

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2008-02-15 Thread stranger4good
stranger4good added the comment: Not in so many words, but yes it does I cite: exception SMTPException Base exception class for all exceptions raised by this module ... exception SMTPConnectError Error occurred during establishment of a connection with the server. ... Note the word all.

[issue960406] unblock signals in threads

2008-02-15 Thread sandy
Changes by sandy: -- components: +XML type: - rfe Tracker [EMAIL PROTECTED] http://bugs.python.org/issue960406 ___ Python-bugs-list mailing list Unsubscribe:

[issue960406] handler

2008-02-15 Thread sandy
Changes by sandy: -- severity: normal - critical title: unblock signals in threads - handler type: rfe - security Tracker [EMAIL PROTECTED] http://bugs.python.org/issue960406

[issue960406] unblock signals in threads

2008-02-15 Thread sandy
sandy added the comment: undoing spam -- components: -XML nosy: +sandylovesedward severity: critical - normal title: handler - unblock signals in threads type: security - Tracker [EMAIL PROTECTED] http://bugs.python.org/issue960406

[issue960406] unblock signals in threads

2008-02-15 Thread Guido van Rossum
Guido van Rossum added the comment: restore nosy list -- nosy: -sandylovesedward Tracker [EMAIL PROTECTED] http://bugs.python.org/issue960406 ___ Python-bugs-list

[issue1124861] subprocess fails on GetStdHandle in interactive GUI

2008-02-15 Thread Andrew Trusty
Andrew Trusty added the comment: I agree with Daniel, I think this bug or a variant is still present in 2.5.1 because my wxPython app on Windows XP would fail to execute a Popen with only stdout using PIPE but succeeded with the described workaround of having stdout, stderr, and stdin set to

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2008-02-15 Thread Christian Heimes
Christian Heimes added the comment: I see! You are right. Either the docs or the code need an update -- keywords: +easy resolution: - accepted __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2118 __