[issue7069] inspect.isabstract to return boolean values only

2009-10-05 Thread Jan Hosang
Jan Hosang added the comment: The patch works, as this is what is implicitly happening anyway if you use the function. There seem to be no tests for this function, so there is nothing to break. I guess this is the right time to get some tests. Gabriel, would you like to write tests for this

[issue5395] array.fromfile not checking I/O errors

2009-10-05 Thread Jan Hosang
Jan Hosang added the comment: > Maybe you could create a file without read permission (000) and try > to read from it. I just checked. If I don't have read permissions, I am not able to open the file. When I open a file and change permissions afterwards, I can read the complete file alright.

[issue7069] inspect.isabstract to return boolean values only

2009-10-05 Thread Gabriel Genellina
New submission from Gabriel Genellina : Currently, inspect.isabstract() may return an integer like 1048576 instead of True, or 0 instead of False. Although technically correct, no other isXXX function behaves that way; also, isgeneratorfunction() uses a similar code construct but casts the re

[issue7068] 2.6.3 does not use specified compiler

2009-10-05 Thread Shun-ichi Goto
New submission from Shun-ichi Goto : I installed python 2.6.3 on windows from .msi installer and get problem to build ext modules with MinGW compiler. It seems that Python 2.6.3 does not use compiler specified by user via --compiler=xxx or setup.cfg on building ext module. Thus, MSVC compiler is

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: yes. rc1 on 6 oct 2009 and final on 18 oct 2009 (tentative) -- ___ Python tracker ___ ___ Python-b

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: > a 2.6.4 release in the works Is this going to have a rc1 as usual? Have we decided on the dates both for rc1 and final? -- ___ Python tracker __

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Ned Deily
Ned Deily added the comment: UPDATE for users: With the change to distutils now added in r75256 and a 2.6.4 release in the works, option (3) in the original message should now read: (3) patch distutils to restore the previous behavior or install Python 2.6.4 which is expected to be releas

[issue5395] array.fromfile not checking I/O errors

2009-10-05 Thread Eduardo Aguiar
Eduardo Aguiar added the comment: Maybe you could create a file without read permission (000) and try to read from it. -- ___ Python tracker ___ _

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-10-05 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: >From http://bugs.python.org/msg93606 .. it seems that 2.6.4 may happen very soon. -- ___ Python tracker ___ __

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2009-10-05 Thread Ezio Melotti
Ezio Melotti added the comment: == ERROR: test_make_archive_owner_group (distutils.tests.test_archive_util.ArchiveUtilTestCase) -- Traceback (most recent call l

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-10-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: 2.6.4? -- assignee: -> barry nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list maili

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2009-10-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: I see two distinct points (besides test_make_archive_owner_group): 1- having a try..finally when changing the current working dir (I'll do this thanks for the patch) 2- dealing with calls made on archive_util.make_archive() when zlib is not available. What error

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-10-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can this go into 2.6.4? -- assignee: -> barry nosy: +rhettinger ___ Python tracker ___ ___ Pytho

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- nosy: +srid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7067] Suggest better documentation of 2 versus 3 on 3.1.1 site.

2009-10-05 Thread Steven R. Loomis
New submission from Steven R. Loomis : It would be nice if http://www.python.org/download/releases/3.1.1/ had the '3 vs 2' explanation made more prominent, just as it was in the 3.0. Maybe I've been living under a rock, but I didn't realize that 3 was such a change. Maybe the words 'backwards

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2009-10-05 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7057] tkinter doc: more 3.x updates

2009-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This "The authors strongly suggest getting a copy of the Tk man pages. " should be followed by a mention that they are available at the active state site, in particular, at http://www.tcl.tk/man/tcl8.5/ -- ___ Python

[issue7066] archive_util.make_archive doesn't restore the cwd if an error is raised

2009-10-05 Thread Ezio Melotti
New submission from Ezio Melotti : archive_util.make_archive() changes the value of the cwd, but if an error is raised in "filename = func(base_name, base_dir, **kwargs)", the cwd is not restored. This may happen if zlib is not available and causes other ~60 tests to fail while running regrtest.p

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-05 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- nosy: +srid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Adam Olsen
Adam Olsen added the comment: On Mon, Oct 5, 2009 at 12:10, Marc-Andre Lemburg wrote: > All this is just nitpicking, really. UCS2 is a character set, > UTF-16 an encoding. UCS is a character set, for most purposes synonymous with the Unicode character set. UCS-2 and UTF-16 are both encodings

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Phillip J. Eby
Phillip J. Eby added the comment: I appreciate the change being made. The specific code in setuptools is relying on an erroneous reading of get_ext_filename()'s docstring (which as of 2.3 at least, implied to me at least that it is always called with an extension's full dotted name), and so I w

[issue7065] bytes.maketrans segfaults

2009-10-05 Thread Brett Cannon
Changes by Brett Cannon : -- priority: -> release blocker type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Adam Olsen wrote: > > Adam Olsen added the comment: > > On Mon, Oct 5, 2009 at 03:03, Marc-Andre Lemburg > wrote: >> We use UCS2 on narrow Python builds, not UTF-16. >> >>> We might keep the old public API for compatibility, but it should be >>> clearly

[issue7022] Doc update for io module

2009-10-05 Thread Pascal Chambon
Pascal Chambon added the comment: Thanks a lot B-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the quick action Tarek!!! -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: Done in r75256 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Adam Olsen
Adam Olsen added the comment: On Mon, Oct 5, 2009 at 03:03, Marc-Andre Lemburg wrote: > We use UCS2 on narrow Python builds, not UTF-16. > >> We might keep the old public API for compatibility, but it should be >> clearly marked as broken for non-BMP scalar values. > > That has always been the

[issue7057] tkinter doc: more 3.x updates

2009-10-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: A somewhat separate issue is the lack of even a mention of the existence of the Canvas widget, which would merit a separate subsection if documented. I think it should at least be mentioned with a reference to the online reference materials listed before. Indee

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: > Before we start pointing fingers or throwing mud, was this bug > fix which apparently breaking setuptools introduced knowing that > this would break setuptools users? > > I'm surprised that nobody at all tried to use the release candidate > with any of the lis

[issue7058] Add some test execution environment protection to regrtest

2009-10-05 Thread R. David Murray
R. David Murray added the comment: Updated patch based on Antoine's feedback on IRC. Removes a mislaid 'not quiet' and restores argv using argv[:] = saved_argv. I agree about putting it into 2.6/3.1. We could also claim that it is fixing a bug in the running of the tests :) I suspect it migh

[issue7058] Add some test execution environment protection to regrtest

2009-10-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apart from the comments I made on IRC, I think it would be nice to have this patch in 2.6 and 3.1 as well. While not technically a bug fix, it is innocuous for users and certainly helps finding problems. -- nosy: +pitrou versions: +Python 2.6, Python 3.

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Guido van Rossum
Guido van Rossum added the comment: Before we start pointing fingers or throwing mud, was this bug fix which apparently breaking setuptools introduced knowing that this would break setuptools users? I'm surprised that nobody at all tried to use the release candidate with any of the listed pa

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-10-05 Thread Jesse Noller
Jesse Noller added the comment: It's passing for me on trunk/py3k at least on OS/X - I'm going to need to dredge up a linuxvm -- ___ Python tracker ___ _

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > >> We'd need to expose the UCS4 APIs *in addition* >> to those APIs and have the UCS2 APIs redirect to the UCS4 ones. > > Why have two names for the same function? it's Python 3, a

[issue7065] bytes.maketrans segfaults

2009-10-05 Thread egreen
egreen added the comment: Yes, it should indeed be a Py_ssize_t. New patch. -- Added file: http://bugs.python.org/file15050/bytes_maketrans_2.patch ___ Python tracker ___ __

[issue7065] bytes.maketrans segfaults

2009-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Good catch! Shouldn't the "i" variable be a "Py_ssize_t"? -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-10-05 Thread Jesse Noller
Jesse Noller added the comment: Adding gps - I haven't had a chance to grok the changes, and me getting to a fix is going to take a few. -- nosy: +gregory.p.smith ___ Python tracker ___

[issue7065] bytes.maketrans segfaults

2009-10-05 Thread egreen
New submission from egreen : The new maketrans static method in Python 3.1 segfaults when using byte values > 127. Reproduce: bytes.maketrans(bytes(range(256)), b'X' * 256) Cause: _Py_bytes_maketrans in Objects/bytes_methods.c uses signed int as array index. Fix attached. Also adds test.

[issue1571184] Generate numeric/space/linebreak from Unicode database.

2009-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > > Marc-Andre, could you comment on this patch? > The comments above were made by inspecting the generated code, comparing > with the previous version. > IMO the only drawback is the

[issue7063] Memory errors in array.array

2009-10-05 Thread Jan Hosang
Jan Hosang added the comment: The mp_ass_subscript function looks fine in contrast to array_ass_slice(). So if array_ass_slice() is not accessible from the outside and is only called with NULL as replacement parameter from the inside, I won't be able to cause trouble with those two issues. S

[issue1571184] Generate numeric/space/linebreak from Unicode database.

2009-10-05 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : Removed file: http://bugs.python.org/file15048/unicodectype_ucs4-2.patch ___ Python tracker ___ ___ Python

[issue1571184] Generate numeric/space/linebreak from Unicode database.

2009-10-05 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : Added file: http://bugs.python.org/file15048/unicodectype_ucs4-2.patch ___ Python tracker ___ ___ Python-b

[issue1571184] Generate numeric/space/linebreak from Unicode database.

2009-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Marc-Andre, could you comment on this patch? The comments above were made by inspecting the generated code, comparing with the previous version. IMO the only drawback is the increased memory usage. -- ___ Pytho

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > We'd need to expose the UCS4 APIs *in addition* > to those APIs and have the UCS2 APIs redirect to the UCS4 ones. Why have two names for the same function? it's Python 3, after all. Or is this "no recompile" feature so important (as long as changes are

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: This is off-topic for the tracker item, but I'll reply anyway: Ezio Melotti wrote: > > Ezio Melotti added the comment: > >>> We might keep the old public API for compatibility, but it should be >>> clearly marked as broken for non-BMP scalar values. > >

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread steve steiner
Changes by steve steiner : -- nosy: +ssteiner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > >> we should make sure that it's not possible to load an extension >> compiled with 3.1 in 3.2 to prevent segfaults and buffer overruns. > > This is the case with this patch: today

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Tarek Ziadé
Tarek Ziadé added the comment: > (3) patch or downgrade distutils to restore the previous behavior This is not really an option since distutils code was modified to fix some bugs, with no API change and no backward compat break. Users affected with this problems have to ask the Setuptools mai

[issue7042] test_signal fails on os x 10.6

2009-10-05 Thread Jan Hosang
Jan Hosang added the comment: I think a timing out while loop explains much better what is happening. I mean we are trying to keep the cpu busy for 0.9 seconds (if I understand the definition of virtual time correctly) and not do 1 increments (which might be done faster than 0.9 secon

[issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Ned Deily
New submission from Ned Deily : Due to a change in distutils released with Python 2.6.3, packages that use setuptools (version 0.6c9, as of this writing), or the easy_install command, to build C extension modules fail with a cryptic message ending with: ... .egg/setuptools/command/build_ext.py

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Ezio Melotti
Ezio Melotti added the comment: >> We might keep the old public API for compatibility, but it should be >> clearly marked as broken for non-BMP scalar values. > That has always been the case. UCS2 doesn't support surrogates. > However, we have been slowly moving into the direction of making >

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > we should make sure that it's not possible to load an extension > compiled with 3.1 in 3.2 to prevent segfaults and buffer overruns. This is the case with this patch: today all these functions (_PyUnicode_IsAlpha, _PyUnicode_ToLowercase) are actually #d

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > >> No, but changing the APIs from 16-bit integers to 32-bit integers >> does require a recompile of all code using it. > > Is it acceptable between 3.1 and 3.2 for example? ISTM th

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > No, but changing the APIs from 16-bit integers to 32-bit integers > does require a recompile of all code using it. Is it acceptable between 3.1 and 3.2 for example? ISTM that other changes already require recompilation of extension modules. > Also, the

[issue7024] webbrowser : Could not open ftp server using webbrowser.open()

2009-10-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: This bug is bit a tricky case. Harshad: You might try the "work-around" suggested by Antoine. But that is just a work-around. not a fix. Add an entry to gconf-editor like any other. ( google). The actual bug seems to be with gnome-open which is unable to hand

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-05 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Adam Olsen wrote: > > Adam Olsen added the comment: > > Surrogates aren't optional features of UTF-16, we really need to get > this fixed. That includes .isalpha(). We use UCS2 on narrow Python builds, not UTF-16. > We might keep the old public API for

[issue7063] Memory errors in array.array

2009-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The array type also defines tp_as_mapping->mp_ass_subscript, which has priority in PyObject_SetItem(). A way to call array_ass_slice() is to use PySequence_SetItem(), but this is hard to trigger from python code (it should be possible with ctypes). --

[issue7042] test_signal fails on os x 10.6

2009-10-05 Thread Mark Dickinson
Mark Dickinson added the comment: Oops. That 5.0 should have been 30.0, of course. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue7042] test_signal fails on os x 10.6

2009-10-05 Thread Mark Dickinson
Mark Dickinson added the comment: > If this is about passing time, there should be better ways (than > those which break if your computer gets faster). Agreed. The challenge is to find ways that don't add too much in the way of extra complexity, fragility, or dependencies to the unit test. Ho

[issue7063] Memory errors in array.array

2009-10-05 Thread Jan Hosang
New submission from Jan Hosang : While I was backporting the new buffer API to 2.7 I noticed some issues in array_ass_slice() in Modules/arraymodule.c in the python 3k branch. 1) Manual memory reallocation had been replaced by calls to array_resize. But I think when PyMem_RESIZE is called the

[issue7038] test_curses fails on os x 10.6

2009-10-05 Thread Jan Hosang
Jan Hosang added the comment: I am not able to reproduce my own report :) I'm sure I installed the 2.6.3 release, opened Terminal.app, checked `which python` and ran `python -m test.regrtest -uall`. I remember that I saw a crash report when I came back and some failed tests, so I ran the tes

[issue7042] test_signal fails on os x 10.6

2009-10-05 Thread Jan Hosang
Jan Hosang added the comment: I updated the checkout of the 26 branch, and the test runs fine now. I have no clue about virtual time as well. If this is about passing time, there should be better ways (than those which break if your computer gets faster). -- status: pending -> open

[issue7024] webbrowser : Could not open ftp server using webbrowser.open()

2009-10-05 Thread Harshad Modi
Harshad Modi added the comment: Hi, Antoine Pitrou! It is missing key for ftp in url-handlers... how can I add key for ftp? Thanks -- ___ Python tracker ___ ___

[issue5395] array.fromfile not checking I/O errors

2009-10-05 Thread Jan Hosang
Jan Hosang added the comment: 1&2) I removed the try/except around the import. I have no clue if os might be unavailable. Maybe leave out handling that until we see that breaking. I added the try/except because I saw that in other tests in the same file when importing gc. 3) Done. 4) The EO