[issue8130] except-as in Py3 eats variables

2010-03-13 Thread Ezio Melotti
Ezio Melotti 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

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

2010-03-13 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8130] except-as in Py3 eats variables

2010-03-13 Thread Florent Xicluna
Florent Xicluna added the comment: See also #4617, with some patch. -- nosy: +flox superseder: -> SyntaxError when free variable name is also an exception target ___ Python tracker

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

2010-03-13 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file16341/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

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

2010-03-13 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Interpreter Core nosy: +flox stage: -> test needed type: -> behavior ___ Python tracker ___

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

2010-03-13 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-03-13 Thread Florent Xicluna
Changes by Florent Xicluna : -- priority: -> normal stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8131] Delivery Status Notification (Failure)

2010-03-13 Thread reynaldo
New submission from reynaldo : www.google.com/chromebeta/what a browser -- Forwarded message -- From: "Mail Delivery Subsystem" Date: Mar 13, 2010 1:31 AM Subject: Delivery Status Notification (Failure) To: Delivery to the following recipient failed permanently: homepagew

[issue8131] Delivery Status Notification (Failure)

2010-03-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Py

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

2010-03-13 Thread Mark Dickinson
Mark Dickinson added the comment: Applied in r78902. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue8014] Setting a T_INT attribute raises internal error

2010-03-13 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Benjamin! test_structmembers.py looks perfect. -- ___ Python tracker ___ ___ Python-bugs-li

[issue8014] Setting a T_INT attribute raises internal error

2010-03-13 Thread Mark Dickinson
Mark Dickinson 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

[issue8014] Setting a T_INT attribute raises internal error

2010-03-13 Thread Mark Dickinson
Mark Dickinson 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 repeate

[issue8014] Setting a T_INT attribute raises internal error

2010-03-13 Thread Mark Dickinson
Mark Dickinson 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:

[issue8132] email.header.decode_header makes mistakes

2010-03-13 Thread grumetz
New submission from grumetz : Examples: s = '=?UTF-8?B?QWNjdXPDqSBkZSByw6ljZXB0aW9uIChhZmZpY2jDqSkgLSA=?=Arobase !' decode_header(s) ---> [('=?UTF-8?B?QWNjdXPDqSBkZSByw6ljZXB0aW9uIChhZmZpY2jDqSkgLSA=?=Arobase !', None)] which seems bad... but ss ='=?UTF-8?B?QWNjdXPDqSBkZSByw6ljZXB0aW9uIChhZmZpY

[issue8073] Test fail for sha512

2010-03-13 Thread Chris Lieb
Chris Lieb 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. --

[issue8011] traceback tb_lineno example needs correction for Python3

2010-03-13 Thread Michael Newman
Michael Newman 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

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión
Jesús Cea Avión 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

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2010-03-13 Thread Roumen Petrov
Roumen Petrov 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 <http://bugs.python.org/issue3

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Antoine Pitrou
Antoine Pitrou 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

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: You do need a NEWS entry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-03-13 Thread Tarek Ziadé
Tarek Ziadé 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 "

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

2010-03-13 Thread Georg Brandl
Georg Brandl 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 othe

[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Martin v . Löwis
Martin v. Löwis 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 pr

[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Tarek Ziadé
Tarek Ziadé added the comment: Ok then, I am applying Barry's suggestion right now in release26-maint then -- ___ Python tracker ___ _

[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r78935. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

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

2010-03-13 Thread Tarek Ziadé
Tarek Ziadé 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 ? -- nos

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

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

2010-03-13 Thread Mark Dickinson
New submission from Mark Dickinson : test_issue5604 from test_imp is currently failing on OS X !0.6 (py3k branch), with the following output: == ERROR: test_issue5604 (__main__.ImportTests) -

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

2010-03-13 Thread Mark Dickinson
Mark Dickinson added the comment: Also affects 3.1. -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión
Jesús Cea Avión 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 tra

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión
Jesús Cea Avión 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-s

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file16533/mknod-solaris.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

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

2010-03-13 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: from urllib.request import * opener = FancyURLopener() opener.retrieve("http://username:passw...@google.com/index.html";, "index.html") -- ___ Python tracker _

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

2010-03-13 Thread Tarek Ziadé
Tarek Ziadé added the comment: Ok I see. Good to know thx -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue7993] Add IO bandwidth test to ccbench

2010-03-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r78939 (trunk) and r78940 (py3k). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2010-03-13 Thread Greg Jednaszewski
New submission from Greg Jednaszewski : 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. >>> imp

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

2010-03-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.smith, ezio.melotti priority: -> normal stage: -> test needed ___ Python tracker ___ ___ Pyt

[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Barry A. Warsaw
Barry A. Warsaw 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 ___ __

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Barry A. Warsaw
Barry A. Warsaw 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 ___ __

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

2010-03-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks Georg! -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Python-

[issue8107] test_distutils fails on Windows in 2.6.5rc2

2010-03-13 Thread Tarek Ziadé
Tarek Ziadé added the comment: No I guess its fine to leave it closed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2010-03-13 Thread Eric Smith
Eric Smith 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

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

2010-03-13 Thread Greg Jednaszewski
Greg Jednaszewski 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

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

2010-03-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: No, because that's not the behavior of keyword arguments. -- nosy: +benjamin.peterson ___ Python tracker ___

[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Jesús Cea Avión
Jesús Cea Avión 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 bein

[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Florent Xicluna
Florent Xicluna 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. -

[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Ezio Melotti
Ezio Melotti 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

[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Florent Xicluna
Florent Xicluna 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. -

[issue6472] Update ElementTree with upstream changes

2010-03-13 Thread Florent Xicluna
Florent Xicluna 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 t

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

2010-03-13 Thread Eric Smith
Eric Smith added the comment: See also issue 6081. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8132] email.header.decode_header makes mistakes

2010-03-13 Thread R. David Murray
R. David Murray 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

[issue6081] str.format_from_mapping()

2010-03-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2010-03-13 Thread Gregory P. Smith
Gregory P. Smith 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 __

[issue7808] test_bsddb3 leaks references

2010-03-13 Thread Jesús Cea Avión
Jesús Cea Avión 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

[issue6780] startswith error message is incomplete

2010-03-13 Thread Ezio Melotti
Ezio Melotti 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