[issue6560] socket sendmsg(), recvmsg() methods

2010-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-27 Thread Larry Hastings
Larry Hastings added the comment: > In Windows the high-precision counter might return different results > on different cores in some hardware configurations (older multi-core > processors). More specifically: some older multi-core processors where the HAL implements QueryPerformanceCounter us

[issue3212] ssl module - should test for a wrong cert

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, so it was fixed. -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue5565] Strange behavior when I logout() with IMAP4_SSL

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you still witness the issue? Could you post a small code sample showing the problem with IMAP4_SSL? (it's not obvious it's a Python problem at all; details of the TCP implementation are obviously handled by the OS, and Python only uses the standard C socke

[issue1251] ssl module doesn't support non-blocking handshakes

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: do_handshake() not respecting the socket timeout was fixed in r80452. -- nosy: +pitrou resolution: -> fixed status: open -> closed ___ Python tracker _

[issue6656] locale.format_string fails on escaped percentage

2010-04-27 Thread R. David Murray
R. David Murray 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 backport the fix to 2.

[issue8086] ssl.get_server_certificate new line missing

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou 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 : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8551] Start argument for str.rfind used incorrectly

2010-04-27 Thread David Albert Torpey
New submission from David Albert Torpey : 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, p+1) ... >>> find_third_o

[issue3216] Scarce msilib documentation

2010-04-27 Thread Bill Janssen
Bill Janssen added the comment: Here's another one: class Directory shows an extra arg, "component", which isn't in the code. -- nosy: +janssen ___ Python tracker ___ __

[issue1636] Execfile unable to take arguments beyond 255!

2010-04-27 Thread Alexander Belopolsky
Alexander Belopolsky 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 added the comment: This is in intentional for consistency with find(). -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue8552] msilib can't create large CAB files

2010-04-27 Thread Bill Janssen
New submission from Bill Janssen : 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 Settings\wjanssen\uplib\win32\uplib-1.7.9.msi install_l

[issue1636] Execfile unable to take arguments beyond 255!

2010-04-27 Thread Martin v . Löwis
Martin v. Löwis 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 __

[issue8552] msilib can't create large CAB files

2010-04-27 Thread Martin v . Löwis
Martin v. Löwis 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 __

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

2010-04-27 Thread Mark Hammond
Mark Hammond 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 just that they usually don't h

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

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou 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 tracker

[issue1284316] Win32: Security problem with default installation directory

2010-04-27 Thread Mark Hammond
Mark Hammond 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 would frustrate people we'd need

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

2010-04-27 Thread Daniel Stutzbach
Daniel Stutzbach 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 a reference to it. telnetlib,

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

2010-04-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-04-27 Thread STINNER Victor
STINNER Victor 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 (r80555): skip test_multiproce

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Éric Araujo
Éric Araujo 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 realized that I have two

[issue8551] Start argument for str.rfind used incorrectly

2010-04-27 Thread R. David Murray
R. David Murray 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 and rfind. --

[issue2331] Backport parameter annotations

2010-04-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Can this be closed, either as 'fixed' or 'obsolete' (too late)? -- nosy: +tjreedy ___ Python tracker ___ ___

[issue8552] msilib can't create large CAB files

2010-04-27 Thread Bill Janssen
Bill Janssen 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 not part of the install

[issue8552] msilib can't create large CAB files

2010-04-27 Thread Bill Janssen
Bill Janssen 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 if there's something abo

[issue8553] 2to3 breaks relative imports

2010-04-27 Thread Jeffrey Yasskin
New submission from Jeffrey Yasskin : 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 looked this over, where

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

2010-04-27 Thread Bill Janssen
New submission from Bill Janssen : 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 messages: 104393 no

[issue8553] 2to3 breaks relative imports

2010-04-27 Thread Brian Curtin
Brian Curtin 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 __

[issue2331] Backport parameter annotations

2010-04-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker ___ __

[issue2331] Backport parameter annotations

2010-04-27 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: invalid -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8553] 2to3 breaks relative imports

2010-04-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Please use double quotes and unicode literals. Otherwise, it's fine. -- ___ Python tracker ___ __

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread py.user
New submission from py.user : [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): File

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread Brian Curtin
Brian Curtin 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

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

2010-04-27 Thread Terry J. Reedy
Terry J. Reedy 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 ___

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

2010-04-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since 'pending' is not implemented, should this be 'closed'? -- nosy: +tjreedy status: pending -> open ___ Python tracker ___ __

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread py.user
py.user 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 couldn't find _tkinte

[issue3620] test_smtplib is flaky

2010-04-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2340] Backport PEP 3132 (extended iterable unpacking)

2010-04-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Fixed?, Out-of-date? (or in process?) -- nosy: +tjreedy ___ Python tracker ___ ___ Python-bugs-list

[issue3080] Full unicode import system

2010-04-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue2340] Backport PEP 3132 (extended iterable unpacking)

2010-04-27 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

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

2010-04-27 Thread Robert Coup
Changes by Robert Coup : -- nosy: +rcoup ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

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

2010-04-27 Thread Brian Curtin
Brian Curtin 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 the same thing

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

2010-04-27 Thread Senthil Kumaran
Senthil Kumaran 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 tests need to be ad

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread py.user
py.user 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 import tkinter File "/usr/local/lib/python3.1/t

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

2010-04-27 Thread Brian Curtin
Brian Curtin added the comment: After a quick glance, the _winreg.c changes look ok. I'll try to fit in a review shortly. -- ___ Python tracker ___ _

[issue8553] 2to3 breaks relative imports

2010-04-27 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: Thanks! Committed as r80573. -- keywords: -needs review stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

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

2010-04-27 Thread Daniel Stutzbach
Daniel Stutzbach 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 trigger a race condition that

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread Senthil Kumaran
Senthil Kumaran 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 ./configure;make;sudo m

[issue8556] Confusing string formatting examples

2010-04-27 Thread Jeff McNeil
New submission from Jeff McNeil : 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 had simply

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

2010-04-27 Thread Jeff McNeil
Changes by Jeff McNeil : -- nosy: +mcjeff -j_mcneil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue6091] Curses segfaulting in FreeBSD/amd64

2010-04-27 Thread Jack Miller
Jack Miller 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 the bug when I can

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread py.user
py.user added the comment: ok, thank you I found that I have no tcl.h and tk.h -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8555] tkinter doesn't see _tkinter

2010-04-27 Thread py.user
py.user added the comment: allright I installed two -dev packages and ran tkinter -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue8552] msilib can't create large CAB files

2010-04-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: You could also try to commit the MSI file in-between, which may release memory. -- ___ Python tracker ___ _

[issue7865] io close() swallowing exceptions

2010-04-27 Thread Pascal Chambon
Pascal Chambon added the comment: I'm quite surprised it wasn't already covered by the test suite :S Anyway I'm quite confused about the semantic which is expected from IO operations... Should a flush on a closed stream fail (at the moment sometimes it does, sometimes doesn't) ? Why is somet

<    1   2