[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-11-11 Thread Ezio Melotti

Changes by Ezio Melotti :


Added file: http://bugs.python.org/file15316/unicode_exceptions.py

___
Python tracker 

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



[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-11-11 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords:  -patch
Added file: http://bugs.python.org/file15315/output_on_py26.txt

___
Python tracker 

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



[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-11-11 Thread Ezio Melotti

Changes by Ezio Melotti :


Removed file: http://bugs.python.org/file14071/unicode_exceptions.py

___
Python tracker 

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



[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-11-11 Thread Ezio Melotti

Ezio Melotti  added the comment:

I added the output of unicode_exceptions.py on Py2.6 and a testcase
(against the trunk) that fails for 5 different exceptions, including the
IOError mentioned in #6890 (also added to unicode_exceptions.py).
The problem has been introduced by #2517.

--
keywords: +patch
priority: high -> release blocker
title: unicode(exception) behaves differently on Py2.6 when len(exception.args) 
> 1 -> unicode(exception) and str(exception) should return the same message on 
Py2.6
Added file: http://bugs.python.org/file15314/issue6108_testcase.diff

___
Python tracker 

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



[issue2777] subprocess unit tests for kill, term and send_signal flaky

2009-11-11 Thread Brian Curtin

Brian Curtin  added the comment:

I re-enabled the tests a few days ago and haven't seen any issues on
Windows or Linux. I attached a patch against r76222 which enables the
kill, term, and send_signal tests again, and also did some clean-up and
updating to the way tests are skipped.

I also changed the assertNotEqual at the end of the kill, term, and
send_signal tests to check against None instead of 0. I *think* it
should be checking against None there to make sure that the subprocess
isn't live anymore (where None would mean that it is).

Let me know what you think and if this needs anything else.

--
keywords: +patch
nosy: +brian.curtin
Added file: http://bugs.python.org/file15313/issue2777.patch

___
Python tracker 

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



[issue7183] did 2.6.3 regress for some uses of the __doc__ property?

2009-11-11 Thread Moriyoshi Koizumi

Moriyoshi Koizumi  added the comment:

See my comment on issue #5890. I attached a patch to solve the
Boost.Python issue.

--
nosy: +moriyoshi

___
Python tracker 

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



[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-11-11 Thread Moriyoshi Koizumi

Moriyoshi Koizumi  added the comment:

and the other one

--
Added file: http://bugs.python.org/file15312/issue5890-refix-trunk.patch

___
Python tracker 

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



[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-11-11 Thread Moriyoshi Koizumi

Moriyoshi Koizumi  added the comment:

I created a patch against trunk and 2.6-maint that lets it simply ignore
the error that might happen during PyObject_SetAttrString();

--
Added file: http://bugs.python.org/file15311/issue5890-refix-py2.6.patch

___
Python tracker 

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



[issue7308] Named group regex error

2009-11-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

I think you want '(?P...', not '(P?...'.

Python 2.6.3 (r263:75183, Oct 16 2009, 15:14:21) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> p = re.compile(r'(?P("[^"]*"))')
>>> p.match('"Hallo"')
<_sre.SRE_Match object at 0x8a3c8>

--
nosy: +mark.dickinson
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue7308] Named group regex error

2009-11-11 Thread Stefan Sonnenberg-Carstens

New submission from Stefan Sonnenberg-Carstens 
:

>>> import re
>>> p = re.compile(r'(P?("[^"]*"))')
>>> p.match('"Hallo"')
>>> p = re.compile(r'("[^"]*")')
>>> p.match('"Hallo"')
<_sre.SRE_Match object at 0x0197F758>
>>> p.match('"Hallo"').group()
'"Hallo"'
>>> import sys
>>> sys.version
'2.6.3 (r263:75183, Oct  5 2009, 14:41:55) [MSC v.1500 32 bit (Intel)]'

When I use a named group like above, the regex does not match.
It otherwise does.
I could not find a hint in the docs, so I guess this behaviour is
not intended.

--
components: Interpreter Core, Library (Lib)
messages: 95152
nosy: pythonmeister
severity: normal
status: open
title: Named group regex error
type: behavior
versions: Python 2.6

___
Python tracker 

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



[issue7295] test_tarfile uses a hardcoded file name

2009-11-11 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The patch is fine and I've committed it, thanks!

--
resolution:  -> fixed
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue7307] test_distutils failure under Windows 7

2009-11-11 Thread Antoine Pitrou

New submission from Antoine Pitrou :

In
http://www.python.org/dev/buildbot/3.x/builders/x86%20Windows7%203.x/builds/10/steps/test/logs/stdio
:

==
ERROR: test_reg_class
(distutils.tests.test_msvc9compiler.msvc9compilerTestCase)
--
Traceback (most recent call last):
  File
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\distutils\tests\test_msvc9compiler.py",
line 48, in test_reg_class
v = Reg.get_value(path, "lfitalic")
  File
"D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\distutils\msvc9compiler.py",
line 62, in get_value
raise KeyError(key)
KeyError: 'lfitalic'

--

--
assignee: tarek
components: Distutils
messages: 95150
nosy: pitrou, tarek
priority: normal
severity: normal
stage: needs patch
status: open
title: test_distutils failure under Windows 7
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker 

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



[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-11 Thread Eric Smith

Eric Smith  added the comment:

I reviewed the issue on Rietveld, and it looks fine to me with the
exception of my comment about the tests. The comment is mostly a nit, so
if you don't agree don't worry about it.

I tested it with and without pydebug and the tests pass.

I think this should be committed and backported.

--

___
Python tracker 

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



[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

I've uploaded this patch to Rietveld to make it easier to review:

http://codereview.appspot.com/154060/show

--

___
Python tracker 

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



[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-11 Thread Mark Dickinson

Changes by Mark Dickinson :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-11 Thread Mark Dickinson

Mark Dickinson  added the comment:

and here's a patch (includes the earlier tests).

--
Added file: http://bugs.python.org/file15310/issue7298.patch

___
Python tracker 

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



[issue1294] Management of KeyboardInterrupt in cmd.py

2009-11-11 Thread Raghuram Devarakonda

Raghuram Devarakonda  added the comment:

On Sun, Nov 8, 2009 at 8:22 PM, Ilya Sandler  wrote:

> Is not this patch backward incompatible?
>
> E.g any cmd-based application which expects Ctrl-C to propagate to the
> top level will be broken by this patch.

But currently, CTRL-C terminates the session instead of propagating
upstream. The only way it would do so is if do_KeyboardInterrupt() is
implemented in which case, the behaviour would remain same even with
the patch.

--

___
Python tracker 

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



[issue7139] ElementTree: Incorrect serialization of end-of-line characters in attribute values

2009-11-11 Thread Moriyoshi Koizumi

Moriyoshi Koizumi  added the comment:

@ezio.melotti

Yes, it works flawlessly as for parsing. 

Fixing this would actually break the current behavior, but I believe 
this is how it should work.

It seems #5752 pretty much says the same thing.

@effbot

As specified in 2.11 End-of-Line Handling [2], any variants of EOL 
characters should have been normalized into single #xa before it 
actually gets parsed, so bare #xd characters would never appear as they 
are amongst parsed information items.


[2] http://www.w3.org/TR/xml/#sec-line-ends

--

___
Python tracker 

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



[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-11 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Thanks for the notification. Seems I over looked it. Fixed it with the
changes in 76212 (trunk) and 76213 (release26-maint). py3k did not have
this issue.

--

___
Python tracker 

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



[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-11 Thread Brian Curtin

Brian Curtin  added the comment:

This change causes failures in test_httpservers on trunk r76211 on
Windows. I attached a simple patch which fixes the problem (NameError on
'p').

--
nosy: +brian.curtin
Added file: http://bugs.python.org/file15309/issue1235_fix.patch

___
Python tracker 

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



[issue5890] Subclassing property doesn't preserve the auto __doc__ behavior

2009-11-11 Thread Moriyoshi Koizumi

Moriyoshi Koizumi  added the comment:

A subclass of property doesn't always have writable __doc__, especially 
what is implemented in C.  This actually causes a problem with 
Boost.Python's StaticProperty.

References:
- http://mail.python.org/pipermail/cplusplus-sig/2009-August/014747.html
- http://lists.boost.org/Archives/boost/2009/10/157512.php
- https://bugs.launchpad.net/ubuntu/+source/boost1.38/+bug/457688

--
nosy: +moriyoshi

___
Python tracker 

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



[issue7197] test_multiprocessing crashes under Windows when run in verbose mode

2009-11-11 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This has been committed to trunk (r76196) and py3k (r76198).
I'm reluctant to backport it to 2.6/3.1 because unittest has changed a
lot in-between, and the old version doesn't have a lot of tests. Please
do if you think it's useful :)

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue7306] Patch - skip winsound tests if no default sound is configured

2009-11-11 Thread Brian Curtin

New submission from Brian Curtin :

I noticed test failures on trunk for test_winsound on only one of my
boxes. Everything works fine on XP, but PlaySoundTest test methods fail
on Windows Server 2003.

It appears that on WS2k3 there are no default system sounds configured.
For example, view the difference of the following registry key on an XP
and Server machine:
HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default\SystemExit\.Default.

The patch includes a function to figure out if a WAV file is associated
with a particular sound, and unittest.skipIf is used to decorate some
methods to skip if they don't have a configured sound.

--
components: Tests, Windows
files: winsound_test_skipping.patch
keywords: patch
messages: 95140
nosy: brian.curtin
severity: normal
status: open
title: Patch - skip winsound tests if no default sound is configured
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file15308/winsound_test_skipping.patch

___
Python tracker 

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



[issue6132] Implement the GIL with critical sections in Windows

2009-11-11 Thread David Fraser

Changes by David Fraser :


--
nosy: +davidfraser

___
Python tracker 

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



[issue7305] urllib2.urlopen() segfault using SSL on Solaris

2009-11-11 Thread River Tarnell

New submission from River Tarnell :

Using Python 2.6.2 or 2.6.4 on Solaris 10, opening an SSL (https) URL 
using urllib2.urlopen() crashes Python:

% python
Python 2.6.4 (r264:75706, Nov 11 2009, 13:23:45) [C] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2; urllib2.urlopen('https://launchpad.net/~netbook-
remix-team/+archive/ppa')
zsh: segmentation fault (core dumped)  python
% pstack core
core 'core' of 14970:   python
 fe86663f AES_encrypt () + 173
%

Python was compiled using Sun C 5.10 SunOS_i386 2009/06/03 and OpenSSL 
0.9.7d (+ Sun security patches) using flags:

CFLAGS='-i -xO4 -xspace -xstrconst -xpentium -mr -xregs=no%frameptr'
LDFLAGS='-L/opt/ts/python/2.6/lib -L/usr/sfw/lib -R/opt/ts/python/2.6/
lib:/usr/sfw/lib -L/opt/ts/X11/lib -R/opt/ts/X11/lib -L/opt/ts/lib -R/
opt/ts/lib -L/opt/ts/python/2.6/lib'
CPPFLAGS='-I/opt/ts/python/2.6/include -I/usr/sfw/include -I/opt/ts/X11/
include -D__EXTENSIONS__ -I/opt/ts/include'

./configure --prefix=/opt/ts/python/2.6 --bindir=/opt/ts/python/2.6/bin 
--libdir=/opt/ts/python/2.6/lib --mandir=/opt/ts/python/26/share/man --
datadir=/opt/ts/python/2.6/share --includedir=/opt/ts/python/2.6/
include --infodir=/opt/ts/python/2.6/share/info --libexecdir=/opt/ts/
python/2.6/lib --sysconfdir=/etc/opt/ts --disable-nls --disable-static 
--with-threads --enable-ipv6 --prefix=/opt/ts/python/2.6 --enable-shared

--
components: Extension Modules
messages: 95139
nosy: rtarnell
severity: normal
status: open
title: urllib2.urlopen() segfault using SSL on Solaris
type: crash
versions: Python 2.6

___
Python tracker 

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



[issue7190] Problems running threaded Tkinter program under OS X IDLE

2009-11-11 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

 summarizes the thread safety aspects for Apple GUI 
programs.

Basicly all eventhandling needs to be done on the main thread.

This means that this issue is not a python bug, but a platform issue that 
we cannot fix or work around. I therefore propose to close this issue.

--
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> pending
type: crash -> behavior

___
Python tracker 

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



[issue7159] Urllib2 authentication memory.

2009-11-11 Thread Chris Rebert

Changes by Chris Rebert :


--
nosy: +cvrebert

___
Python tracker 

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