[issue6656] locale.format_string fails on escaped percentage

2010-04-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed a very slightly modified version of the patch to trunk in r80512, and to py3k in 80521. I'm leaving this issue open and, unless there is an objection, if no problems show up after the next beta has been out for a while, I'll

[issue8086] ssl.get_server_certificate new line missing

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed in r80557 (trunk) and r80558 (2.6). 3.1 and 3.2 weren't affected, but I still merged in the additional tests. Thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue8550] Expose SSL contexts

2010-04-27 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8550 ___ ___ Python-bugs-list mailing

[issue8551] Start argument for str.rfind used incorrectly

2010-04-27 Thread David Albert Torpey
New submission from David Albert Torpey dt...@users.sourceforge.net: The purpose of the start argument in str.find() and str.rfind() is to allow for repeated searches. def find_third_occurrence(s, value): ... p = s.find(value) ... p = s.find(value, p+1) ... return s.find(value,

[issue3216] Scarce msilib documentation

2010-04-27 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: Here's another one: class Directory shows an extra arg, component, which isn't in the code. -- nosy: +janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3216

[issue1636] Execfile unable to take arguments beyond 255!

2010-04-27 Thread Alexander Belopolsky
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: I don't have much to contribute other than a simple test to reproduce the issue: code =

[issue8551] Start argument for str.rfind used incorrectly

2010-04-27 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is in intentional for consistency with find(). -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8552] msilib can't create large CAB files

2010-04-27 Thread Bill Janssen
New submission from Bill Janssen bill.jans...@gmail.com: I'm trying to create a CAB file containing about 69MB of data, in 4555 files. msilib fails in CAB.commit(): $ python build-msi-installer.py /c/UpLib/1.7.9 ~/uplib 1.7.9 ./uplib-1.7.9.msi c:\Documents and

[issue1636] Execfile unable to take arguments beyond 255!

2010-04-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Closing it as won't fix: nobody is really interested in working on the problem. -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8552] msilib can't create large CAB files

2010-04-27 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Another reason to allow multiple CAB files in a single installer? I'm still curious as to what the first reason is. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8552

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-04-27 Thread Mark Hammond
Mark Hammond mhamm...@users.sourceforge.net added the comment: the pywin32 DLLs have 2 heads. They are Python extension modules as well as regular DLLs. They are built by distutils and therefore have no manifests - I think many packages use distutils to build their extension modules - it is

[issue808164] socket.close() doesn't play well with __del__

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, realistically, if you have open sockets at shutdown, there isn't a big difference between closing and not closing them. They will be reaped with the process anyway. -- nosy: +pitrou ___ Python

[issue1284316] Win32: Security problem with default installation directory

2010-04-27 Thread Mark Hammond
Mark Hammond mhamm...@users.sourceforge.net added the comment: Another consideration here will be how distutils will work in a python with restricted permissions - the pattern of just run 'setup.py install' will not work unless it is done from an elevated command-prompt. As I expect this

[issue808164] socket.close() doesn't play well with __del__

2010-04-27 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: The purpose of calling .close() in __del__ is to close the socket when the owner is destroyed yet the program is still running. This prevents the socket from staying open if some other part of the program has somehow acquired

[issue8404] Set operations don't work for dictionary views

2010-04-27 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8404 ___ ___

[issue7449] A number tests crash if python is compiled --without-threads

2010-04-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I commited the patch into small parts: 1 (r80552): fix test_support.py for Python compiled without thread 2 (r80553): regrtest.py -j option requires thread support 3 (r80554): test_doctest: import trace module in test_coverage() 4

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello Thanks for clarifying your point. Note that I had quickly tested dh_make in a near-empty directory before posting, and the only question I got asked was the type of the package (library, many libraries, program, etc). But I’ve just

[issue8551] Start argument for str.rfind used incorrectly

2010-04-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I thought Benjamin's answer was crazy until I looked at the help for find/rfind. The optional 'start, end' arguments are interpreted like slice notation, so it does make sense to have the interpretation be the consistent between find

[issue2331] Backport parameter annotations

2010-04-27 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Can this be closed, either as 'fixed' or 'obsolete' (too late)? -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2331 ___

[issue8552] msilib can't create large CAB files

2010-04-27 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: Ummm, just in case the packager wanted to. In my case, I was putting the files which were registered as part of the installation in one CAB file, and another set of temporary files which were used by some of the installation scripts, but

[issue8552] msilib can't create large CAB files

2010-04-27 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: So, I subclassed msilib.CAB, and re-wrote commit() so that the CAB file is created in a different process, a la Tools/msi/msilib.py. Still have the same problem, though. So now I'm thinking it's not a memory problem, but I'm wondering

[issue8553] 2to3 breaks relative imports

2010-04-27 Thread Jeffrey Yasskin
New submission from Jeffrey Yasskin jyass...@gmail.com: 2to3, at least the version in the python-2 tree, currently turns from . import refactor into from .. import refactor which breaks the transformation of 2to3 itself. The attached patch fixes this and tests it. Once someone's

[issue8554] suspicious comment in msilib.py/__init__.py

2010-04-27 Thread Bill Janssen
New submission from Bill Janssen bill.jans...@gmail.com: Take a look at the first line of make_id(). What does that comment mean? Is the wrong line commented out? def make_id(str, add_num=True): #str = str.replace(., _) # colons are allowed -- components: Library (Lib), Windows

[issue8553] 2to3 breaks relative imports

2010-04-27 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I believe sandbox/trunk/2to3 is the right spot. The patch seems ok to me, but Benjamin will probably want a look. -- nosy: +benjamin.peterson, brian.curtin ___ Python tracker rep...@bugs.python.org

[issue2331] Backport parameter annotations

2010-04-27 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Yes. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2331 ___

[issue2331] Backport parameter annotations

2010-04-27 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: invalid - out of date ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2331 ___ ___

[issue8553] 2to3 breaks relative imports

2010-04-27 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Please use double quotes and unicode literals. Otherwise, it's fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8553 ___

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread py.user
New submission from py.user port...@yandex.ru: [gu...@station ~]$ python3 Python 3.1.2 (r312:79147, Apr 28 2010, 11:57:19) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2 Type help, copyright, credits or license for more information. 1+2 3 import tkinter Traceback (most recent call last):

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Did you compile Python yourself or did this come on your OS? The comment in the traceback pretty much says it all. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-04-27 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Tarek, when you set the resolution to 'accepted', did you mean to close this? Resolutions are meant for closed issues. -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org

[issue4186] type() doesn't accept bases and dict keyword arguments

2010-04-27 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Since 'pending' is not implemented, should this be 'closed'? -- nosy: +tjreedy status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4186

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread py.user
py.user port...@yandex.ru added the comment: I have downloaded Python today (28 Apr) from the site I have a version under WinXP (it works fine), but I don't use WinXP When it told this about _tkinter, I even read the README file and compiled it with make test, and there the same thing, it

[issue3620] test_smtplib is flaky

2010-04-27 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3620 ___ ___

[issue2340] Backport PEP 3132 (extended iterable unpacking)

2010-04-27 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Fixed?, Out-of-date? (or in process?) -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2340 ___

[issue3080] Full unicode import system

2010-04-27 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3080 ___ ___ Python-bugs-list

[issue2340] Backport PEP 3132 (extended iterable unpacking)

2010-04-27 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2340 ___

[issue6312] httplib fails with HEAD requests to pages with transfer-encoding: chunked

2010-04-27 Thread Robert Coup
Changes by Robert Coup rob...@coup.net.nz: -- nosy: +rcoup ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6312 ___ ___ Python-bugs-list mailing

[issue2810] _winreg.EnumValue sometimes raises WindowsError (More data is available)

2010-04-27 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: test_changing_value is giving inconsistent results when the _winreg.c patch is not applied. It mostly fails on QueryValue, sometimes on EnumValue, and about 1/10 times the test does not fail at all. Ideally the tests should not use threads -- can

[issue6312] httplib fails with HEAD requests to pages with transfer-encoding: chunked

2010-04-27 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I can take this up. The HEAD requests does not contain any data, so when the data is None and transfer encoding is chunked, we can return empty value for the next step. No need of attempting to read the chuncked amt. The patch is fine and

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread py.user
py.user port...@yandex.ru added the comment: tryed also: [r...@station python3.1]# cp /usr/lib/python2.5/lib-dynload/_tkinter.so lib-dynload answer is: Traceback (most recent call last): File /home/guest/tmp/code/c/eclipse/pytest/src/main.py, line 4, in module import tkinter File

[issue2810] _winreg.EnumValue sometimes raises WindowsError (More data is available)

2010-04-27 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: After a quick glance, the _winreg.c changes look ok. I'll try to fit in a review shortly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810

[issue8553] 2to3 breaks relative imports

2010-04-27 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: Thanks! Committed as r80573. -- keywords: -needs review stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8553

[issue2810] _winreg.EnumValue sometimes raises WindowsError (More data is available)

2010-04-27 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Thank for the feedback. I'll revise the patch tomorrow based on your code-cleanup suggestions. To answer your question about the thread and explain why the test sometimes passes: The goal of test_changing_value is to try to

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: From your prompt, it seems you are on Unix based system. make would have informed you about _tkinter not built. If you are on ubuntu, do a sudo apt-get install tk-dev and install tk-dev package and its dependencies. And then do the

[issue8556] Confusing string formatting examples

2010-04-27 Thread Jeff McNeil
New submission from Jeff McNeil j...@jmcneil.net: I was going through the string formatting examples this evening and noticed this: print '%(language)s has %(#)03d quote types.' % \ {'language': Python, #: 2} The example uses a '#' as a map key. This is somewhat misleading as if we

[issue1666318] shutil.copytree doesn't preserve directory permissions

2010-04-27 Thread Jeff McNeil
Changes by Jeff McNeil j...@jmcneil.net: -- nosy: +mcjeff -j_mcneil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1666318 ___ ___ Python-bugs-list

[issue6091] Curses segfaulting in FreeBSD/amd64

2010-04-27 Thread Jack Miller
Jack Miller j...@codezen.org added the comment: The rest of my codebase is currently only 2.x compatible, but I saw identical symptoms about a month ago on Fedora/Mandriva when their 2.x packages were linked against non-widechar libraries so I imagine that is indeed the solution. I'll close

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread py.user
py.user port...@yandex.ru added the comment: ok, thank you I found that I have no tcl.h and tk.h -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8555 ___

<    1   2   3