[issue8130] except-as in Py3 eats variables

2010-03-13 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

In this case I don't see much difference between deleting a variable or 
assigning it to something else.

This code works on both Python 2 and 3:
 e = 'test'
 try: pass# no errors raised here
... except Exception as e: pass  # this is not executed
...
 e
'test'

If you do this instead:
 e = 'test'
 try: raise ValueError# raise the error
... except Exception as e: pass  # this is executed
...

On both 2.x and 3.x 'e' doesn't refer to 'test' anymore in the moment that the 
exception is captured by the except, so what happens next to the new e is not 
related to what the old e was.

--

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



[issue8128] String interpolation with unicode subclass fails to call __str__

2010-03-13 Thread Eric Smith

Changes by Eric Smith e...@trueblade.com:


--
nosy: +eric.smith

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



[issue8130] except-as in Py3 eats variables

2010-03-13 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

See also #4617, with some patch.

--
nosy: +flox
superseder:  - SyntaxError when free variable name is also an exception target

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



[issue4617] SyntaxError when free variable name is also an exception target

2010-03-13 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


Removed file: http://bugs.python.org/file16341/unnamed

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



[issue4617] SyntaxError when free variable name is also an exception target

2010-03-13 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
components: +Interpreter Core
nosy: +flox
stage:  - test needed
type:  - behavior

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



[issue8128] String interpolation with unicode subclass fails to call __str__

2010-03-13 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue8129] Wrong arguments in sqlite3.connect() documentation

2010-03-13 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
priority:  - normal
stage:  - needs patch

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



[issue8131] Delivery Status Notification (Failure)

2010-03-13 Thread reynaldo

New submission from reynaldo renbe...@gmail.com:

www.google.com/chromebeta/what a browser

-- Forwarded message --
From: Mail Delivery Subsystem mailer-dae...@googlemail.com
Date: Mar 13, 2010 1:31 AM
Subject: Delivery Status Notification (Failure)
To: renbe...@gmail.com

Delivery to the following recipient failed permanently:

homepagewebsitebrow...@gmail.com

Technical details of permanent failure:
The email account that you tried to reach does not exist. Please try
double-checking the recipient's email address for typos or unnecessary
spaces. Learn more at
http://mail.google.com/support/bin/answer.py?answer=6596

- Original message -

Return-Path: renbe...@gmail.com
Received-SPF: pass (google.com: domain of renbe...@gmail.com designates
10.216.85.9 as permitted sender) client-ip=10.216.85.9;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of
renbe...@gmail.com designates 10.216.85.9 as permitted sender) smtp.mail=
renbe...@gmail.com; dkim=pass header.i=renbe...@gmail.com
Received: from mr.google.com ([10.216.85.9])
   by 10.216.85.9 with SMTP id t9mr1284787wee.79.1268472666728 (num_hops
= 1);
   Sat, 13 Mar 2010 01:31:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
   d=gmail.com; s=gamma;
   h=domainkey-signature:mime-version:received:in-reply-to:references
:date:message-id:subject:from:to:content-type;
   bh=e95TaoJEoSEO0fI8PxX3gWmPAWk7MpFGuxo5WXR7c5s=;
   b=ryAtBQKbrkyqTmY9I7u9+8+TU18Nn0sUpEQdUKNMv9qLD4DcFTgrs5+Cl9yajGzLRR
blBWEtQT7JePAJSXemEJWH+qwSlpv0j/MHONzSYvtImdpxUAH5m5ROAIb2syRtJ3MsC0
6Z6VTwMh9+3tlrGMKddmKV0w7EuEVGvWLM1BA=
DomainKey-Signature: a=rsa-sha1; c=nofws;
   d=gmail.com; s=gamma;
   h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
   b=PopzoxmDZC0tp09qENK/OV5l98fQkpgX8A/ZezTstyFIONBDDC6ky9PGrzUk17u1zq
v1DYZ5TdIpXdC+/hyA9QNW7XfEST/yG7jqSBeVA12Fmly1EZ7VRps+MBCWVBXFyZvnhR
uihbsR+Wn2fR+8kPZplTiwSfHE/5J0fnA/hyY=
MIME-Version: 1.0
Received: by 10.216.85.9 with SMTP id t9mr1284787wee.79.1268472666716; Sat,
13
   Mar 2010 01:31:06 -0800 (PST)
In-Reply-To: a4f83ee11003130105m66a12835rba0a259420917...@mail.gmail.com
References: a4f83ee11003130105m66a12835rba0a259420917...@mail.gmail.com
Date: Sat, 13 Mar 2010 01:31:06 -0800
Message-ID: a4f83ee11003130131o12d5386ft2393da2951edc...@mail.gmail.com
Subject: Fwd: Re: Few tweaks

From: reynaldo bendijo renbe...@gmail.com
To: homepagewebsitebrow...@gmail.com
Content-Type: multipart/alternative; boundary=0016e6d778afb50bc50481ab4e58

www.google.com/chromebeta/what a browser

-- Forwarded message --
From: reynaldo b...

--
files: unnamed
messages: 100998
nosy: renben
severity: normal
status: open
title: Delivery Status Notification (Failure)
Added file: http://bugs.python.org/file16531/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8131
___p/p
pa 
href=http://www.google.com/chromebeta/what;www.google.com/chromebeta/what/a 
a browser/p
pblockquote type=cite-- Forwarded message --brFrom: 
quot;Mail Delivery Subsystemquot; lt;a 
href=mailto:mailer-dae...@googlemail.com;mailer-dae...@googlemail.com/agt;brDate:
 Mar 13, 2010 1:31 AMbr
Subject: Delivery Status Notification (Failure)brTo:  lt;a 
href=mailto:renbe...@gmail.com;renbe...@gmail.com/agt;brbrDelivery to 
the following recipient failed permanently:br
br
     a 
href=mailto:homepagewebsitebrow...@gmail.com;homepagewebsitebrow...@gmail.com/abr
br
Technical details of permanent failure:br
The email account that you tried to reach does not exist. Please try 
double-checking the recipient#39;s email address for typos or unnecessary 
spaces. Learn more at a 
href=http://mail.google.com/support/bin/answer.py?answer=6596; 
target=_blankhttp://mail.google.com/support/bin/answer.py?answer=6596/abr

br
- Original message -br
br
Return-Path: lt;a 
href=mailto:renbe...@gmail.com;renbe...@gmail.com/agt;br
Received-SPF: pass (a href=http://google.com; target=_blankgoogle.com/a: 
domain of a href=mailto:renbe...@gmail.com;renbe...@gmail.com/a designates 
10.216.85.9 as permitted sender) client-ip=10.216.85.9;br
Authentication-Results: a href=http://mr.google.com; 
target=_blankmr.google.com/a; spf=pass (a href=http://google.com; 
target=_blankgoogle.com/a: domain of a 
href=mailto:renbe...@gmail.com;renbe...@gmail.com/a designates 10.216.85.9 
as permitted sender) smtp.mail=a 
href=mailto:renbe...@gmail.com;renbe...@gmail.com/a; dkim=pass header.i=a 
href=mailto:renbe...@gmail.com;renbe...@gmail.com/abr

Received: from a href=http://mr.google.com; target=_blankmr.google.com/a 
([10.216.85.9])br
        by 10.216.85.9 with SMTP id t9mr1284787wee.79.1268472666728 
(num_hops = 1);br
        Sat, 13 Mar 2010 01:31:06 -0800 (PST)br
DKIM-Signature: v=1; a=rsa-sha256; 

[issue8131] Delivery Status Notification (Failure)

2010-03-13 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue7845] complex.__lt__ should return NotImplemented instead of raising TypeError

2010-03-13 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Applied in r78902.

--
resolution:  - accepted
stage: patch review - committed/rejected
status: open - closed

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



[issue8014] Setting a T_INT attribute raises internal error

2010-03-13 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Thanks, Benjamin!  test_structmembers.py looks perfect.

--

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



[issue8014] Setting a T_INT attribute raises internal error

2010-03-13 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Tests for this issue, currently failing on T_INT/T_UINT (internal error), 
T_LONG/T_ULONG (fails to raise TypeError), T_PYSSIZET (internal error).   The 
older patch only fixes the T_PYSSIZET failures; I'm working on a fix for the 
others.

--
Added file: http://bugs.python.org/file16532/issue8014_tests.patch

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



[issue8014] Setting a T_INT attribute raises internal error

2010-03-13 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Internal errors for T_UINT and T_PYSSIZET fixed in r78918.  The fix needs to be 
backported to the release31-maint branch, but I don't think it's urgent enough 
to try getting it in between 3.1.2 rc1 and 3.1.2 final.

There's still a problem with testing repeated attribute setting for T_UINT and 
T_ULONG;  for some reason, the first attempt to set a T_UINT attribute to 
something invalid correctly produces TypeError, but an immediately following 
second attempt doesn't raise TypeError---this can be seen by uncommenting the 
T_UINT and T_ULONG bits in test_bad_assignments.  Am investigating.

--

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



[issue8014] Setting a T_INT attribute raises internal error

2010-03-13 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Fixed reason for failing tests (there was a bad error check in structmembers.c 
that compared a return value with (unsigned int)-1 instead of (unsigned 
long)-1), and re-enabled those tests, in r78920.

Leaving open for the backport to 3.1.

--
versions:  -Python 3.2

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



[issue8132] email.header.decode_header makes mistakes

2010-03-13 Thread grumetz

New submission from grumetz jpgrum...@free.fr:

Examples:

s = '=?UTF-8?B?QWNjdXPDqSBkZSByw6ljZXB0aW9uIChhZmZpY2jDqSkgLSA=?=Arobase !'
decode_header(s) ---
[('=?UTF-8?B?QWNjdXPDqSBkZSByw6ljZXB0aW9uIChhZmZpY2jDqSkgLSA=?=Arobase !', 
None)]
which seems bad...
but
ss ='=?UTF-8?B?QWNjdXPDqSBkZSByw6ljZXB0aW9uIChhZmZpY2jDqSkgLSA=?= Arobase !'
decode_header(ss) ---
[('Accus\xc3\xa9 de r\xc3\xa9ception (affich\xc3\xa9) - ', 'utf-8'), ('Arobase 
!', None)]
which seems good...

--
components: Library (Lib)
messages: 101004
nosy: grmtz
severity: normal
status: open
title: email.header.decode_header makes mistakes
type: behavior
versions: Python 2.6

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



[issue8073] Test fail for sha512

2010-03-13 Thread Chris Lieb

Chris Lieb chris.lieb.hotmail+pyt...@gmail.com added the comment:

Just for reference, I tried applying all of the patches in the SuSE 11.2 source 
RPM python-2.6.4.92-3.1.src.rpm from 
http://software.opensuse.org/search?q=python and rebuilding and retesting, but 
got the same results as using the vanilla Python 2.6.4 sources.

--

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



[issue8011] traceback tb_lineno example needs correction for Python3

2010-03-13 Thread Michael Newman

Michael Newman michael.b.new...@gmail.com added the comment:

No problem. Please note its actually fixed in r78895 (trunk), r78896 (py3k) and 
r78897 (release31-maint). Your previous message had the svn revision numbers 
off by 1000.

--

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

The patch seems to be trivial. I need review, specially compiling under 
non-Solaris OS.

I plan to commit this patch to 2.6, 2.7, 3.1 and 3.2.

Must I update NEWS?

--
assignee:  - jcea
keywords: +needs review, patch
nosy: +jcea
priority:  - normal
Added file: http://bugs.python.org/file16533/mknod-solaris.diff

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
stage:  - patch review

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



[issue3871] cross and native build of python for mingw32 with distutils

2010-03-13 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

distutils from trunk is restored to state before 9 months ago

--
Added file: http://bugs.python.org/file16534/python-trunk-20100313-MINGW.patch

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Compiles fine under Debian stable.
You shouldn't commit to 2.6 until 2.6.5 is released, though. If you want to do 
so, contact Barry first.

--
nosy: +pitrou

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

You do need a NEWS entry.

--

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



[issue3871] cross and native build of python for mingw32 with distutils

2010-03-13 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

Roumen, I am moving all the new work in distutils into distutils2, and 
distutils is going to be frozen.

Do you want to work on this feature in distutils2 ? (which is distutils code 
base before I started to revert things)

Let me know so I mark this issue under Distutils2

--

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



[issue8111] docs.python.org/download.html unhelpful.

2010-03-13 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Raising to release blocker status to get the changes that fix this and that 
are already in 2.6 approved by Barry.

The revisions are: r78907, r78914, r78923.

I'm attaching a patch with the collective diff.

In short, these changes mirror those done on the other active branches, which 
makes sure that all daily builds are done consistently.  Code is added only to 
the Doc Makefile and the download documentation template, both of which are 
not relevant to the released distribution.  Another rc is definitely not needed.

With these changes in place, we have:
- more consistent daily documentation builds (no longer coupled to the test 
runs by Neal)
- daily builds suspended for stable branches during the release process
- documentation downloads also for the development builds
- strict separation between released docs and daily updated docs

--
assignee: georg.brandl - barry
keywords: +patch
nosy: +barry
priority: high - release blocker
versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 
3.3
Added file: http://bugs.python.org/file16535/26changes.diff

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

The patch in its current form is incomplete: xxmodule.c won't end up on the 
target system, since msi.py doesn't package it. So that would need to be 
changed as well.

With the current release26-maint branch, test_distutils now passes, both with 
xxmodule.c present, and with it being absent. If it is present, test_distutils 
prints a number of additional output lines, starting with Creating library 


I also agree that the change is too heavy for the 2.6 maintenance release.

--

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

Ok then, I am applying Barry's suggestion right now in release26-maint then

--

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

done in r78935.

--

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



[issue8102] test_distutils fails on 2.6.5rc1: No module named setuptools_build_ext

2010-03-13 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

ok thanks for the tests Neal.

Martin, do I have to do soemthing in msi.py to see this file included ? (I am 
looking at msi.py right now and it looks like it has the proper glob, but I 
want to be 100% sure)

Ronald, what about the Mac OS scripts ?

--
nosy: +loewis

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



[issue8102] test_distutils fails on 2.6.5rc1: No module named setuptools_build_ext

2010-03-13 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Tarek, in general, if you want a new file in Lib included, create a bug report 
and assign it to me.

--

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



[issue8133] test_imp fails on OS X 10.6; filename normalization issue.

2010-03-13 Thread Mark Dickinson

New submission from Mark Dickinson dicki...@gmail.com:

test_issue5604 from test_imp is currently failing on OS X !0.6 (py3k branch), 
with the following output:

==
ERROR: test_issue5604 (__main__.ImportTests)
--
Traceback (most recent call last):
  File Lib/test/test_imp.py, line 121, in test_issue5604
file, filename, info = imp.find_module(temp_mod_name)
ImportError: No module named test_imp_helper_ä

--


I think this has something to do with the platform automatically
using NFD normalization for filenames.  Here's an interactive session: 

Python 3.2a0 (py3k:78936, Mar 13 2010, 19:42:52) 
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type help, copyright, credits or license for more information.
 import imp, unicodedata
 fname = 'test' + b'\xc3\xa4'.decode('utf-8')
 with open(fname+'.py', 'w') as file: file.write('a = 1\n')
... 
6
 imp.find_module(fname)   # expected this to succeed
Traceback (most recent call last):
  File stdin, line 1, in module
ImportError: No module named testä
 imp.find_module(unicodedata.normalize('NFD', fname))
(_io.TextIOWrapper name=4 encoding='utf-8', 'testä.py', ('.py', 'U', 1))


In contrast, a simple 'open' doesn't seem to care about normalization:

 open(fname+'.py')
_io.TextIOWrapper name='testä.py' encoding='UTF-8'
[50305 refs]
 open(unicodedata.normalize('NFD', fname)+'.py')
_io.TextIOWrapper name='testä.py' encoding='UTF-8'
[50305 refs]

--
messages: 101018
nosy: ezio.melotti, mark.dickinson
severity: normal
status: open
title: test_imp fails on OS X 10.6; filename normalization issue.
type: behavior
versions: Python 3.2

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



[issue8133] test_imp fails on OS X 10.6; filename normalization issue.

2010-03-13 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Also affects 3.1.

--
versions: +Python 3.1

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

Please, do the final review, ready for commiting.

I have asked about committing to 2.6 in the python-committers mailing list.

--
stage: patch review - commit review
type: behavior - feature request

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

Please, do the final review, ready for commiting.

I have asked about committing to 2.6 in the python-committers mailing list.

--
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5
Added file: http://bugs.python.org/file16536/mknod-solaris_2.diff

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


Removed file: http://bugs.python.org/file16533/mknod-solaris.diff

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
priority: normal - release blocker

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



[issue8123] TypeError in urllib when trying to use HTTP authentication

2010-03-13 Thread Dmitry Jemerov

Dmitry Jemerov intelliy...@gmail.com added the comment:

from urllib.request import *

opener = FancyURLopener()
opener.retrieve(http://username:passw...@google.com/index.html;, index.html)

--

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



[issue8102] test_distutils fails on 2.6.5rc1: No module named setuptools_build_ext

2010-03-13 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

Ok I see. Good to know thx

--

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



[issue7993] Add IO bandwidth test to ccbench

2010-03-13 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Committed in r78939 (trunk) and r78940 (py3k).

--
resolution:  - fixed
status: open - closed

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



[issue8134] collections.defaultdict gives KeyError with format()

2010-03-13 Thread Greg Jednaszewski

New submission from Greg Jednaszewski jednaszew...@gmail.com:

Found on 2.6.2 and 2.6.4:

I expect that printing an uninitialized variable from a defaultdict should 
work.  In fact it does with old-style string formatting.  However, when you try 
to do it with new-style string formatting, it raises a KeyError.

 import collections
 d = collections.defaultdict(int)
 {foo}.format(d)
Traceback (most recent call last):
  File stdin, line 1, in module
KeyError: 'foo'
 %(foo)d % d
'0'

--
components: Library (Lib)
messages: 101025
nosy: jednaszewski
severity: normal
status: open
title: collections.defaultdict gives KeyError with format()
type: behavior
versions: Python 2.6

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



[issue8134] collections.defaultdict gives KeyError with format()

2010-03-13 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +eric.smith, ezio.melotti
priority:  - normal
stage:  - test needed

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

So, issue closed right?  Or do you want to keep it bumped down and open for 
2.6.6?

--
status: open - closed

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



[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

This will not block 2.6.5 but is a candidate for 2.6.6.

--
nosy: +barry
priority: release blocker - deferred blocker

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



[issue8111] docs.python.org/download.html unhelpful.

2010-03-13 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

Thanks Georg!

--
resolution:  - accepted
status: open - closed

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



[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

No I guess its fine to leave it closed.

--

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



[issue8134] collections.defaultdict gives KeyError with format()

2010-03-13 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

str.format() does not take a mapping object. You want:

 {0[foo]}.format(d)
'0'

--
resolution:  - invalid
stage: test needed - committed/rejected
status: open - closed

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



[issue8134] collections.defaultdict gives KeyError with format()

2010-03-13 Thread Greg Jednaszewski

Greg Jednaszewski jednaszew...@gmail.com added the comment:

Oops, thanks.  I should have known that.  However, should this work?  This is 
what initially led me to file this ticket.  My initial example was a bad one.

 from collections import defaultdict
 d = defaultdict(int)
 d['bar'] += 1
 {bar}.format(**d)
'1'
 {foo}.format(**d)
Traceback (most recent call last):
  File stdin, line 1, in module
KeyError: 'foo'

--

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



[issue8134] collections.defaultdict gives KeyError with format()

2010-03-13 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

No, because that's not the behavior of keyword arguments.

--
nosy: +benjamin.peterson

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



[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

I confirm the leaks in the C code. How do you find them?

I see your point with the weakrefs in the unittest, but I don't see why they 
are so important. We are creating a GC cycle, yes, but the GC will collect it 
eventually, beside the reference counters being fooled because the cycle. Are 
you using a tool to find cycles?

I am committing your patch upstream and I need to understand the rationale :).

Thanks!.

--

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



[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

The tool is called regrtest:

~ $ ./python -m test.regrtest -R 2:3: -uall test_bsddb3

Some devs and some buildbots hunt refleaks in the test suite.
Even if the test-related refleaks are not important, they may hide real 
refleaks in the source code.

--

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



[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

You need a debug build of Python to use -R:
./configure --with-pydebug  make

See also: http://www.python.org/dev/faq/#how-do-i-create-a-debug-build-of-python

--

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



[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

 I confirm the leaks in the C code. How do you find them?

I've done it manually, disabling some tests, and running regrtest -R 
repeatedly until I isolate the function which is responsible.
Then I studied the source code, looking for the missing DECREFs.

--

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



[issue6472] Update ElementTree with upstream changes

2010-03-13 Thread Florent Xicluna

Florent Xicluna florent.xicl...@gmail.com added the comment:

Merged in 3.x with r78942 and r78945.

See #8047 for a discussion about the `encoding` argument of the serializer 
(used for .write() method and tostring() tostringlist() functions).
Currently the output is not encoded by default in 3.1 and 3.x.
It is encoded to ASCII in 2.6 and 2.x.

--
status: open - closed

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



[issue8134] collections.defaultdict gives KeyError with format()

2010-03-13 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

See also issue 6081.

--

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



[issue8132] email.header.decode_header makes mistakes

2010-03-13 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Per the RFC, this is the correct behavior.  An encoded word *must* begin and 
end either at the field boundary or with whitespace.  So ...?=Arobase, with no 
whitespace between the = and Arobase, makes your first example into an invalid 
encoded word, and thus it is returned as if it were plain ASCII.

One could argue that email could be smarter and interpret this string as an 
encoded word anyway, following the Postel principle (be generous in what you 
accept), but it currently does not do so, and not doing so is not a bug.

email6 will handle such non-RFC compliant examples better, if all goes well.

--
nosy: +r.david.murray
priority:  - normal
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue6081] str.format_from_mapping()

2010-03-13 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue1652] subprocess should have an option to restore SIGPIPE to default action

2010-03-13 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

A restore_signals parameter was added in py3k r78946.

I'm leaving this issue open as it needs backporting to 2.7.

--
versions:  -Python 3.2

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



[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Jesús Cea Avión

Jesús Cea Avión j...@jcea.es added the comment:

I have spend a few hours trying to understand the issue deeply, and I have an 
easier to understand version. It is bigger, but explain the issue good enough 
to use in a production program.

Please, Florent, review. It pass the leak test.

I rather prefer this patch because the weak references were sort of magic, and 
this new code actually shows what you should use in production.

If you think the patch is OK, it will be integrated in pybsddb 4.8.4 and then 
backported for python 2.7.

I also solved an undesired coupling between Replication Manager and Base 
Replication testsuites.

--
Added file: 
http://bugs.python.org/file16537/issue7808_bsddb3_refleak_v2TOv3.diff

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



[issue6780] startswith error message is incomplete

2010-03-13 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Here is a proof of concept that solves the problem for unicode strings and 
startswith/endswith.
If during the conversion to Unicode a TypeError is raised (e.g. TypeError: 
Can't convert 'list' object to str implicitly), the error message is changed to 
TypeError: startswith first arg must be str, unicode, or tuple, not list.
If the error is not a TypeError (e.g. a UnicodeDecodeError) the behavior is 
unchanged.
I haven't tested the patch thoroughly, but if this approach is OK I will 
prepare a complete patch.

--
keywords: +patch
Added file: http://bugs.python.org/file16538/issue6780.diff

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