[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-27 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

I reproduce the test failure very consistently, on both win2k and winXP, 
and may be of some help to test stuff.

--
nosy: +amaury.forgeotdarc

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3187] os.listdir can return byte strings

2008-09-27 Thread STINNER Victor

Changes by STINNER Victor <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file11189/filename.py

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3187] os.listdir can return byte strings

2008-09-27 Thread STINNER Victor

Changes by STINNER Victor <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file11210/invalid_filename.patch

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3978] ZipFileExt.read() can be incredibly slow

2008-09-27 Thread Antoine Pitrou

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

Very interesting, but it will have to wait for 2.7/3.1. 2.6 and 3.0 are
in the final phases of the release process.

--
nosy: +pitrou
priority:  -> normal
versions: +Python 3.1 -Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3872] Python 2.6rc2: Tix ComboBox error

2008-09-27 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

Thanks for the patch. I have now integrated this patch into
externals/tix-8.4.3.1 (along with a patch to compile it for AMD64). Demo
installers including this code are available at

http://www.dcl.hpi.uni-potsdam.de/home/loewis/u/python-2.6.14149.msi
http://www.dcl.hpi.uni-potsdam.de/home/loewis/u/python-2.6.14149.amd64.msi

I'm skeptical about the build_tkinter patch. It seems fairly invasive,
so I'd rather defer it until after the release.

--
priority: critical -> normal
resolution:  -> fixed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3981] Python 3, IDLE does not start

2008-09-27 Thread bahiminin

New submission from bahiminin <[EMAIL PROTECTED]>:

I have Windows XP with Live OneCare as protection. Python 3 IDLE won't
start because of sub-process issues while Python 2.5.2 IDLE does start
without any problem.

--
messages: 73923
nosy: dah
severity: normal
status: open
title: Python 3, IDLE does not start
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3665] Support \u and \U escapes in regexes

2008-09-27 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>:


--
nosy: +timehorse

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3482] re.split, re.sub and re.subn should support flags

2008-09-27 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>:


--
nosy: +timehorse

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3482] re.split, re.sub and re.subn should support flags

2008-09-27 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>:


--
versions: +Python 2.7, Python 3.1 -Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3299] invalid object destruction in re.finditer()

2008-09-27 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>:


--
versions: +Python 2.7 -Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3665] Support \u and \U escapes in regexes

2008-09-27 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>:


--
versions: +Python 2.7, Python 3.1 -Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1519638] Unmatched Group issue - workaround

2008-09-27 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>:


--
nosy: +timehorse

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1519638] Unmatched Group issue - workaround

2008-09-27 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>:


--
versions: +Python 2.7 -Python 2.5

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)

2008-09-27 Thread Jeffrey C. Jacobs

Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>:


--
nosy: +timehorse
versions: +Python 2.7

___
Python tracker <[EMAIL PROTECTED]>

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



[issue433029] SRE: posix classes aren't supported

2008-09-27 Thread Fredrik Lundh

Fredrik Lundh <[EMAIL PROTECTED]> added the comment:

Yes, this refers to the POSIX character classes as described here:

http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html

(Ideally, there should be an (internal) API that lets you register class 
definitions from the Python level.)

Support for Unicode properties could perhaps be addressed at the same 
time:

http://unicode.org/unicode/reports/tr18/#Basic_Unicode_Support

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3187] os.listdir can return byte strings

2008-09-27 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

getcwd() fails with "NOT FOUNT" (not foun*d*?) if the current 
directory filename can't be converted to unicode (str type). Here is a 
patch to fallback to bytes if creation of the unicode failed.

Added file: http://bugs.python.org/file11632/getcwd_bytes.patch

___
Python 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-09-27 Thread STINNER Victor

Changes by STINNER Victor <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file11610/tokenizer-coding.patch

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3187] os.listdir can return byte strings

2008-09-27 Thread Dwayne Litzenberger

Dwayne Litzenberger <[EMAIL PROTECTED]> added the comment:

On Sat, Sep 27, 2008 at 01:15:46AM +, Guido van Rossum wrote:
> I don't see the advantage over the existing rule bytes in -> bytes out...

Guido,

I figure I should say something since I have some experience in this area.

I wrote some automatic backup software in Python 2 earlier this year.  It
had to work on ext3/Linux (where filenames are natively octet-strings) and
on NTFS/Win32 (where filenames are natively unicode-strings).  I had to be
ridiculously careful to always use unicode paths on Win32, and to always
use str paths on Linux, because otherwise Python would do the conversion
automatically---poorly.

It was particularly bad on Win32, where if you used os.listdir() with a
non-unicode path (Python 2.x str object) in a directory that contained
non-ascii filenames, Windows would invent filenames that looked similar but
couldn't actually be found when using open().  So, naive (Python 2) code
like this would break:

for filename in os.listdir("."):
f = open(filename, "rb")
# ...

On Linux, it was bad too, since if you used unicode paths, the filenames
actually opened would depend on your LANG or LC_CTYPE or LC_ALL environment
variables, and those could vary from one system to another, or even from
one invocation of the program to another.

The simple fact of the matter is that pathnames on Linux are _not_ Unicode,
and pathnames on Windows are _not_ octet strings.  They're fundamentally
incompatible types that can only be reconciled when you make assumptions
(e.g. specifying a character encoding) that allow you to convert from one
to the other.

Ideally, io.open(), os.listdir(), os.path.*, etc. would accept _only_
pathnames in their native format, and it would be the job of a wrapper to
provide a portable-but-less-robust interface on top of that.  Perhaps the
built-in functions would use the wrapper (with reasonable defaults), but
the native-only interface should be there for module-writers who want
robust pathname handling.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue2832] Line numbers reported by extract_stack are offset by the #-*- encoding line

2008-09-27 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

This bug is a duplicate of the issue 2384: I tried your example with 
the patch tokenizer-coding-2.patch and your bug is fixed:
 * first example (no coding): this is line 3
 * second example (with coding): this is line 4

--
nosy: +haypo

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3975] PyTraceBack_Print() doesn't respect # coding: xxx header

2008-09-27 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

Ooops, my first version introduces a regression: if file open fails, 
the traceback printing was stopped. Here is a new version of my patch 
to support #coding: header in _Py_DisplaySourceLine(). It doesn't 
print the line of file open fails, but continue to display the end of 
the traceback.

But print still stops on PyFile_WriteObject() or PyFile_WriteString(). 
If PyFile fails, I guess that next print will also fails. (it's also 
the current behaviour of PyTraceBack_Print).

Example:

Python 3.0rc1+ (py3k:66643M, Sep 27 2008, 17:11:51)
>>> raise Exception('err')
Traceback (most recent call last):
  File "", line 1, in 
Exception: err


The line is not displayed (why? no idea), but the exception 
("Exception: err") is still displayed.

Added file: http://bugs.python.org/file11633/traceback_unicode-2.patch

___
Python 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-09-27 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

Issue 2832 is a duplicate.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue2832] Line numbers reported by extract_stack are offset by the #-*- encoding line

2008-09-27 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> [Py3k] line number is wrong after encoding declaration

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3740] PEP 3121 --- module state is not nul-initalized as claimed in the PEP

2008-09-27 Thread Paul Pogonyshev

Paul Pogonyshev <[EMAIL PROTECTED]> added the comment:

Ping.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3982] support .format for bytes

2008-09-27 Thread Benjamin Peterson

New submission from Benjamin Peterson <[EMAIL PROTECTED]>:

I just working on porting some networking code from 2.x to 3.x and it
heavily uses string formatting. Since bytes don't support any kind of
formatting, it's becoming tedious and inelegant to do it with "+". Can
.format be supported in bytes?

[I understand format is implemented with stringlib so shouldn't it be
fairly easy to implement?]

--
components: Interpreter Core
messages: 73931
nosy: benjamin.peterson, eric.smith
priority: normal
severity: normal
status: open
title: support .format for bytes
type: feature request
versions: Python 3.1

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3740] PEP 3121 --- module state is not nul-initalized as claimed in the PEP

2008-09-27 Thread Christian Heimes

Christian Heimes <[EMAIL PROTECTED]> added the comment:

The state (md_state) is set to NULL in PyModule_New(name). However
PyModule_Create(mod) allocates memory iff the module size (m_size) isn't 0.

--
components: +Documentation
nosy: +christian.heimes
priority:  -> critical

___
Python tracker <[EMAIL PROTECTED]>

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



[issue2876] Write UserDict fixer for 2to3

2008-09-27 Thread Nick Edds

Nick Edds <[EMAIL PROTECTED]> added the comment:

Here is a fixer and test suite for the UserDict. It doesn't do a very
good job handling imports with 'as' right now, but it's core
functionality appears to be working. If I get a chance I will improve
its handling of 'as' cases at some point in the future, but I think this
is an alright start. It passes all tests.

--
keywords: +patch
Added file: http://bugs.python.org/file11634/fix_userdict.diff

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3981] Python 3, IDLE does not start

2008-09-27 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

Can you please be more specific what precise version you have been trying?

--
nosy: +loewis

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3982] support .format for bytes

2008-09-27 Thread Eric Smith

Eric Smith <[EMAIL PROTECTED]> added the comment:

Yes, it would be easy to add. Maybe bring this up on python-dev (or
python-3000) to get consensus?

Are we in feature freeze for 3.0?

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3982] support .format for bytes

2008-09-27 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

On Sat, Sep 27, 2008 at 12:33 PM, Eric Smith <[EMAIL PROTECTED]> wrote:
>
> Eric Smith <[EMAIL PROTECTED]> added the comment:
>
> Yes, it would be easy to add. Maybe bring this up on python-dev (or
> python-3000) to get consensus?

Yes, that will have to be done.
>
> Are we in feature freeze for 3.0?

Unfortunately, yes.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3982] support .format for bytes

2008-09-27 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

I'm skeptical. What networking code specifically are you using, and what
specifically does it use string formatting for?

--
nosy: +loewis

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3982] support .format for bytes

2008-09-27 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

On Sat, Sep 27, 2008 at 12:35 PM, Martin v. Löwis
<[EMAIL PROTECTED]> wrote:
>
> Martin v. Löwis <[EMAIL PROTECTED]> added the comment:
>
> I'm skeptical. What networking code specifically are you using, and what
> specifically does it use string formatting for?

I'm working on the tests for ftplib. [1] The dummy server uses string
formatting to build responses.

[1] http://svn.python.org/view/python/trunk/Lib/test/test_ftplib.py?view=markup

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3982] support .format for bytes

2008-09-27 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

> I'm working on the tests for ftplib. [1] The dummy server uses string
> formatting to build responses.

I see. I propose to add a method push_string, defined as

  def push_string(self, s):
  self.push(s.encode("ascii")

In FTP, the responses are, by definition, ASCII-encoded strings.
The proper way to generate them is to make a string, then encode it.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3981] Python 3, IDLE does not start

2008-09-27 Thread bahiminin

bahiminin <[EMAIL PROTECTED]> added the comment:

The version of Python whose IDLE doesn't work have been installed using the
following installer package, Python-3.0rc1.msi, that I have downloaded from
your site. I have also installed another version with the Python-2.5.2.msi
installer. This one work fine with the only warning that the firewall may
prompt a warning because of calls made to some sub processes. Thanks.

On Sat, Sep 27, 2008 at 10:33 AM, Martin v. Löwis <[EMAIL PROTECTED]>wrote:

>
> Martin v. Löwis <[EMAIL PROTECTED]> added the comment:
>
> Can you please be more specific what precise version you have been trying?
>
> --
> nosy: +loewis
>
> ___
> Python tracker <[EMAIL PROTECTED]>
> 
> ___
>

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

___
Python tracker <[EMAIL PROTECTED]>

___The version of Python whose IDLE doesn't work have been 
installed using the following installer package, Python-3.0rc1.msi, that I have 
downloaded from your site. I have also installed another version with the 
Python-2.5.2.msi installer. This one work fine with the only warning that the 
firewall may prompt a warning because of calls made to some sub processes. 
Thanks.
On Sat, Sep 27, 2008 at 10:33 AM, Martin v. Löwis 
[EMAIL 
PROTECTED]> wrote:

Martin v. Löwis [EMAIL 
PROTECTED]> added the comment:

Can you please be more specific what precise version you have been trying?

--
nosy: +loewis

___
Python tracker [EMAIL 
PROTECTED]>
http://bugs.python.org/issue3981>
___

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



[issue3685] Crash while compiling Python 3000 in OpenBSD 4.4

2008-09-27 Thread Henry Precheur

Henry Precheur <[EMAIL PROTECTED]> added the comment:

I just tested the patch and it fixes the problem.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3911] ftplib.FTP.makeport() bug

2008-09-27 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Fixed in r66656.

--
priority:  -> release blocker
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1593035] readline problem on ia64-unknown-linux-gnu

2008-09-27 Thread Henry Precheur

Henry Precheur <[EMAIL PROTECTED]> added the comment:

This problem was probably solved in issue #1204.

--
nosy: +henry.precheur

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3457] Release notes for 2.6b2 call it an alpha release

2008-09-27 Thread A.M. Kuchling

A.M. Kuchling <[EMAIL PROTECTED]> added the comment:

The web pages seem to have been updated to correctly describe 
the releases (now, they're release candidates).  Thanks for your report!

--
nosy: +akuchling
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3510] Site-specific configuration hook documentation incorrect

2008-09-27 Thread A.M. Kuchling

A.M. Kuchling <[EMAIL PROTECTED]> added the comment:

Changed in rev. 0 to use the X.Y form.  Thanks!

--
nosy: +akuchling
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1706863] Failed to build Python 2.5.1 with sqlite3

2008-09-27 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>:


--
keywords:  -needs review

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3926] Idle doesn't obey the new improved warnings arguements

2008-09-27 Thread Scott David Daniels

Scott David Daniels <[EMAIL PROTECTED]> added the comment:

OK, Issues:
1) warnings.py 
I/O errors in formatwarning will be masked and misinterpreted as
failures to write on stderr, and no output will be attempted.  

2) warnings.py
A line with of whitespace will be shown, rather than suppressed.

3) idlelib/PyShell.py 
idle_show_warning did not take new args to showwarning.
& a repeat of an error much like 1.

3) idlelib/PyShell.py
idle_format_warning did not take new arg to formatwarning.

4) idlelib/PyShell.py
extended_linecache_checkcache did not pass its arg along to 
orig_checkcache.  Had to rename the element in the loop to
avoid trashing the arg.

5) idlelib/run.py
idle_formatwarning_subproc must also follow the new protocol for 
formatwarning.

--
components: +IDLE, Library (Lib)
Added file: http://bugs.python.org/file11636/diff_trunk

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3926] Idle doesn't obey the new improved warnings arguements

2008-09-27 Thread Scott David Daniels

Scott David Daniels <[EMAIL PROTECTED]> added the comment:

Here is a test for the fixes provided.

Added file: http://bugs.python.org/file11637/test_idle_warnings.py

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2008-09-27 Thread Damien Miller

Damien Miller <[EMAIL PROTECTED]> added the comment:

For 2.6/3.0 it would probably be best to just disable the module
entirely on platforms that lack shareable semaphores (OpenBSD & FreeBSD
at least)

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1525919] email package quoted printable behaviour changed

2008-09-27 Thread Asheesh Laroia

Asheesh Laroia <[EMAIL PROTECTED]> added the comment:

Another way to see this issue is that the email module double-encodes
when one attempts to use quoted-printable encoding.  This has to be
worked around by e.g. MoinMoin.

It's easy to get proper base64-encoded output of email.mime.text:

>>> mt = email.mime.text.MIMEText('Ta mère', 'plain', 'utf-8')
>>> 'Content-Transfer-Encoding: base64' in mt.as_string()
True
>>> mt.as_string().split('\n')[-2]
'VGEgbcOocmU='

There we go, all nice and base64'd.

I can *not* figure out how to get quoted-printable-encoding.  I found 
http://docs.python.org/lib/module-email.encoders.html , so I thought
great - I'll just encode my MIMEText object:

>>> email.encoders.encode_quopri(mt)
>>> 'Content-Transfer-Encoding: quoted-printable' in mt.as_string()
True

Great!  Except it's actually double-encoded, and the headers admit to as
much.  You see here that, in addition to the quoted-printable header
just discovered, there is also a base64-related header, and the result
is not strictly QP encoding but QP(base64(payload)).

>>> 'Content-Transfer-Encoding: base64' in mt.as_string()
True
>>> mt.as_string().split('\n')[-2]
'VGEgbcOocmU=3D'

It should look like:

>>> quopri.encodestring('Ta mère')
'Ta m=C3=A8re'

I raised this issue on the Baypiggies list
, but
luckily I found this here bug.  This is with Python 2.5.2-0ubuntu1 from
Ubuntu 8.04.

[EMAIL PROTECTED]:~ $ python --version
Python 2.5.2

If we can come to a decision as to how this *should* work, I could
contribute a patch and/or tests to fix it.  I could even perhaps write a
new section of the Python documentation of the email module explaining this.

--
nosy: +paulproteus

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3939] Patch to implement a real ftplib test suite

2008-09-27 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Giampaolo, I'm seeing some failures on the buildbots like this:
http://python.org/dev/buildbot/stable/ia64%20Ubuntu%203.0/builds/612/step-test/0

Do you know where they are arising from?

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1579477] Use flush() before os.exevp()

2008-09-27 Thread A.M. Kuchling

A.M. Kuchling <[EMAIL PROTECTED]> added the comment:

A paragraph has been added in rev. 2, using
a modified version of your text.  Thanks for
your suggestion!

--
nosy: +akuchling
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue2127] sqlite3 docs should mention utf8 requirement

2008-09-27 Thread A.M. Kuchling

A.M. Kuchling <[EMAIL PROTECTED]> added the comment:

vdupras's test case now passes with Python 2.6; we should apply 
the patch to the test suite, though.  We could ask Barry if he wants to
apply it to 2.6rc, or adding the test can wait until 2.7.

--
nosy: +akuchling

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1415508] optparse enable_interspersed_args disable_interspersed_args

2008-09-27 Thread A.M. Kuchling

A.M. Kuchling <[EMAIL PROTECTED]> added the comment:

Added to the documentation in rev. 3; thanks for your
patch!

Barry, there's also a patch adding two docstrings 
to optparse.py.  Is it
OK to add docstrings at the rc level, or should I wait until
the trunk is re-opened for 2.7?  (Actually, I have a few unrelated
docstring changes?)

--
nosy: +akuchling, barry

___
Python tracker <[EMAIL PROTECTED]>

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



[issue1415508] optparse enable_interspersed_args disable_interspersed_args

2008-09-27 Thread A.M. Kuchling

Changes by A.M. Kuchling <[EMAIL PROTECTED]>:


--
assignee: gward -> akuchling

___
Python tracker <[EMAIL PROTECTED]>

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



[issue459007] Document sys.path on Windows

2008-09-27 Thread A.M. Kuchling

A.M. Kuchling <[EMAIL PROTECTED]> added the comment:

I think this item doesn't need to be handled
by Mark.  There's a comment at the top of 
PC/getpathp.c giving the rules, so it's 
just a matter of editing the text and adding reST
markup.  But where in the docs should this material go?  using/windows.rst?

--
nosy: +akuchling

___
Python tracker <[EMAIL PROTECTED]>

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2008-09-27 Thread Matthew Barnett

Matthew Barnett <[EMAIL PROTECTED]> added the comment:

I haven't yet found out how to turn on compression when getting the
branches, so I've only looked at
lp:~pythonregexp2.7/python/issue2636+01+09-02+17+18+19+20+21+24+26. I
did see that the SRE_FLAG_REVERSE flag was missing.

BTW, I ran re.findall(r"(?m)^(.*re\..+\\m)$", text) where text was 67MB
of emails. Python v2.5.2 took 2.4secs and the new version 5.6secs. Ouch!
I added 4 lines to _sre.c and tried again. 1.1secs. Nice! :-)

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3864] 26.rc1: test_signal issue on FreeBSD 6.3

2008-09-27 Thread Andrew I MacIntyre

Andrew I MacIntyre <[EMAIL PROTECTED]> added the comment:

The tests are passing on FreeBSD 7.0 (only checked amd64 at this point).

I came across a reference to an errata notice for FreeBSD 6.x which
appears pertinent:
http://security.freebsd.org/advisories/FreeBSD-EN-08:01.libpthread.asc

As I read the above notice, the underlying issue is a FreeBSD bug which
will be fixed in FreeBSD 6.4 (expected to be released in the next couple
of months.

On this basis, I suggest closing this as "Won't fix".

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2008-09-27 Thread Nick Coghlan

Nick Coghlan <[EMAIL PROTECTED]> added the comment:

Jesse, how much (if any) of the rest of the package will work without
the synchronize module? If it isn't a lot, then it may be a matter of
just making this a cleaner ImportError and an expected test suite skip
on OpenBSD and FreeBSD.

(Unfortunately, our OpenBSD and FreeBSD buildbots are so unreliable that
they don't get much attention when they go red - it looks to me like the
OpenBSD buildbot isn't even managing to build _multiprocessing at the
moment, because HAVE_SEM_OPEN is incorrectly set to 1).

___
Python tracker <[EMAIL PROTECTED]>

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