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

[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

[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

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

[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

[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

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

[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

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

[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

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

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

[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

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

[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

[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

[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

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

[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

[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

[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

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

[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

[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

[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

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

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

[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

[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

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

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

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

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

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

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

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

[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

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

[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

[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

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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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