[issue1881] increase parser stack limit

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: Applied in r60974. Maciek, please push that alternative way of handling this limit on python-dev, that could lead to a better handling in the future. But, so far, we have a limit a little upper, and tested. Thank you all! -- resolution: -> accepted

[issue1776581] Minor corrections to smtplib

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: Applied in r60975. Thanks! -- resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> _

[issue1781] ConfigParser: add_section('DEFAULT') causes duplicate sections.

2008-02-23 Thread Manuel Kaufmann
Manuel Kaufmann added the comment: I tested the patch and works very well. I modified "Misc/NEWS" file beacuse the change wasn't reported and I uploaded diff file (NEWS.diff). -- nosy: +humitos Added file: http://bugs.python.org/file9492/NEWS.diff __ Tr

[issue1964] Slight adjustment to sphinx print-media stylesheet

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Thank you for the patch, applied in my sandbox (will be part of a larger commit). -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> ___

[issue1781] ConfigParser: add_section('DEFAULT') causes duplicate sections.

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: Applied in r60976. Thank you all! -- nosy: +facundobatista resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue2130] [feature-request] Please add bool data type to "optparse" module

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: The functionality already exists. -- nosy: +facundobatista resolution: -> out of date status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1881] increase parser stack limit

2008-02-23 Thread Christian Heimes
Christian Heimes added the comment: For the record: I had to decrease the level to 93. The test in test_parser didn't pass with 99 levels. __ Tracker <[EMAIL PROTECTED]> __

[issue1858] Make .pypirc handle multiple servers

2008-02-23 Thread Facundo Batista
Changes by Facundo Batista: Removed file: http://bugs.python.org/file9191/patch.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue2165] Fix for test_logging

2008-02-23 Thread Thomas Herve
New submission from Thomas Herve: The attached patch fixes the test_logging failure on my machine. Please review. -- components: Tests files: test_logging.diff messages: 62727 nosy: therve severity: normal status: open title: Fix for test_logging versions: Python 2.6 Added file: http://b

[issue1531505] distutils 'register' command and windows home directories

2008-02-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: The patch of #1858 fixes this issue as well -- nosy: +tarek _ Tracker <[EMAIL PROTECTED]> _ ___ Python

[issue2138] Factorial

2008-02-23 Thread Mark Dickinson
Mark Dickinson added the comment: The trouble is that this comes at a time when people are trying to trim the standard library down rather than enlarge it. Perhaps the solution is a high-quality third party 'imath' module? If/when it gets to a stage where lots of people are using it, it could

[issue1741] .pypirc not found on windows

2008-02-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: Fixed by #1858 patch -- nosy: +tarek __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubsc

[issue2166] pydistutils.cfg won't be found on Windows

2008-02-23 Thread Tarek Ziadé
New submission from Tarek Ziadé: Related to #1741: dist.py looks for the HOME environment variable to try to find the user's pydistutils.cfg. user_file = os.path.join(os.environ.get('HOME'), user_filename) It should look form HOMEDRIVE+HOMEPATH as well. -- messages: 62731 nosy: tarek

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

2008-02-23 Thread Bruno Gola
Bruno Gola added the comment: This seems to be a documentation bug. Patch attached. -- nosy: +brunogola Added file: http://bugs.python.org/file9494/issue_2101_doc.patch __ Tracker <[EMAIL PROTECTED]>

[issue2166] pydistutils.cfg won't be found on Windows

2008-02-23 Thread Tarek Ziadé
Changes by Tarek Ziadé: -- components: +Distutils versions: +Python 3.0 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Uns

[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 buildbot

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

2008-02-23 Thread Rafael Zanella
Changes by Rafael Zanella: -- nosy: +zanella __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1759] Backport of PEP 3129 "class decorators"

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Attaching new diff that fixes these issues. -- nosy: +georg.brandl Added file: http://bugs.python.org/file9496/classdec_2.diff __ Tracker <[EMAIL PROTECTED]> __

[issue2149] Queue.maxsize, __init__() accepts any value as maxsize

2008-02-23 Thread rbp
rbp added the comment: For what it's worth, I do think this is an issue. As it currently stands, not only does the module silently accept invalid values, but the mutex issue exists (and is also silently ignored) if an object returning dynamic values is passed as maxsize. IMHO, the waters are alre

[issue1759] Backport of PEP 3129 "class decorators"

2008-02-23 Thread Christian Heimes
Christian Heimes added the comment: Applied in r60978 -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ P

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

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Reviewed and committed in r60980. Thanks! -- assignee: -> georg.brandl nosy: +georg.brandl status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2165] Fix for test_logging

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Committed r60982. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1089358] need siginterrupt() on Linux - impossible to do timeouts

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: Applied in r60983. Thank you all! -- nosy: +facundobatista resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ ___

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

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Committed r60984. -- nosy: +georg.brandl resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue2161] STORE_LOCAL byte code is not documented

2008-02-23 Thread Guilherme Polo
Guilherme Polo added the comment: I believe it should say "STORE_FAST or STORE_GLOBAL" instead. -- nosy: +gpolo __ Tracker <[EMAIL PROTECTED]> __ __

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: I'm attaching a test script (test_times.py) that forks a child which runs for 5 seconds, waits for the child, then prints the time taken by the child according to os.times(). I have a machine where os.times() reproducably reports that 8.33 seconds have been spent

[issue1949] test_ntpath.py converted to unittest

2008-02-23 Thread Pavel Vinogradov
Pavel Vinogradov added the comment: This patch also looks good for me. It convert all test cases and run successfully on latest python trunk (on Linux). -- nosy: +pavel.vinogradov __ Tracker <[EMAIL PROTECTED]> _

[issue2167] Remove unused imports

2008-02-23 Thread Wummel
New submission from Wummel: I ran the pyflakes checker over the Python source repository and removed some unused imports. Only obvious (from what I can see) unused imports were removed, with most offenders being "import os, sys, string". The diff is against current SVN (I am using git-svn, hence

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

2008-02-23 Thread Pedro Werneck
Pedro Werneck added the comment: It seems the right thing to do would be to have it raise a base exception, but SMTPConnectError docstring states "Error during connection establishment.", so I chosen to use it with the errno and message from socket.error, even if it's supposed to happen only afte

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

2008-02-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: Isn't this a candidate for backporting to 2.5? __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue2166] pydistutils.cfg won't be found on Windows

2008-02-23 Thread Christian Heimes
Christian Heimes added the comment: Please use os.path.expanduser(os.path.join("~", user_filename)) -- nosy: +tiran __ Tracker <[EMAIL PROTECTED]> __ __

[issue1040026] os.times() is bogus

2008-02-23 Thread Guido van Rossum
Guido van Rossum added the comment: Well, 8./5 equals 100/60. Go figure. _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list

[issue2168] gdbm needs to be iterable

2008-02-23 Thread Thomas Herve
New submission from Thomas Herve: A recent change in shelve (r60927) raises the need for gdbm objects to be iterable. We can see it by running test_shelve on a machine with gdbm. I'll try to fix this. The same thing should be done with the dbm module I think. -- components: Library (Lib

[issue1040026] os.times() is bogus

2008-02-23 Thread Guido van Rossum
Guido van Rossum added the comment: test_times.py produces the correct value on Linux for me, but I see the same bogus value as Malte on OSX. _ Tracker <[EMAIL PROTECTED]> _

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: Here's three tests with different pythons on the same machine: # ./python ../test_times.py 8.333 # python ../test_times.py 8.333 # python2.5 ../test_times.py 5.0 The first Python is current trunk, built just now. The second Python is the vendor-in

[issue1858] Make .pypirc handle multiple servers

2008-02-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: The last patch also fixes the HOME issues under Windows: #1531505, #1741, #2166 where .pypirc and .pydistutils.cfg were not found. It is not using os.path.expanduser to simplify the code usage (~\/ is rather unreadable) (see the get_home() function in util.py) Adde

[issue2072] SimpleXMLRPCServer documentation about rpc_paths might be wrong

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for pointing out this error. Corrected in rev. 60987. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2161] STORE_LOCAL byte code is not documented

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Indeed. Fixed in r60988. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1119331] curses.initscr - initscr exit w/o env(TERM) set

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch #2 applied to 2.6-trunk in rev. 60989. -- resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ ___

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: I'm attaching a patch against trunk that fixes the problem for me (os_times.PATCH). This uses the sysconf values when HAVE_SYSCONF is defined, and otherwise falls back on the old behaviour (use HZ if that is defined, 60 otherwise). I'm not sure if this is styli

[issue1911] webbrowser.open firefox 3 issues

2008-02-23 Thread Lauro Moura
Lauro Moura added the comment: Adding patch with backport from trunk to branches/release25-maint. Tested with firefox(2 and 3a3), epiphany and elinks on GNOME 2.20, altough I coulnd't reproduce the error before from python, even changing the gconf setting manually. -- nosy: +lauromoura A

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: Another comment: Since the fallback value of 60 was wrong in the past, it may likely be wrong in the future. Should that fallback be removed and replaced by a compile-time error? And is the "HZ" fallback necessary at all? I don't know enough about Posix to know wh

[issue1858] Make .pypirc handle multiple servers

2008-02-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: I have changed the patch so it uses expanduser (took back tiran's example from #2166) __ Tracker <[EMAIL PROTECTED]> __ __

[issue1858] Make .pypirc handle multiple servers

2008-02-23 Thread Tarek Ziadé
Changes by Tarek Ziadé: Added file: http://bugs.python.org/file9503/bugday.distutils.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailin

[issue2166] pydistutils.cfg won't be found on Windows

2008-02-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: ok, done in #1858 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue2138] Factorial

2008-02-23 Thread Anders Valind
Anders Valind added the comment: Yeah, I like the idea of a third party module and letting the popularity and quality decide when/if it will be included. This would also make it easier to see what kind of functionality people would want. __ Tracker <[EMAIL PROT

[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 ''' -->

[issue1330538] datetime/xmlrpclib.DateTime comparison

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: The patch looks OK. The python-dev discussion starts at http://mail.python.org/pipermail/python-dev/2005-October/057514.html. I'm nervous about removing the ability to pass a date or time to the constructor, but the consensus was that this conversion was a bad

[issue1322] platform.dist() has unpredictable result under Linux

2008-02-23 Thread Pavel Vinogradov
Pavel Vinogradov added the comment: I'm work on this issue in GHOP(http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=216&can=1&colspec=ID%20Status%20ClaimedBy%20Due%20NeedsReview%20Summary) I'm attach updated patch for python trunk. This patch fixes issue and add addi

[issue1330538] datetime/xmlrpclib.DateTime comparison

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Committed to 2.6 trunk in rev. 60991. -- resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ ___

[issue2149] Queue.maxsize, __init__() accepts any value as maxsize

2008-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Many places in the stdlib accept values which are not valid. I believe this is because the library trusts you to do the right thing in the name of performance and cleaner, simpler code. IMO, adding a set_maxsize method wouldn't be a sin, but Raymond (who is I'

[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Is this module still of any use to anyone? It seems if you wanted a fake mutex, you could just import LockType from dummy_thread. -- nosy: +benjamin.peterson _ Tracker <[EMAIL PROTECTED]>

[issue835521] More obvious indication of __reduce__ documentation.

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Thanks for the suggestion. I've added index entries for __reduce__, as well as __reduce_ex__ and a few others in rev. 60994 -- nosy: +akuchling resolution: -> fixed status: open -> closed Tracker <[EMAIL PROTECTED]>

[issue2167] Remove unused imports

2008-02-23 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

[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Manuel Kaufmann
Manuel Kaufmann added the comment: I tested the patch and I found an error. It was missing a line "if call:" in the unlock function. I added it, and tested again with the ex.py example and it didn't found any threads locked at the same time. -- nosy: +humitos Added file: http://bugs.py

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: Here is a patch that adds a test case to test_posix.py. This is ignored on Windows, as it requires fork. There is a trade-off: If WAIT_TIME isn't large enough, small irregularities in the process scheduler might cause this to fail. If it is too large, the unit te

[issue800929] Module-specific PDFs

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Given that we now have a print-specific stylesheet for the documentation, a printed version of the HTML page for a module seems acceptable. I just looked at a print-preview of the pickle docs, the output looks good, so IMHO we don't need to do anything special

[issue1817] module-cgi: handling GET and POST together

2008-02-23 Thread Alexandre Fiori
Alexandre Fiori added the comment: Here's the unit test for patched cgi module. There are three tests: one for HTML POST forms that are urlencoded, and two for multipart/form-data - with and without file upload. Added file: http://bugs.python.org/file9507/cgitest.py

[issue1174614] site enhancements

2008-02-23 Thread Christian Heimes
Christian Heimes added the comment: The feature request is superseded by my PEP 370 (http://www.python.org/dev/peps/pep-0370/). As far as I understand your proposal the PEP covers your use cases. -- resolution: -> out of date _ Tracker <[EMAIL PROTEC

[issue1322] platform.dist() has unpredictable result under Linux

2008-02-23 Thread Christian Heimes
Christian Heimes added the comment: Thanks Pavel! First I need confirmation from the GHOP project and Georg that you have submitted the contributor form. Then I'm going to merge your patch. __ Tracker <[EMAIL PROTECTED]>

[issue1322] platform.dist() has unpredictable result under Linux

2008-02-23 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: tiran -> georg.brandl keywords: +patch nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ ___ Pytho

[issue1040026] os.times() is bogus

2008-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well first I can't reproduce the bug on my machine :) However the two patches do not produce any regression either. I have some questions: 1. isn't 0.1 for WAIT_TIME a bit too low? 1.0 would probably be less fragile IMHO 2. why do you fork() in test_times, rather

[issue2167] Remove unused imports

2008-02-23 Thread Christian Heimes
Christian Heimes added the comment: I'm going to check the patch now. -- nosy: +tiran priority: -> normal type: -> behavior versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ __

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: Using 1.0 would certainly be more robust. I wasn't sure if a slow-down of "make test" by 1 second just for this one bug would be acceptable. Regarding the fork, when I first encountered this bug, it was in the context of measuring the runtime of child processes,

[issue1433694] normalize function in minidom unlinks empty child nodes

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch applied to 2.6 in rev. 60995, and to 2.5-maint in rev. 60998. Thanks for reporting the problem, and for finding the bugfix! -- nosy: +akuchling resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTE

[issue781445] Applets don't work on 10.1

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Presumably this was fixed in 10.1 or 10.2 at some point, because MacPython 2.3 comes as an installer. Closing as 'fixed'; Jack, please re-open if this is still relevant. -- nosy: +akuchling resolution: -> fixed status: open -> closed __

[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 and a 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: Library (Lib

[issue1174606] Reading /dev/zero causes SystemError

2008-02-23 Thread David Chrsitian
David Chrsitian added the comment: I don't see any change to the return value of new_buffersize that could alleviate this problem - the problem being that because linux is extremely efficient at reading bytes from /dev/zero, some other code incosistencies are exposed. The problem that is being h

[issue1322] platform.dist() has unpredictable result under Linux

2008-02-23 Thread Pavel Vinogradov
Pavel Vinogradov added the comment: You can see confirmation from Georg on thread in GHOP: http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=216&can=1&colspec=ID%20Status%20ClaimedBy%20Due%20NeedsReview%20Summary#c20 I can update patch for 3.0 (it don't applies now)

[issue2167] Remove unused imports

2008-02-23 Thread Christian Heimes
Christian Heimes added the comment: Applied in r61000 -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ P

[issue1957] [patch] syslogmodule: Release GIL when calling syslog(3)

2008-02-23 Thread Christian Heimes
Christian Heimes added the comment: Applied in r61001 Thanks for the patch! :) -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

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

2008-02-23 Thread Pedro Werneck
Pedro Werneck added the comment: Previous patch didn't passed the tests right. This patch fixes both the code, unindenting port number conversion to integer and the test. Added file: http://bugs.python.org/file9509/issue_2118_fixed.patch __ Tracker <[EMAIL PROTEC

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

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: The solution of adding caching, If-Modified-Since, etc. is a good one, but I quail in fear at the prospect of expanding the saxutils resolver into a fully caching HTML agent that uses a cache across processes. We should really be encouraging people to use more ca

[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]> ___

[issue1375] hotshot IndexError when loading stats

2008-02-23 Thread Pedro Werneck
Pedro Werneck added the comment: Fixed by raising StopIteration when the stack is empty. -- nosy: +werneck Added file: http://bugs.python.org/file9510/issue_1375_hotshot.patch __ Tracker <[EMAIL PROTECTED]> _

[issue2051] PYO file permission problem

2008-02-23 Thread Christian Heimes
Christian Heimes added the comment: Fixed in r61002 Thanks for your patch Alexander! Good work. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

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

2008-02-23 Thread Martin v. Löwis
Martin v. Löwis added the comment: I may have lost track somewhere: what does have urllib* to do with this issue? __ Tracker <[EMAIL PROTECTED]> __ ___ P

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: Note: My original unit test fails to take account that previous unit tests may have spawned child processes. The correct behaviour is of course to call os.times() before and after the fork and compute the difference. I'm not uploading a modified patch because fro

[issue1174606] Reading /dev/zero causes SystemError

2008-02-23 Thread David Christian
David Christian added the comment: Raise OverflowError if unbounded read() exceeds PY_SSIZE_T_MAX bytes. Added file: http://bugs.python.org/file9511/issue1174606.diff _ Tracker <[EMAIL PROTECTED]>

[issue1174606] Reading /dev/zero causes SystemError

2008-02-23 Thread David Christian
Changes by David Christian: Added file: http://bugs.python.org/file9512/issue1174606.diff _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-lis

[issue1389051] imaplib causes excessive fragmentation for large documents

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling nosy: +akuchling _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing li

[issue1207466] installer ignores changed installation directory

2008-02-23 Thread Martin v. Löwis
Martin v. Löwis added the comment: It was not fixed yet, but I will fix it eventually (this year, or later). _ Tracker <[EMAIL PROTECTED]> _ _

[issue2170] rewrite of minidom.Node.normalize

2008-02-23 Thread Malte Helmert
New submission from Malte Helmert: In the discussion of #1433694 on the #python-dev channel, it was observed that the normalize method of minidom.Node could take some refactoring. A patch is attached. -- components: XML files: minidom.diff messages: 62794 nosy: maltehelmert severity: nor

[issue1040026] os.times() is bogus

2008-02-23 Thread rbp
rbp added the comment: Malte, Antoine and I discussed this a bit on #python-dev and concluded that the correct behaviour should be trying sysconf first, then HZ, or raise an exception if not even HZ is available (since whichever static value we chose would be misleading anyway). I'm attaching a

[issue1389051] imaplib causes excessive fragmentation for large documents

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Fredrik's suggested fix for SSL IMAP committed as rev. 61006, and to 2.5-maint in rev. 61007. There still seems to be a problem with the non-SSL version. I'm looking into that next. _ Tracker <[EMAIL PROTECTED]>

[issue1092502] Memory leak in socket.py on Mac OS X

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Andreas Lauer's suggested fix is correct. Applied to 2.6 trunk in rev. 61008 and to 2.5-maint in rev. 61009. -- nosy: +akuchling resolution: out of date -> fixed _ Tracker <[EMAIL PROTECTED]>

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: Attaching a new test (test_posix2.PATCH) that doesn't fork and fixes the problem with the previous test not taking previously elapsed time into account. This supersedes test_posix.PATCH. I left the wait time at 0.1; if we stay within the same process, this should

[issue2149] Queue.maxsize, __init__() accepts any value as maxsize

2008-02-23 Thread Rafael Zanella
Rafael Zanella added the comment: Just to exemplify: """ from threading import Thread import time import Queue class C: def __int__(self): return 3 #def __del__(self): print "collected..." # won't happen since q holds a reference to it c = C() q = Queue.Queue(c) # Not dynamic print

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: I was wrong -- 0.1 isn't enough, because os.times() typically has 0.01s resolution, so we can easily get 0.1 vs. 0.11 which will fail the assertion. Cranked up the WAIT_TIME to 0.3 in the attached patch (test_posix3.PATCH). Sorry for the noise. Added file: http:/

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: Sorry, but the test was still wrong because I misunderstood how assertAlmostEqual works. Attaching a fourth (final?) test. Added file: http://bugs.python.org/file9517/test_posix4.PATCH _ Tracker <[EMAIL PROTECTED]>

[issue2170] rewrite of minidom.Node.normalize

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling nosy: +akuchling __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue1389051] imaplib causes excessive fragmentation for large documents

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Andreas Lauer's suggested fix on #1092502 is correct, and fixes the problem for the non-SSL IMAP class. Applied to 2.6 trunk in rev. 61008 and to 2.5-maint in rev. 61009. -- resolution: -> fixed status: open -> closed __

[issue2149] Queue.maxsize, __init__() accepts any value as maxsize

2008-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: > The only "possible" problem I'm able to see is someone passing an object wich has __int__() and expecting it to be used. They should be explicit and say Queue(int(object_with__int__)). __ Tracker <[EMAIL PROTECTED]>

[issue1193577] add server.shutdown() method and daemon arg to SocketServer

2008-02-23 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: This is getting in my way, so I'll take a look at it. I'm planning to model the shutdown API after http://java.sun.com/javase/6/docs/api/java/util/concurrent/ExecutorService.html. The serve_forever->shutdown interval should probably also be available through a c

[issue2143] smtplib.SSLFakeFile hangs forever if "\n" is not encountered

2008-02-23 Thread Rafael Zanella
Rafael Zanella added the comment: As of 2.6 the smtplib uses the ssl module, until 2.5 it uses _ssl, I *think* that this issue would bring an Exception on 2.5 while on 2.6 would return a zero length string: """ def read(self, len=1024): """Read up to LEN bytes and return them. Re

[issue1040026] os.times() is bogus

2008-02-23 Thread rbp
rbp added the comment: Malte noticed that my previous patch won't compile when HAVE_SYSCONFIG and HZ are not defined. My bad, silly mistake. I've attached a new version, which compiles and has been tested on all three cases (with test_posix4.PATCH). Please, someone with privileges remove os_time

[issue1204] readline configuration for shared libs w/o curses dependencies

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling nosy: +akuchling __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue1204] readline configuration for shared libs w/o curses dependencies

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: The patch looks reasonable. I'll commit it on Monday when I'm on a machine with a more up-to-date autoconf. -- keywords: +64bit __ Tracker <[EMAIL PROTECTED]> ___

[issue1483] xml.sax.saxutils.prepare_input_source ignores character stream in InputSource

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Could you please provide a simple little test case for the bug? I'd like to add a test when I commit the change, but you can probably boil the problem down into a test faster than I can. -- nosy: +akuchling __ Tracker <[E

[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling nosy: +akuchling __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

  1   2   >