[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

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

[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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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 Robert Coup
Changes by Robert Coup : -- nosy: +rcoup ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[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

[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 Terry J. Reedy
Terry J. Reedy added the comment: Fixed?, Out-of-date? (or in process?) -- nosy: +tjreedy ___ Python tracker ___ ___ Python-bugs-list

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

[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

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

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

[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

[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

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

[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

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

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

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

[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

[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

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

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

[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

[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

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

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

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

[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

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

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

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

[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 = """ >>> >>>

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

[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

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

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

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

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

[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

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

[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

[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

[issue8106] SSL session management

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: issue8550 is probably a prerequisite for implementing this properly. -- dependencies: +Expose SSL contexts nosy: +pitrou stage: -> needs patch versions: -Python 2.7 ___ Python tracker

[issue6662] HTMLParser.HTMLParser doesn't handle malformed charrefs

2010-04-27 Thread Fredrik Håård
Fredrik Håård added the comment: Is there a reason for HTMLParser to treat anything that does not match the regex '&#\d+;' as a charref? -- ___ Python tracker ___ _

[issue8086] ssl.get_server_certificate new line missing

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks reasonable enough. -- nosy: +pitrou stage: unit test needed -> patch review ___ Python tracker ___ __

[issue6662] HTMLParser.HTMLParser doesn't handle malformed charrefs

2010-04-27 Thread Fredrik Håård
Changes by Fredrik Håård : -- nosy: +fredrik.haard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue2550] SO_REUSEADDR doesn't have the same semantics on Windows as on Unix

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is now fixed, right? Personal experience as well as buildbot behaviour seems to show that parallel test execution (either through -j, or by running several test suites at the same time) works ok. -- nosy: +exarkun, pitrou resolution: accepted ->

[issue3596] Provide a way to disable SSLv2 (or better yet, disable by default)

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Someone else requested it and even provided a patch. See you on issue4870. -- resolution: out of date -> duplicate status: pending -> closed superseder: -> ssl module is missing SSL_OP_NO_SSLv2 ___ Python tracker <

[issue4870] ssl module is missing SSL_OP_NO_SSLv2

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch for py3k (the previous one didn't apply cleanly). -- Added file: http://bugs.python.org/file17112/sslopts2.patch ___ Python tracker ___

[issue1284316] Win32: Security problem with default installation directory

2010-04-27 Thread Fran Rogers
Fran Rogers added the comment: I'd like to concur that Python should install to %ProgramFiles% by default. The root-directory default is particularly anomalous on 64-bit Windows, where you have separate 64- and 32-bit Program Files directories; if I have a Python installation in "C:\Python26"

[issue8546] The parameter buffering in _pyio.open doesn't work the same as in the builtin open

2010-04-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r80544. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue8550] Expose SSL contexts

2010-04-27 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: For reference: http://pyopenssl.sourceforge.net/pyOpenSSL.html/openssl-context.html http://www.heikkitoivonen.net/m2crypto/api/M2Crypto.SSL.Context%27.Context-class.html and `man -k SSL_CTX_` -- nosy: +exarkun ___

[issue8550] Expose SSL contexts

2010-04-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : We should expose SSL contexts at the Python level, and rework SSL sockets to use those objects internally (rather than creating their own private context). It would allow to: - specify the various options iteratively, rather than having to dump them all in t

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: test_io and test_codecs didn't fail in the last build of x86 Tiger 2.6 and x86 Windows7 2.6. I suppose that the issue is now closed. Repopen the issue if it's not the case. -- resolution: -> fixed status: open -> closed _

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: That's essentially what I want, except I want to feed dh_make some better defaults based on metadata that already lives in setup.py. -- ___ Python tracker

[issue7540] urllib2 request does not update content length after new add_data

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6453] Improve bool TypeError message

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6150] test_unicode fails in wide unicode build

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5273] 3.0.1 crashes in unicode path

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5249] Fix strftime on windows.

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue3947] configure --with-threads on cygwin => crash on thread related tests

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1601] IDLE not working correctly on Windows (Py30a2/IDLE30a1)

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1404] warnings module bug: BytesWarning: str() on a bytes instance

2010-04-27 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Éric Araujo
Éric Araujo added the comment: Why not use Debian’s dh_make? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: There are really two aspects of this patch. At the moment, I'm less interested in bdist_deb than I am in the 'debianize' (i.e. dh_make) functionality. I think 'python setup.py debianize' (or whatever) would be a nice way to jump start a debian/ directory f

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Éric Araujo
Éric Araujo added the comment: Hello There has been a number of discussions about bdist_deb, and some code too. I don’t have links handy, unfortunately, but I remember a conclusion that was: Don’t. Debian packages are best made by Debian tools, which go to great lengths to comply with Debi

[issue7079] file_close() ignores return value of close_the_file

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your proposal looks reasonable. Two things: - your patch should include an unit test (see Lib/test/test_file2k.py) - fileobject.c should use tabs for indentation, not spaces And you're right, py3k doesn't have this problem. -- nosy: +pitrou, tim_one ve

[issue1054967] bdist_deb - Debian packager

2010-04-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: astraw: I've been playing with stdeb. I think it's a nice implementation of bdist_deb, but it doesn't seem to include the dh_make/debianize functionality of this patch. Is that the case or have I missed something? -- nosy: +barry _

[issue7865] io close() swallowing exceptions

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I just tried the patch. One problem is that you are supposed to be able to call close() several times without having it fail: >>> f = open("LICENSE") >>> f.close() >>> f.close() >>> f = io.open("LICENSE") >>> f.close() >>> f.close() Traceback (most recent call

[issue8060] PEP 3101 string formatting missing engineering presentation type for floating point

2010-04-27 Thread Keith Brafford
Keith Brafford added the comment: Ok, let's zero in on how this should work. I'll start the concrete proposal discussion in terms of how it would have worked with the old-style specifiers (since I am more familiar with that method) and we can bring it up to Py3K standards as a group. I was

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-27 Thread Matthew Cowles
Matthew Cowles added the comment: Apologies! Further investigation indicates that the user had set a timeout in the ftplib module. I'll close this. In an ideal world, errors due to timeouts would look like they were related to timeouts. But that's a different matter entirely. -- stat

[issue8549] Modules/_ssl.c: extra comma breaks build on AIX

2010-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8549] Modules/_ssl.c: extra comma breaks build on AIX

2010-04-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you very much! Committed in r80540 (trunk), r80541 (2.6), r80542 (py3k), r80543 (3.1). -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> pending versions: +Python 3.2 ___ Pyt

[issue8549] Modules/_ssl.c: extra comma breaks build on AIX

2010-04-27 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- keywords: +patch Added file: http://bugs.python.org/file17110/fix-extra-comma-aix.patch ___ Python tracker ___ _

[issue8549] Modules/_ssl.c: extra comma breaks build on AIX

2010-04-27 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : Modules/_ssl.c gu...@36917 64 enum py_ssl_version { gu...@36917 65 PY_SSL_VERSION_SSL2, gu...@36917 66 PY_SSL_VERSION_SSL3, gu...@36917 67 PY_SSL_VERSION_SSL23, gu...@36917 68 PY

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: > Can we backport the fix to 2.6? It's too late to fix such subtle bug in module machinery, so I commited my workaround in regrtest.py: r80538. Wait for the buildbots before closing the issue. test_io and/or test_codecs failed on buildbots: - AMD64 Ubuntu 2

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-27 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Thanks for pointing that out. For what it's worth, if I understand the documentation correctly the goal is to prevent the following misleading comparisons: date with time datetime with date datetime with time datetime w/ timezone with datetime w/o timezon

[issue8540] Make Context._clamp public in decimal module

2010-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: > I'd prefer to drop the ExtendedContext completely. We have to be careful not to break existing 3rd party code, though. A newly-designed decimal module, prepared with 20/20 hindsight, probably wouldn't include an ExtendedContext with the current definition.

[issue8543] asynchat documentation issues

2010-04-27 Thread Josiah Carlson
Josiah Carlson added the comment: The suggested documentation changes sound good to me. Those items that aren't documented may need a note that they are deprecated and will be removed in the future, but I'd consider that optional. -- ___ Python tr

[issue8060] PEP 3101 string formatting missing engineering presentation type for floating point

2010-04-27 Thread Mark Dickinson
Mark Dickinson added the comment: After the all-important issue of what letter to use (the folks on the python-list thread suggested 'm', and it seems as good a letter as any, so I'll use it in the examples below), there are some open questions: (1) The exact form of the output needs to be de

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

2010-04-27 Thread Christoph Gohlke
Christoph Gohlke added the comment: > I have some doubts about option #4: it is a very specific use case, and then > the whole benefit of issue 4120 is lost Pythoncom are pywintypes are indeed special cases: Out of the 170 DLL files in my Python site-packages directory, these seem to be the o

[issue5727] doctest pdb readline broken

2010-04-27 Thread Sriram
Sriram added the comment: Hi, I believe this behaviour can be tested if we can prove that Cmd's cmdloop uses raw_input to get the data as against self.stdin.readline(). To test it, ideally I would have liked to override sys.stdin with a fake input stream and pass the list of args (like it's

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: Here is a workaround. I didn't expected a short patch, but it's enough. -- keywords: +patch Added file: http://bugs.python.org/file17108/regrtest_preload_ascii.patch ___ Python tracker

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread STINNER Victor
STINNER Victor added the comment: module-dealloc() was changed by #7140 by r75437: "imp.new_module does not function correctly if the module is returned from a function and used directly". Can we backport the fix to 2.6? It would be complex to write a workaround in the tests. -- ___

[issue7027] test_io.py: codecs.IncrementalDecoder is sometimes None

2010-04-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +amaury.forgeotdarc, loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >