[issue1657] [patch] epoll and kqueue wrappers for the select module

2008-03-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

+1

trunk_select_epoll_kqueue9.patch  looks good to me.

style nit: I'd just use self.fail("error message") instead of raise
AssertionError("error message") within unittests.  regardless, both work
so I don't care. :)

--
nosy: +gregory.p.smith

__
Tracker <[EMAIL PROTECTED]>

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



[issue2384] [Py3k] line number is wrong after encoding declaration

2008-03-19 Thread Hirokazu Yamamoto

Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment:

Following dirty hack workarounds this bug. Comment of this function
says not ascii compatible encoding is not supported yet, (ie: UTF-16)
so probably this works.

Index: Parser/tokenizer.c
===
--- Parser/tokenizer.c  (revision 61632)
+++ Parser/tokenizer.c  (working copy)
@@ -464,6 +464,7 @@
Py_XDECREF(tok->decoding_readline);
readline = PyObject_GetAttrString(stream, "readline");
tok->decoding_readline = readline;
+   tok->lineno = -1; /* dirty hack */
 
   cleanup:
Py_XDECREF(stream);

But if multibyte character is in line like this, its line will not be
printed.

# coding: cp932
# 1
raise RuntimeError("あいうえお")
# 2

C:\Documents and Settings\WhiteRabbit>py3k cp932.py
Traceback (most recent call last):
  File "cp932.py", line 3, in 
[22819 refs]

This is because Python/trackeback.c 's tb_displayline() assumes
input line is encoded with UTF-8. (simply using FILE structure +
Py_UniversalNewlineFgets)

# http://mail.python.org/pipermail/python-3000/2008-March/012546.html
# sounds nice, if we can replace all FILE structure to Python's own
# fast enough codeced Reader or something.

--
type:  -> behavior

__
Tracker <[EMAIL PROTECTED]>

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



[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-03-19 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9723/experimental.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-03-19 Thread Hirokazu Yamamoto

Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment:

> (I assumed get_length_in_bytes(f, " ", 1) == 1 but I'm not sure
>  this is always true in other platforms. Probably nicer and more
>  general solution may exist)

This assumption still lives, but I cannot find better solution.
I'm thinking now attached patch is good enough.

Added file: http://bugs.python.org/file9786/fix.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue1471] ioctl request argument broken on 64-bit OpenBSD or OS X

2008-03-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

r61665 moves the test to test_ioctl instead of test_fcntl.  it also
forces it to only run when a pty is present rather than assuming fd 0

__
Tracker <[EMAIL PROTECTED]>

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



[issue1700463] VC6 build patch for trunk

2008-03-19 Thread Hirokazu Yamamoto

Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment:

issue2065 contains the patch for this branch too, so I'll close this issue.

--
resolution:  -> duplicate
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



[issue1720] VC6 build patch for release-maint25

2008-03-19 Thread Hirokazu Yamamoto

Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment:

issue2065 contains the patch for this branch too, so I'll close this issue.

--
resolution:  -> duplicate
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



[issue2431] 2to3 is rather slow

2008-03-19 Thread David Wolever

New submission from David Wolever <[EMAIL PROTECTED]>:

It takes me 10 seconds to run 2to3 on the example file.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 64152
nosy: David Wolever, collinwinter
severity: normal
status: open
title: 2to3 is rather slow
type: performance

__
Tracker <[EMAIL PROTECTED]>

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



[issue2228] Imaplib speedup patch

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

This patch buffers data inside imaplib, so if anything else wants to use
the socket it may generate surprises.  Piers?

--
assignee:  -> pierslauder
keywords: +patch
nosy: +jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2195] urlparse() does not handle URLs with port numbers properly

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> georg.brandl
nosy: +georg.brandl
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-03-19 Thread Alexander Belopolsky

Alexander Belopolsky <[EMAIL PROTECTED]> added the comment:

Attached (issue2417a.diff) patch adds unit tests and fixes a few corner 
cases when a non-preallocated 0 was returned to python.

Added file: http://bugs.python.org/file9785/issue2417a.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2212] Cookie.BaseCookie has ambiguous unicode handling

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Fix is inline.

--
assignee:  -> akuchling
keywords: +patch
nosy: +akuchling, jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2210] Nested module import clutters package namespace

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> brett.cannon
nosy: +brett.cannon
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2209] mailbox module doesn't support compressed mbox

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> akuchling
nosy: +akuchling
priority:  -> normal
type:  -> feature request

__
Tracker <[EMAIL PROTECTED]>

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



[issue2430] Stop test_format.py from executing as side effect of import

2008-03-19 Thread Jerry Seutter

New submission from Jerry Seutter <[EMAIL PROTECTED]>:

Changes to test file only, no other changes.

--
components: Tests
files: test_format_to_unittest.patch
keywords: patch, patch
messages: 64148
nosy: jseutter
priority: low
severity: normal
status: open
title: Stop test_format.py from executing as side effect of import
versions: Python 2.6
Added file: http://bugs.python.org/file9784/test_format_to_unittest.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> georg.brandl
nosy: +georg.brandl
priority:  -> normal
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



[issue2203] ssl module getpeercert returns empty dict when cert_reqs=ssl.CERT_NONE

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
priority:  -> normal
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



[issue2181] optimize out local variables at end of function

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> nnorwitz
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2181] optimize out local variables at end of function

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


__
Tracker <[EMAIL PROTECTED]>

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



[issue2193] Cookie Colon Name Bug

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> akuchling
nosy: +akuchling
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2054] add ftp-tls support to ftplib - RFC 4217

2008-03-19 Thread Bill Janssen

Bill Janssen <[EMAIL PROTECTED]> added the comment:

Once I've got JCC working, and finished the SSL work for 2.6.

On Wed, Mar 19, 2008 at 1:46 PM, Giampaolo Rodola' <[EMAIL PROTECTED]>
wrote:

>
> Giampaolo Rodola' <[EMAIL PROTECTED]> added the comment:
>
> > As you point out, the other classes should be fixed.  The old
> > client-side protocol was never very well thought out, IMHO.
> > Continuing to propagate it would be a mistake.
>
> Ok, how do you think it would have be modified?
> Could you provide an example or a new patch?
>
> __
> Tracker <[EMAIL PROTECTED]>
> 
> __
>

Added file: http://bugs.python.org/file9783/unnamed

__
Tracker <[EMAIL PROTECTED]>

__Once I've got JCC working, and finished the SSL work for 2.6.On Wed, Mar 19, 2008 at 1:46 PM, Giampaolo Rodola' 
[EMAIL PROTECTED]> wrote:

Giampaolo Rodola' [EMAIL 
PROTECTED]> added the comment:

> As you point out, the other classes should be 
fixed.  The old
> client-side protocol was never very well thought out, IMHO.
> Continuing to propagate it would be a mistake.

Ok, how do you think it would have be modified?
Could you provide an example or a new patch?

__
Tracker [EMAIL PROTECTED]>
http://bugs.python.org/issue2054>
__

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



[issue2054] add ftp-tls support to ftplib - RFC 4217

2008-03-19 Thread Bill Janssen

Bill Janssen <[EMAIL PROTECTED]> added the comment:

Probably what I should do is fix httplib, that would provide an example we
could extend to the rest of the modules.
Bill

On Wed, Mar 19, 2008 at 1:46 PM, Giampaolo Rodola' <[EMAIL PROTECTED]>
wrote:

>
> Giampaolo Rodola' <[EMAIL PROTECTED]> added the comment:
>
> > As you point out, the other classes should be fixed.  The old
> > client-side protocol was never very well thought out, IMHO.
> > Continuing to propagate it would be a mistake.
>
> Ok, how do you think it would have be modified?
> Could you provide an example or a new patch?
>
> __
> Tracker <[EMAIL PROTECTED]>
> 
> __
>

Added file: http://bugs.python.org/file9782/unnamed

__
Tracker <[EMAIL PROTECTED]>

__Probably what I should do is fix httplib, that would provide an example we 
could extend to the rest of the modules.BillOn Wed, Mar 19, 2008 at 1:46 PM, Giampaolo Rodola' 
[EMAIL PROTECTED]> wrote:

Giampaolo Rodola' [EMAIL 
PROTECTED]> added the comment:

> As you point out, the other classes should be 
fixed.  The old
> client-side protocol was never very well thought out, IMHO.
> Continuing to propagate it would be a mistake.

Ok, how do you think it would have be modified?
Could you provide an example or a new patch?

__
Tracker [EMAIL PROTECTED]>
http://bugs.python.org/issue2054>
__

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



[issue2183] optimize list comprehensions

2008-03-19 Thread Neal Norwitz

Neal Norwitz <[EMAIL PROTECTED]> added the comment:

Ya, I'll get around to it...hopefully soon.  But if someone wants to
do it for me, I won't complain. :-)

__
Tracker <[EMAIL PROTECTED]>

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



[issue2183] optimize list comprehensions

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Neal: Can you make that doc change?

--
assignee:  -> nnorwitz
nosy: +jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2422] Automatically disable pymalloc when running under valgrind

2008-03-19 Thread James Henstridge

Changes by James Henstridge <[EMAIL PROTECTED]>:


Removed file: 
http://bugs.python.org/file9780/disable-pymalloc-on-valgrind-v2.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2422] Automatically disable pymalloc when running under valgrind

2008-03-19 Thread James Henstridge

Changes by James Henstridge <[EMAIL PROTECTED]>:


Added file: 
http://bugs.python.org/file9781/disable-pymalloc-on-valgrind-v3.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2197] Further simplify dict literal bytecode

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

As addition thought is required by Alexander, I'm going to close this as
postponed and you can re-open it if after further consideration you
think it needs to be applied.  Probably would be good to discuss on
python-dev if you think it still needs to go forward though.

--
assignee:  -> rhettinger
nosy: +jafo
priority:  -> normal
resolution:  -> postponed
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



[issue2173] Python fails silently on bad locale

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2428] 2to3 deletes # comments before "from __future__ import with_statement"

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ok, fixed in r61664.

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



[issue2001] Pydoc interactive browsing enhancement

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> ping
nosy: +ping
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2189] urllib.quote() throws KeyError when passed an iterator

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Yeah, I'm going to agree that urllib's documentation is clear about it
taking a string instead of a list.

--
assignee:  -> jafo
nosy: +jafo
priority:  -> normal
resolution:  -> wont fix
status: open -> closed
type:  -> behavior

__
Tracker <[EMAIL PROTECTED]>

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



[issue2190] MozillaCookieJar ignore HttpOnly cookies

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> loewis
nosy: +loewis
priority:  -> normal
type:  -> feature request

__
Tracker <[EMAIL PROTECTED]>

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



[issue2188] [patch] urllib2 hint - disabled ProxyHandler()

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Committed in rev 61663, thanks.

--
nosy: +jafo
priority:  -> normal
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



[issue2180] tokenize: mishandles line joining

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> jhylton
nosy: +jhylton

__
Tracker <[EMAIL PROTECTED]>

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



[issue2422] Automatically disable pymalloc when running under valgrind

2008-03-19 Thread James Henstridge

James Henstridge <[EMAIL PROTECTED]> added the comment:

A slightly cleaned up version of the previous patch.  I only needed to
include .

Added file: 
http://bugs.python.org/file9780/disable-pymalloc-on-valgrind-v2.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2182] tokenize: does not allow CR for a newline

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> gvanrossum
components: +Library (Lib) -Extension Modules
nosy: +gvanrossum
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2174] xml.sax.xmlreader does not support the InputSource protocol

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> fdrake
nosy: +fdrake
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2178] Problems with Belarusian Latin locale

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
components: +Unicode -None
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2175] Expat sax parser silently ignores the InputSource protocol

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> loewis
nosy: +loewis
priority:  -> normal

__
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-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


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

__
Tracker <[EMAIL PROTECTED]>

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



[issue1738] filecmp.dircmp does exact match only

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Please also include at least documentation changes, since this changes
the behavior of the module.  This would be in the file:
Doc/library/filecmp.rst

Also.  If possible a test would be great.  The file for this would be:
./Lib/test/test_filecmp.py

--
keywords: +patch
nosy: +jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue1657] [patch] epoll and kqueue wrappers for the select module

2008-03-19 Thread Trent Nelson

Trent Nelson <[EMAIL PROTECTED]> added the comment:

Patch applies cleanly on FreeBSD 6.2-STABLE and all tests pass.  Can't 
comment on technical accuracy.

--
nosy: +Trent.Nelson

__
Tracker <[EMAIL PROTECTED]>

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



[issue2320] Race condition in subprocess using stdin

2008-03-19 Thread Ludwig Hähne

Ludwig Hähne <[EMAIL PROTECTED]> added the comment:

Hi, I narrowed the problem down to the creation of the error pipe in
_execute_child:

>> errpipe_read, errpipe_write = os.pipe()
>> self._set_cloexec_flag(errpipe_write)

If I protect these two lines with a lock, I cannot reproduce the hang
anymore (tested against Python 2.5.1).

I'm not yet sure why this should be atomic (as there are no classic race
condition problems involved AFAICT).

By the way, this is on Linux:
> uname -a
Linux jade 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686
GNU/Linux

__
Tracker <[EMAIL PROTECTED]>

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



[issue1025525] asyncore.file_dispatcher should not take fd as argument

2008-03-19 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>:


--
nosy: +giampaolo.rodola

_
Tracker <[EMAIL PROTECTED]>

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



[issue777588] asyncore is broken for windows if connection is refused

2008-03-19 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>:


--
nosy: +giampaolo.rodola


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-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


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



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

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

ssl.SSLSocket.read() says: Return zero-length string on EOF.  So, I'm
going to apply this patch.  Applied in rev 61656.

--
keywords: +patch
nosy: +jafo
priority:  -> normal

__
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-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Closing as a duplicate of 1858.

--
nosy: +jafo
resolution:  -> duplicate
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



[issue1741] .pypirc not found on windows

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
superseder:  -> Make .pypirc handle multiple servers

__
Tracker <[EMAIL PROTECTED]>

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



[issue2329] ImportError: No module named _bsddb

2008-03-19 Thread Trent Nelson

Trent Nelson <[EMAIL PROTECTED]> added the comment:

Please provide more information about your platform.  Also note 
that ./configure needs to be able to find pre-existing bsddb libs in 
order for Python to build the _bsddb module.

--
nosy: +Trent.Nelson

__
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-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
priority:  -> normal
superseder:  -> Make .pypirc handle multiple servers

__
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-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

I'm closing this as a duplicate of #1858.

--
nosy: +jafo
resolution:  -> duplicate
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



[issue2427] 2to3 should translate itertools.imap into generator expression, not list comprehension

2008-03-19 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

Thanks David.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2427] 2to3 should translate itertools.imap into generator expression, not list comprehension

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ok, I've added explicit ordering to fixers in r61654, fixing this issue.

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



[issue2059] OptionMenu class is defined both in Tkinter and Tix

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

I don't see the problem with the example listed in the last message.  It
sounds like the Tix documentation is confirming that this is the desired
behavior.

--
nosy: +jafo
priority:  -> normal
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



[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-03-19 Thread Jeff Balogh

Changes by Jeff Balogh <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9736/issue2370.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2370] operator.{isCallable,sequenceIncludes} needs a fixer

2008-03-19 Thread Jeff Balogh

Jeff Balogh <[EMAIL PROTECTED]> added the comment:

Attaching a revised patch that has a ``warnsunchanged`` test case.

Added file: http://bugs.python.org/file9779/issue2370.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2366] Fixer for new metaclass syntax is needed

2008-03-19 Thread Jack Diederich

Jack Diederich <[EMAIL PROTECTED]> added the comment:

Here is a partial implementation.  It doesn't warn about __metaclass__
at the module level and doesn't handle multiple __metaclass__
assignements in one class.  tests pending.

--
keywords: +patch
Added file: http://bugs.python.org/file9778/fix_metaclass.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2159] dbmmodule inquiry function is performance prohibitive

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Proposed patch is inline.

--
assignee:  -> gvanrossum
keywords: +patch
nosy: +gvanrossum, jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2155] optparse.OptionGroup with_statement context handling

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Patch is inline.

--
assignee:  -> gward
keywords: +patch
nosy: +gward, jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2148] nis module not supporting group aliases

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> loewis
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2141] Pydoc interactive browser misses some docs

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> ping
nosy: +ping
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue1471] ioctl request argument broken on 64-bit OpenBSD or OS X

2008-03-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

I am unable to reproduce this problem at all on Mac OS X 10.4 or 10.5
with 32-bit or 64-bit python trunk builds.

I have however checked in a fix that'll prevent negative code values
passed in from being sign extended to 64-bits when converted to an
unsigned long on platforms that use those.

A unittest for fcntl.ioctl behavior when passed both positive and
negative values is included.

trunk r61652

while the Linux man page describe's ioctl's code parameter as an int,
the sys/ioctl.h file on linux has it as an unsigned long int in the
function prototype.  So its quite possible it is actually an unsigned
long on all platforms and we should change unsigned int code to unsigned
long code and the 'I' to a 'k'.

However if that is done we -might- have a sign extension problem again
if anyone is passing a negative value in and expecting it to act like a
32-bit value.   If the OS kernels only look at the lower 32-bits of the
ioctl code during the syscall it'd work, but if it tested the 64bit
value -123 64bit != -123 32bit.  The better answer to that would be to
just reject all negative values and fix any defined ioctl code constants
to be positive on all platforms.

fbvortex.  Can you apply the change from svn to your python and test
that it works properly on your 64-bit OpenBSD system?  Thanks.

paste a note here once you have with the results.

--
resolution:  -> fixed
status: open -> pending

__
Tracker <[EMAIL PROTECTED]>

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



[issue2413] os.strerror does not check for out of range argument

2008-03-19 Thread Terry J. Reedy

Changes by Terry J. Reedy <[EMAIL PROTECTED]>:


--
nosy:  -tjreedy

__
Tracker <[EMAIL PROTECTED]>

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



[issue2136] urllib2 basic auth handler doesn't handle realm names in single-quoted strings

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

This patch looks good to me, but I don't know the implications of this.
 It seems reasonable to me, but I'd defer to an HTTP lawyer.

--
assignee:  -> georg.brandl
keywords: +patch
nosy: +georg.brandl, jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-03-19 Thread Adam Olsen

Adam Olsen <[EMAIL PROTECTED]> added the comment:

Unless someone has a legitimate use case for disabling small_int that
doesn't involve debugging (which I really doubt), I'd just assume it's
always in use.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2429] Patch for test_urllib2_net moving tests to use a local server

2008-03-19 Thread Michael Foord

New submission from Michael Foord <[EMAIL PROTECTED]>:

This patch moves some tests from test_urllib2_net to
test_urllib2_localnet. The moved tests now use a local server rather
than going out to external servers.

Mainly the work of Jerry Seutter - so blame him. ;-)

--
components: Tests
files: network_tests.patch
keywords: patch
messages: 64121
nosy: fuzzyman
severity: normal
status: open
title: Patch for test_urllib2_net moving tests to use a local server
versions: Python 2.6
Added file: http://bugs.python.org/file9777/network_tests.patch

__
Tracker <[EMAIL PROTECTED]>

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



[issue2381] test_subprocess fails if your sys.executable is on a path with a space in it

2008-03-19 Thread Jeff Balogh

Jeff Balogh <[EMAIL PROTECTED]> added the comment:

The patch works for me, and doesn't change anything except the test 
strings.

Not having spaces in your path also helps. ;)

--
nosy: +jeff.balogh

__
Tracker <[EMAIL PROTECTED]>

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



[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-03-19 Thread Alexander Belopolsky

Alexander Belopolsky <[EMAIL PROTECTED]> added the comment:

Attached patch fixes the cases discovered so far.  It is possible that 
in some of these cases creation of the long object that is later 
discarded can be avoided by detecting small int return early, but such 
optimizations should probably be left for later.

Any advise on how to write a unit test?  Should the unit test detect 
python compiled with NSMALLNEGINTS + NSMALLPOSINTS == 0 and disable 
identity checks?

--
keywords: +patch
Added file: http://bugs.python.org/file9776/issue2417.diff

__
Tracker <[EMAIL PROTECTED]>

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



[issue2407] warnings.filterwarnings() not isolated between tests

2008-03-19 Thread Brett Cannon

Brett Cannon <[EMAIL PROTECTED]> added the comment:

Fixed in revision 61651.

--
nosy: +brett.cannon
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



[issue2366] Fixer for new metaclass syntax is needed

2008-03-19 Thread Collin Winter

Collin Winter <[EMAIL PROTECTED]> added the comment:

A quick test indicates that the old way doesn't work anymore.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2132] Blocking sockets take entirely too long to timeout

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

smtplib is for sending messages via SMTP, not for testing to see if a
user is behind an ISP that is incorrectly blocking outgoing SMTP
connections.  I would argue the "incorrectly" because they are dropping
rather than rejecting the connection packets.

One mechanism would be to use an alarm(30) call which would limit the
whole transaction to 30 seconds (connection, EHLO, RCPT, QUIT), not just
the connection.  My experience with dealing with remote machines in a
time-sensitive manner is that this approach is much more usable than
using socket timeouts.

A better mechanism is probably to use non-blocking socket I/O directly
and make connections to all or many of the remote servers and test them
in parallel, meaning all servers could be tested in 30 seconds (or
whatever your timeout is) rather than 5 minutes (you imply in your
message that you may be doing more than a dozen requests).

So, I believe the current functionality in the smtplib of being simple
and conservative at trying to get messages through, rather than trying
to be optimized for checking for account existance, is reasonable.  And
that in any case, using alarm() is a better solution than socket timeouts.

--
nosy: +jafo
priority:  -> normal
resolution:  -> wont fix
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



[issue1641] asyncore delayed calls feature

2008-03-19 Thread Daniel Arbuckle

Daniel Arbuckle <[EMAIL PROTECTED]> added the comment:

Unfortunately, it appears that asyncore and asynchat are caught in a
deadlock, in which it is demanded that certain patches be applied before
any further work is done, but nobody (even among those making the
demands) is both willing and able to review and apply those patches.

We need this situation to be resolved, preferably by somebody with
commit access doing the necessary work, but failing that by allowing new
patches and requiring the old ones to be updated at whatever time
somebody decides to actually address them.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2428] 2to3 deletes # comments before "from __future__ import with_statement"

2008-03-19 Thread David Wolever

Changes by David Wolever <[EMAIL PROTECTED]>:


--
assignee: collinwinter -> David Wolever
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>

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



[issue2427] 2to3 should translate itertools.imap into generator expression, not list comprehension

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

itertools.imap is being translated directly to map... But I bet this is 
another one of those ordering problems -- itertools.imap is converted to 
the map, then the map is converted to list(map(...)) because fix_map 
doesn't know that map was already fixed.

--
assignee: collinwinter -> David Wolever
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>

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



[issue2413] os.strerror does not check for out of range argument

2008-03-19 Thread Alexander Belopolsky

Alexander Belopolsky <[EMAIL PROTECTED]> added the comment:

And on some system "Unknown error: nnn" is returned with no error indication.

Your concern that the patch is invalid on some unidentified system.
This concern
can easily be addressed by checking for NULL return *in addition* to
the errno check.

The real question is whether it is desirable  to raise ValueError from
strerror() when
error code is out of bound.  I would say the existing code intends to
do exactly that,
but th error check is incorrect on at least one popular platform. I
believe it is better
to raise an error because as a user, seeing "unknown error has
occurred" message,
is one of the worst experiences.

On the other hand, if the consensus is that  strerror() should always
(short of out of
memory condition) return a string, then (assuming null return is a
possibility) the code
needs to be changed to return "Unknown error: nnn"  instead of raising an error.

__
Tracker <[EMAIL PROTECTED]>

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



[issue1943] improved allocation of PyUnicode objects

2008-03-19 Thread Antoine Pitrou

Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

Thanks for your interest Sean :)
By the way, on python-3000 both GvR and Martin von Löwis were ok on the
proposed design change, although they did not review the patch itself.
http://mail.python.org/pipermail/python-3000/2008-February/012076.html

__
Tracker <[EMAIL PROTECTED]>

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



[issue751758] ftplib.retrbinary fails when called from retrlines callback

2008-03-19 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>:


--
nosy: +giampaolo.rodola


Tracker <[EMAIL PROTECTED]>


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



[issue1576598] ftplib doesn't follow standard

2008-03-19 Thread Giampaolo Rodola'

Giampaolo Rodola' <[EMAIL PROTECTED]> added the comment:

I think the problem you described is up to the FTP server implementation
which does not have unicode support.
The telnet protocol is used in FTP only when dealing with ABOR and STAT
commands. It has nothing to do with pathnames.

--
nosy: +giampaolo.rodola

_
Tracker <[EMAIL PROTECTED]>

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



[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning

2008-03-19 Thread Collin Winter

Collin Winter <[EMAIL PROTECTED]> added the comment:

There's currently no central repository that I know of. We should have
an informational PEP on the subject; would you like to start one with
sort/sorted keys as the seed? I've got some notes I can contribute, and
I'd like to milk Guido for his experience with str/bytes porting.

--
assignee: collinwinter -> rhettinger

__
Tracker <[EMAIL PROTECTED]>

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



[issue1813] Codec lookup failing under turkish locale

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Marc-Andre: How should we proceed with this bug?  Discuss on python-dev
or c.l.python?

--
assignee:  -> lemburg
keywords: +patch
nosy: +jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue1943] improved allocation of PyUnicode objects

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Marc-Andre: Wit the udpated patches, is this a set of patches we can accept?

--
assignee:  -> lemburg
keywords: +patch
nosy: +jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2126] BaseHTTPServer.py fails long POST from IE

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Raymond: Can you see the other related issues and see if the proposed
fix (inline in the comment) is acceptable?

--
assignee:  -> rhettinger
nosy: +jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue1390] toxml generates output that is not well formed

2008-03-19 Thread Thomas Conway

Thomas Conway <[EMAIL PROTECTED]> added the comment:

On Thu, Mar 20, 2008 at 8:26 AM, Sean Reifschneider
<[EMAIL PROTECTED]> wrote:
>
>  Sean Reifschneider <[EMAIL PROTECTED]> added the comment:
>
>  Martin: What do you think of this patch?

Looks fine.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2413] os.strerror does not check for out of range argument

2008-03-19 Thread Ralf Schmitt

Ralf Schmitt <[EMAIL PROTECTED]> added the comment:

my manpage (debian testing) states:

POSIX.1-2001  permits strerror() to set errno if the call encounters an
error, but does not specify what value should be returned as the  func‐
tion  result  in  the  event  of an error.  On some systems, strerror()
returns NULL if the error number is unknown.  On  other  systems,  str‐
error()  returns  a string something like "Error nnn occurred" and sets
errno to EINVAL if the error number is unknown.

So, I think this patch should be rejected.

--
nosy: +schmir

__
Tracker <[EMAIL PROTECTED]>

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



[issue1390] toxml generates output that is not well formed

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Martin: What do you think of this patch?

--
assignee:  -> loewis
nosy: +jafo
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue1641] asyncore delayed calls feature

2008-03-19 Thread Giampaolo Rodola'

Giampaolo Rodola' <[EMAIL PROTECTED]> added the comment:

Sean, I already tried to raise two discussion attempts on both lists here:
http://groups.google.com/group/python-dev2/browse_thread/thread/ecbf4d38a868d4f/ec5c7dbd40664b7f?lnk=gst&q=asyncore+giampaolo
...and here:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/603d6c05aa6965c0/af451aedadb75832?lnk=gst&q=delayed+call#af451aedadb75832
...but no one seems to be interested at this feature.

Moreover, before doing anything against asyncore and asynhat there are a
lot of long-time pending patches which should be committed first; see here:
http://groups.google.com/group/python-dev2/browse_thread/thread/eec1ddadefe09fd8/a38270231620870e?lnk=gst&q=asyncore

__
Tracker <[EMAIL PROTECTED]>

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



[issue1248] ftplib needs a rewrite to use bytes/buffers

2008-03-19 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' <[EMAIL PROTECTED]>:


--
nosy: +giampaolo.rodola

__
Tracker <[EMAIL PROTECTED]>

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



[issue2125] Read support for Records in msilib

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> loewis
keywords: +patch
nosy: +loewis
priority:  -> normal
title: [patch] Read support for Records in msilib -> Read support for Records 
in msilib

__
Tracker <[EMAIL PROTECTED]>

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



[issue1053369] ftplib: add support for MDTM command

2008-03-19 Thread Giampaolo Rodola'

Giampaolo Rodola' <[EMAIL PROTECTED]> added the comment:

IMHO aside from the plus of providing a workaround for a broken FTP
server response I don't think this is really necessary since the same
thing can be done by just using sendcmd('mdtm filename').

--
nosy: +giampaolo.rodola

_
Tracker <[EMAIL PROTECTED]>

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



[issue2116] weakref copy module interaction

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Rick: In the future, please provide a context or unified diff ("diff
-c") so that we get the file name that the diff is for and some
additional context.

--
assignee:  -> tim_one
keywords: +patch
nosy: +jafo, tim_one
priority:  -> normal
type: crash -> behavior

__
Tracker <[EMAIL PROTECTED]>

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



[issue2113] Bad interaction between signal and subprocess

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Daniele: Please provide an updated version of this patch based on the
feedback below.

--
assignee:  -> gregory.p.smith
keywords: +patch
nosy: +gregory.p.smith, jafo
priority:  -> normal
type: crash -> behavior

__
Tracker <[EMAIL PROTECTED]>

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



[issue2349] Py3K warn against assigning to True/False

2008-03-19 Thread Brett Cannon

Changes by Brett Cannon <[EMAIL PROTECTED]>:


--
assignee: brett.cannon -> rhettinger

__
Tracker <[EMAIL PROTECTED]>

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



[issue1641] asyncore delayed calls feature

2008-03-19 Thread Sean Reifschneider

Sean Reifschneider <[EMAIL PROTECTED]> added the comment:

Giampaolo: Can you pleaes bring this up on python-dev or the normal
python mailing list for further discussion on the issue?

--
assignee:  -> akuchling
keywords: +patch
nosy: +akuchling, jafo
priority:  -> normal
type:  -> feature request

__
Tracker <[EMAIL PROTECTED]>

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



[issue2428] 2to3 deletes # comments before "from __future__ import with_statement"

2008-03-19 Thread Bruce Frederiksen

New submission from Bruce Frederiksen <[EMAIL PROTECTED]>:

2to3, svn rev 61623.  To reproduce this error:

$ cat < foobar.py
# line 1
# line 2

from __future__ import with_statement
import sys
!
$ 2to3 -w foobar.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: ws_comma
--- foobar.py (original)
+++ foobar.py (refactored)
@@ -1,5 +1,2 @@
-# line 1
-# line 2
 
-from __future__ import with_statement
 import sys
RefactoringTool: Files that were modified:
RefactoringTool: foobar.py
$ cat foobar.py

import sys
$

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 64098
nosy: collinwinter, dangyogi
severity: normal
status: open
title: 2to3 deletes # comments before "from __future__ import with_statement"
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



[issue2102] New style vs. old style classes __ror__() operator overloading

2008-03-19 Thread Sean Reifschneider

Changes by Sean Reifschneider <[EMAIL PROTECTED]>:


--
assignee:  -> fdrake
components: +Documentation -Interpreter Core
nosy: +fdrake
priority:  -> normal

__
Tracker <[EMAIL PROTECTED]>

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



[issue2054] add ftp-tls support to ftplib - RFC 4217

2008-03-19 Thread Giampaolo Rodola'

Giampaolo Rodola' <[EMAIL PROTECTED]> added the comment:

> As you point out, the other classes should be fixed.  The old 
> client-side protocol was never very well thought out, IMHO.  
> Continuing to propagate it would be a mistake.

Ok, how do you think it would have be modified?
Could you provide an example or a new patch?

__
Tracker <[EMAIL PROTECTED]>

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



[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning

2008-03-19 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

Collin, is there some place where I should write-up how to transition
sort cmp functions?

Often, it is straight-forward to write a simpler key function, but
sometimes it isn't obvious how to proceed (i.e. cases that have an
ascending primary key and descentding secondary key or cases where a
user supplied cmp function is an unchangable, exposed part of the API).

I would like to issue some guidance on the subject.

--
assignee: rhettinger -> collinwinter
nosy: +collinwinter
status: closed -> open

__
Tracker <[EMAIL PROTECTED]>

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



[issue2375] PYTHON3PATH environment variable to supersede PYTHONPATH for multi-Python environments

2008-03-19 Thread Glyph Lefkowitz

Glyph Lefkowitz <[EMAIL PROTECTED]> added the comment:

The idea is that PYTHON3PATH will be honored in preference to
PYTHONPATH, but PYTHONPATH will still be honored.  It's exposed only to
people who specifically need it.

However, I think it's misleading to call the Python 3 transition a
"transient" problem.  If we're lucky, it's going to be a decade of slow
progress.  If we're not, it will never end.  Try, for example, compiling
your system C library without "gets", and see what happens.  (And that's
been an issue for more than 10 years!)

The biggest way to shorten this problem is to provide tools and idioms
for developers to use when porting.  Specifically like this feature.

As far as "version specific file extensions" - I'd be very happy with
that but Guido has said several times that he doesn't like it.  Feel
free to discuss that with him, but this change is far less invasive. 
Users who don't need it will simply never know about it.

__
Tracker <[EMAIL PROTECTED]>

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



[issue2427] 2to3 should translate itertools.imap into generator expression, not list comprehension

2008-03-19 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

Why isn't itertools.imap() being translated directly to builtins.map()?

--
nosy: +rhettinger

__
Tracker <[EMAIL PROTECTED]>

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



  1   2   >