[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
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/file9493/test_logging.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
be considered for inclusion in the std. lib.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
severity: normal
status: open
title: pydistutils.cfg won't be found on Windows
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 buildbots)
tests?

--
nosy: +ajaksu2
Added file: http://bugs.python.org/file9495/BaseHTTP_error_content_type.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 already muddy,
it's just that the mud is blue so everything seems alright :)

I think zanella's patch is the way to go, even if it requires adding a
setter method.

--
nosy: +rbp

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, although indeed only 5 seconds pass:

==
# time python test_times.py
8.333

real0m5.018s
user0m5.008s
sys 0m0.008s
==

I don't know which characteristics of the machine are causing this.

--
nosy: +maltehelmert
Added file: http://bugs.python.org/file9497/test_times.py

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the --git diff).

--
files: python-remove-unused-imports.diff
messages: 62746
nosy: calvin
severity: normal
status: open
title: Remove unused imports
Added file: http://bugs.python.org/file9498/python-remove-unused-imports.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 after
connection is already stablished, since it's a subclass of
SMTPResponseException.

As a bonus I removed a explicit raise socket.error from line 290, when
an user pass a non-integer port.

--
nosy: +werneck
Added file: http://bugs.python.org/file9499/issue_2118_smtplib.patch

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
messages: 62749
nosy: therve
severity: normal
status: open
title: gdbm needs to be iterable
versions: Python 2.6

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-installed (SuSE) Python 2.5.
The third Python is a Python 2.5 I installed manually from source some
time ago. Strange that it would differ from the second; it appears to be
the same revision as the second from the greeting message.

Anyway, I can reproduce the error in the trunk, which is good.
This is a 64-bit SuSE Linux machine (Xeon X5355 @ 2.66GHz).

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

Added file: http://bugs.python.org/file9500/bugday-distutils.patch

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 stylistically ok (#ifdefs inside a function,
etc.), so I'd appreciate comments.

Should I add a test case for the test suite?

Added file: http://bugs.python.org/file9501/os_times.PATCH

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Added file: http://bugs.python.org/file9502/webbrowser-nogconf-backport.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 whether or not
HAVE_SYSCONF should be implied by HAVE_TIMES.

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


In a search over the stdlib, there are many hits for, e.g., "print
'Content-Type:','X'", but most (if not all) of these are printing to
stdout and also sending the headers correctly terminated over the network.

Other instances are due to local handling of files (like in
urllib2.FTPHandler.ftp_open), and in these we could change the explicit
"\n" to "\r\n", but there would be no gain IMHO.

I suggest closing this bug (at least until concrete examples of sending
non-CRLF terminated headers are provided).

--
nosy: +ajaksu2

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
idea, so I'll apply the patch as-is, and update the docs.

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 additional test for some other Linux distributions.

--
nosy: +pavel.vinogradov
Added file: http://bugs.python.org/file9504/test_platform_py26.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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'm sure wiser than me)
disagrees.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/file9505/mutex.diff

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tests will take long for everyone.

Currently, WAIT_TIME is 0.1 seconds and the tolerance in the assertion
is about 5%, which works well for me. Not sure how this behaves on very
busy machines.

Added file: http://bugs.python.org/file9506/test_posix.PATCH

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
to start building individual PDF files on python.org.

--
nosy: +akuchling
resolution:  -> works for me
status: open -> closed


Tracker <[EMAIL PROTECTED]>


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 than simply compute the
increase in the first and second return values of os.times()?

--
nosy: +pitrou

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, so that's what I
tried to reproduce. But looking at the code, the bug should occur just
as well with the running process itself. So you're right; one could just
busy-wait for a second and then look at times()[0] and times()[1].

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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


Tracker <[EMAIL PROTECTED]>


___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
files: SimpleHTTP_doctype_tags.diff
messages: 62780
nosy: ajaksu2
severity: minor
status: open
title: Adding DOCTYPE and "html", "body" tags to SimpleHTTPServer
type: feature request
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file9508/SimpleHTTP_doctype_tags.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 hit is that the new_buffersize value is
allowed to grow without bounds and is never rechecked for sanity, then
is passed in to PyString_Resize where it is converted from unsigned int
to signed int.

I suggest adding a check of new_buffersize against PY_SSIZE_T_MAX.  If
it exceeded, we could raise an OverflowError - "unbounded read consumed
more bytes than a Python string can hold"

--
nosy: +dugan

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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) if you are ready to
commit them.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 capable libraries such
as httplib2 (http://code.google.com/p/httplib2/), but this is slightly
at war 
with the batteries-included philosophy.

So, I propose we:

* add warnings to the urllib, urllib2, saxutil module docs that parsing
can retrieve arbitrary resources over the network, and encourage the
user to use a smarter library such as httplib2.
* update the urllib2 HOWTO to mention this.

I'm willing to do the necessary writing.

--
assignee:  -> akuchling
priority: urgent -> normal

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 from previous comments it
looks like a different test will be used anyway.

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: normal
status: open
title: rewrite of minidom.Node.normalize
type: feature request
versions: Python 2.6
Added file: http://bugs.python.org/file9513/minidom.diff

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 patch (modified from Malte's) which implements that.

--
nosy: +rbp
versions: +Python 2.5, Python 2.6
Added file: http://bugs.python.org/file9514/os_times2.PATCH

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 be large enough. A busy wait loop for 0.1 seconds should easily
get the 5% precision required by the assertAlmostEqual.

Added file: http://bugs.python.org/file9515/test_posix2.PATCH

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 "maxsize: ", q.maxsize

# Not full() with instance
print c > 0
print len(q.queue) == q.maxsize

class T(Thread):
  def __init__(self, q):
self._q = q
Thread.__init__(self)
  
  def run(self):
#For sme bizarre motive
self._q.maxsize = 5

#Ends up being infinite most of the times
t = T(q)

for i in xrange(1000):
  q.put_nowait(i)
  if i == 1: # otherwise the "and len(self.queue) == self.maxsize" will fail
t.start()
time.sleep(1)

t.join()
"""

I guess rhettinger is right, there's no issue here, anyone that decides
to change the maxsize afterwards should know what is doing.

The only "possible" problem I'm able to see is someone passing an object
wich has __int__() and expecting it to be used.

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/file9516/test_posix3.PATCH

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 context manager.

--
assignee: skip.montanaro -> jyasskin
nosy: +jyasskin

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.
Return zero-length string on EOF."""

return self._sslobj.read(len)
"""

wich would fulfill the "if not chr:"

--
nosy: +zanella

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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_times2.PATCH.

Added file: http://bugs.python.org/file9518/os_times3.PATCH

_
Tracker <[EMAIL PROTECTED]>

_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >