[issue2506] Line tracing of continue after always-taken if is incorrect

2008-03-29 Thread ajaksu
Changes by ajaksu [EMAIL PROTECTED]: -- nosy: +ajaksu2 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2506 __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1492] BaseHTTPServer hard-codes Content-Type for error messages

2008-02-23 Thread ajaksu
ajaksu added the comment: Here's my attempted patch against trunk. The doc is poor (but what else should it contain?) and the attribute name could be better. I'm worried about lack of testing for this change as the module has virtually no tests. Should we start adding naive (regarding

[issue1597000] Use \r\n, not \n for HTTP headers

2008-02-23 Thread ajaksu
ajaksu added the comment: he specific issue mentioned might arise from UAs interpreting the snippet as a header, but the whole thing is so oblivious to standards that it doesn't matter: def reset(): Return a string that resets the CGI and browser to a known state. return '''!--: spam

[issue2169] Adding DOCTYPE and html, body tags to SimpleHTTPServer

2008-02-23 Thread ajaksu
New submission from ajaksu: This small patch adds a HTML 3.2 doctype, a html and a body tags. Should work on py3k. This patch only accomplishes a Tentatively Valid HTML 3.2 result. Adding information on encoding would make that more conclusive, but IMHO wrong too. -- components

[issue1207466] installer ignores changed installation directory

2008-02-23 Thread ajaksu
ajaksu added the comment: If the fix was applied, this should be closed. If not, seems pretty easy to do (worst case: add as Known Issue, Won't Fix). -- nosy: +ajaksu2 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1207466

[issue2138] Factorial

2008-02-22 Thread ajaksu
ajaksu added the comment: Would it be implemented in C? How about using Luschny's Prime Swing (http://www.luschny.de/math/factorial/FastFactorialFunctions.htm and http://www.luschny.de/math/factorial/Benchmark.html )? -- nosy: +ajaksu2 __ Tracker [EMAIL

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

2008-02-17 Thread ajaksu
ajaksu added the comment: Martin, I agree that simply not resolving DTDs is an unreasonable request (and said so in the blog post). But IMHO there are lots of possible optimizations, and the most valuable would be those darn easy for newcomers to understand and use. In Python, a winning combo

[issue1772851] Decimal and long hash, compatibly and efficiently

2007-09-12 Thread ajaksu
ajaksu added the comment: IMHO this patch should be considered for (at least) py3k, in which long becomes the new int. As there is current interest in long/int performance[1] this seems like a good time to raise this kind of issue. Mark, could you please outline the semantic changes

[issue1772851] Decimal and long hash, compatibly and efficiently

2007-09-12 Thread ajaksu
ajaksu added the comment: Thanks a lot for the explanation. I still think it could be valuable (C?)py3k change (but now for the predictability, as you say :) Regarding the performance of Decimal.__hash__: I believe (int) hash performance would be a moot issue if Decimal.__int__ was (much