[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-04 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: On Thu, Sep 4, 2008 at 4:59 PM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > > Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: > > Two remarks: > 1. Some functions in Modules/zipimport.c (get_data) will now receive > PyBytes,

[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-04 Thread Anand B Pillai
Anand B Pillai <[EMAIL PROTECTED]> added the comment: Does py3k list/barry have this bug in their radar for rc2 ? ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11385/sqlite.py ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11384/test_dbm_sqlite.py ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Updated test cases Added file: http://bugs.python.org/file11388/test_dbm_sqlite.py ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Another tweak - add values() Added file: http://bugs.python.org/file11387/sqlite.py ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Trivial doc diffs against 3.0b3 doc. Added file: http://bugs.python.org/file11386/dbm.diff ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11383/sqlite.py ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Another slight revision to the module. Added file: http://bugs.python.org/file11385/sqlite.py ___ Python tracker <[EMAIL PROTECTED]> _

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Attaching test cases based on dumbdbm tests. Added file: http://bugs.python.org/file11384/test_dbm_sqlite.py ___ Python tracker <[EMAIL PROTECTED]> __

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11380/sqlite.py ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Attaching corrected module. Added file: http://bugs.python.org/file11383/sqlite.py ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: The attached patch has WarningsRecorder raise AttributeError when there is no recorded attribute and yet one tries to access warnings attributes. And just so you know, JP, make sure to use keyword arguments when calling catch_warnings() (in cas

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: There is no specific reason why it would be, although that is an option as well. Part of the problem with None is that it is a legitimate default value for some arguments to showwarning() so it doesn't necessarily reflect that no exception was r

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Thu, Sep 4, 2008 at 4:18 PM, Glyph Lefkowitz <[EMAIL PROTECTED]> wrote: > > Glyph Lefkowitz <[EMAIL PROTECTED]> added the comment: > > The use of the term "filter" is pretty confusing. I would normally say > it was just me, but a bunch of ot

[issue3660] reference leaks in 3.0

2008-09-04 Thread Neal Norwitz
Neal Norwitz <[EMAIL PROTECTED]> added the comment: The only one that is probably an issue based on Antoine's info is: test_unicode leaked [1, 1] references, sum=2 I've seen test_urllib2_localnet leak 3 before. I don't know that it's a real leak. I'm pretty sure it is not a regression though.

[issue3660] reference leaks in 3.0

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Numbers for the current py3k branch (without encode-leak2.patch): test_distutils leaked [141, 142] references, sum=283 test_docxmlrpc leaked [-7, -85] references, sum=-92 test_logging leaked [0, 219] references, sum=219 test_poplib leaked [0,

[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-04 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: Correct, zipimport required fixing in order for this to work. The newly attached zlib-and-zipimport-gps01 patch. review at http://codereview.appspot.com/4454 I haven't had a chance to look at the other modules Amaury mentioned but on gene

[issue3660] reference leaks in 3.0

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: The patch for _pickle has been committed in r66227. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3769] Deprecate bsddb for removal in 3.0

2008-09-04 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: me> If not, could a dbm.sqlite module be written for 2.7 and 3.1 which me> can fill that role? http://bugs.python.org/issue3783 S ___ Python tracker <[EMAIL PROTECTED]>

[issue3783] dbm.sqlite proof of concept

2008-09-04 Thread Skip Montanaro
New submission from Skip Montanaro <[EMAIL PROTECTED]>: Based on recent discussions about ridding Python of bsddb I decided to see how hard it would be to implement a barebones dbm.sqlite module. Turns out, not very hard. No docs. No test cases. Caveat emptor. But I think it can serve as at l

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Why wouldn't w.message simply be None? -- nosy: +pitrou ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: committed r66224 + r66225. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Glyph Lefkowitz
Glyph Lefkowitz <[EMAIL PROTECTED]> added the comment: The use of the term "filter" is pretty confusing. I would normally say it was just me, but a bunch of other Twisted hackers seemed to interpret it the same way: a "filter" is something that has an opportunity to remove something else. For e

[issue874900] threading module can deadlock after fork

2008-09-04 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11379/forkthread2.patch ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue874900] threading module can deadlock after fork

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Instead of os.write(), it is actually sufficient to sys.stdout.flush() at the end of the subprocess. Patch attached. ___ Python tracker <[EMAIL PROTECTED]> _

[issue874900] threading module can deadlock after fork

2008-09-04 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: On Thu, Sep 4, 2008 at 6:08 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > Antoine Pitrou <[EMAIL PROTECTED]> added the comment: > > Benjamin, if you don't change the test, the deadlock problem is still > solved, it's just that the third

[issue874900] threading module can deadlock after fork

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Benjamin, if you don't change the test, the deadlock problem is still solved, it's just that the third test fails because the subprocess stdout is empty instead of containing the desired value. It is *not* because the subprocess doesn't print

[issue874900] threading module can deadlock after fork

2008-09-04 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I feel like that patch sort of avoids the problem by changing the test. The test is hanging for some reason, so we should try to fix that, not the test. :) I wonder if it has something to do with the various deadlocks we are discovering in

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Thu, Sep 4, 2008 at 3:48 PM, Glyph Lefkowitz <[EMAIL PROTECTED]> wrote: > > Glyph Lefkowitz <[EMAIL PROTECTED]> added the comment: > > Looks like we just misunderstood the way the warnings filter works, and > catch_warnings' interaction with

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: I won't be able to get to this until tonight, but assuming no one objects, I will make it be an AttributeError and a release blocker so that the API can be considered stable in rc1. -- priority: -> release blocker

[issue874900] threading module can deadlock after fork

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Ok, with this patch the test passes under py3k. Apart from the trivial typo (_Thread__stopped -> _stopped), I had to change print("...") to os.write(1, b"...\n") in the tests as otherwise subprocess wouldn't receive any output from the third

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: You could also surround the PyErr_NoMemory with #ifndef PGEN. ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-04 Thread Jean-Paul Calderone
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment: The specific exception type isn't that important to me, as long as I can rely on it being something in particular. ___ Python tracker <[EMAIL PROTECTED]>

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: On Thu, Sep 4, 2008 at 5:48 PM, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > > Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: > > pgen does not exist on Windows... > > What if I simply remove the call to PyErr_NoMemory? >

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Glyph Lefkowitz
Changes by Glyph Lefkowitz <[EMAIL PROTECTED]>: -- resolution: -> invalid ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-li

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: pgen does not exist on Windows... What if I simply remove the call to PyErr_NoMemory? It is not strictly necessary: the function already returns NULL without an exception set, for example when the file cannot be opened. ___

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Glyph Lefkowitz
Glyph Lefkowitz <[EMAIL PROTECTED]> added the comment: Looks like we just misunderstood the way the warnings filter works, and catch_warnings' interaction with it. Thanks for the priority bump, guido, and sorry for the false alarm! -- nosy: +glyph status: open -> closed ___

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Jean-Paul Calderone
Jean-Paul Calderone <[EMAIL PROTECTED]> added the comment: I was aware of it, but I didn't realize adding an "always" filter would make sure all warnings always got noticed. I haven't tried changing Twisted's use of the warnings module yet, but it looks like `catch_warnings` will work here. ___

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I think this patch should be reverted. It causes a linking error because pgen isn't linked to libpython; it doesn't find the _PyErr_NoMemory symbol. -- nosy: +benjamin.peterson ___ Python tracke

[issue3645] readline module Crashs on OpenBSD/amd64

2008-09-04 Thread Roumen Petrov
Roumen Petrov <[EMAIL PROTECTED]> added the comment: may issue 1204 is more general -- nosy: +rpetrov ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3782] os.write accepts unicode strings

2008-09-04 Thread Antoine Pitrou
New submission from Antoine Pitrou <[EMAIL PROTECTED]>: I'm a bit puzzled that both str and bytes are accepted by os.write() in py3k: >>> os.write(1, "foo\n") foo 4 >>> os.write(1, b"foo\n") foo 4 -- components: Interpreter Core messages: 72537 nosy: pitrou priority: high severity: norm

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: It sounds like you are trying to get around "once"/"default" rules to see all warnings raised. Why can't you use catch_warnings() and do ``simplefilter("always")`` or use "error"? Otherwise you can force the importing and use of the pure Python

[issue1638033] Add httponly to Cookie module

2008-09-04 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Well, if it's to be added then the patch should be updated to use reST. -- nosy: +benjamin.peterson versions: +Python 2.6, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]>

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: On Thu, Sep 4, 2008 at 3:10 PM, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > > New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>: > > This example shows the behavior: > >from warnings import catch_warnings > >def test(): >

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Guido van Rossum
Changes by Guido van Rossum <[EMAIL PROTECTED]>: -- priority: -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-04 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-04 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>: This example shows the behavior: from warnings import catch_warnings def test(): with catch_warnings(True) as w: assert str(w.message) == "foo", "%r != %r" % (w.message, "foo") test() This fails with

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Would the new catch_warnings [1] context manager help in this regard? [1] http://docs.python.org/dev/library/warnings.html#warnings.catch_warnings -- nosy: +benjamin.peterson ___ Python tracker

[issue1638033] Add httponly to Cookie module

2008-09-04 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: To be honest, I don't see any harm in adding this now, especially since rc1 hasn't been released yet. -- nosy: +gvanrossum ___ Python tracker <[EMAIL PROTECTED]>

[issue3780] No way to write unit tests for warnings

2008-09-04 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>: In Python 2.5 and earlier, the `warnings.warn_explicit` function could be replaced in order to test what warnings were emitted by some code. This allowed unit tests for warnings to be written. Since much of the warnings module was re-

[issue3777] PyNumber_Long fails from Float

2008-09-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Note to others: PySvn uses the PyCXX classes. The call in question is something similar to Py::Long( Py::Float( double( someValue ) ) ) Barry, what is the exact error message that you get? What do you mean by "res does not contain th

[issue3758] "make check" suggest a testing target under GNU coding standards

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: OK, I am going to go with ``make patchcheck`` since that is the script's name and the command does nothing but execute the script. I will wait until after rc1 to deal with this. ___ Python tracker <[EMAIL PR

[issue3776] deprecate bsddb/dbhash in 2.6 for removal in 3.0

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Sorry if that impression was given about 2.6 deprecation. The plan was always just for 3.0 removal since removing in 2.6 really would not be enough time to warn users. I have assigned to myself to apply the patch when I have time (some time ton

[issue3160] Building a Win32 binary installer crashes

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Fixed in r66223. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3779] log into bugs.python.org requires cookies

2008-09-04 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: On Thu, Sep 4, 2008 at 4:29 PM, donovaly <[EMAIL PROTECTED]> wrote: > > donovaly <[EMAIL PROTECTED]> added the comment: > > Closing the bug report is not correct. When my installation failed, I > need an info that cookies could cause the pr

[issue3779] log into bugs.python.org requires cookies

2008-09-04 Thread donovaly
donovaly <[EMAIL PROTECTED]> added the comment: Closing the bug report is not correct. When my installation failed, I need an info that cookies could cause the problem. This info has to be given on your webpage, so it's your turn! ___ Python tracker <[EMAIL PR

[issue3779] log into bugs.python.org requires cookies

2008-09-04 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This should be reported to the meta tracker: http://psf.upfronthosting.co.za/roundup/meta/. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL

[issue3776] deprecate bsddb/dbhash in 2.6 for removal in 3.0

2008-09-04 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Attached patch raises Py3k warnings rather than plain deprecation warnings, so it looks good to me (some of the discussions on python-dev gave the impression that may have been getting full deprecation warnings, implying its potential removal in

[issue3779] log into bugs.python.org requires cookies

2008-09-04 Thread donovaly
New submission from donovaly <[EMAIL PROTECTED]>: I tried to log into this issue tracker several times without success. Now I found out by chance that I need to allow to set browser cookies to be able to log in. So please display a message that one needs to allows cookies to log in. -- m

[issue3778] python uninstaller leave registry entries

2008-09-04 Thread donovaly
New submission from donovaly <[EMAIL PROTECTED]>: - install Python 2.5.2 using the Windows installer - now uninstall Python Result: The uninstaller doesn't remove the registry folder HKLM\SOFTWARE\Python and all its subfolders. -- components: Installation messages: 72520 nosy: donovaly

[issue3777] PyNumber_Long fails from Float

2008-09-04 Thread Barry Alan Scott
New submission from Barry Alan Scott <[EMAIL PROTECTED]>: I am testing PySVN against python2.6b3. I see a failure when PyNumber_Long is called with a Float. It raises TypeError. The same code works on 2.3, 2.4 and 2.5. Looking with GDB I see: (gdb) bt #0 PyNumber_Long (o=0x1809384) at Object

[issue1291446] SSLObject breaks read semantics

2008-09-04 Thread Jonathan Ellis
Jonathan Ellis <[EMAIL PROTECTED]> added the comment: Here is the exact SSLObject.read documentation from 2.5 (although the bug was filed against 2.4, and 2.6 will be out soon, the docs are the same): - read([n]) If n is provided, read n bytes from the SSL connection, otherwise read unt

[issue3776] deprecate bsddb/dbhash in 2.6 for removal in 3.0

2008-09-04 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: This patch deprecates bsddb and dbhash for removal in Python 3.0. -- components: Library (Lib) files: deprecate_bsddb.diff keywords: needs review, patch, patch messages: 72517 nosy: brett.cannon priority: release blocker severity: nor

[issue1291446] SSLObject breaks read semantics

2008-09-04 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: The way I read the documentation, file.read() (and that's what we're talking about) is still not guaranteed to read all the bytes of the file. But, you're right, that is the accepted semantics. So the documentation should change, too. However

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: Your patch looks fine, Amaury. -- assignee: -> amaury.forgeotdarc ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11372/check_findencoding_malloc.diff ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Right, here is an updated patch Added file: http://bugs.python.org/file11376/check_findencoding_malloc.diff ___ Python tracker <[EMAIL PROTECTED]> _

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: If PyMem_MALLOC() returns NULL, shouldn't MemoryError be set? ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3671] What's New in 2.6 - corrections

2008-09-04 Thread Kent Johnson
Kent Johnson <[EMAIL PROTECTED]> added the comment: For the itertools examples, perhaps you could remove the [ ] from the result text so it doesn't look like a list. For example: itertools.izip_longest([1,2,3], [1,2,3,4,5]) -> (1, 1), (2, 2), (3, 3), (None, 4), (None, 5) ___

[issue3769] Deprecate bsddb for removal in 3.0

2008-09-04 Thread Jesús Cea Avión
Jesús Cea Avión <[EMAIL PROTECTED]> added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick Coghlan wrote: > While that will still be visible to some degree due to the presence of > the 2.x version of the bsddb code in Python 2.6, I don't think it will > be quite the same as it wou

[issue3696] Error parsing arguments on OpenBSD <= 4.4

2008-09-04 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: -- resolution: accepted -> fixed status: pending -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: (I have to add that the patch makes small reads about 60-80% slower) ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3756] re.escape() does not work with bytes()

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: I don't think there are cases where re.escape is performance critical - are there any? By the way, it seems to me the simplest way to write re.escape() would be to use a regexp to do the replacement. It might or might not be the fastest.

[issue3774] tkinter Menu.delete bug

2008-09-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I've not tested this so heavily, but patch could be simple. self._tclCommands could be None, so should check it. -- keywords: +easy, needs review, patch Added file: http://bugs.python.org/file11375/menu_bag.patch _

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-09-04 Thread Antoine Pitrou
Changes by Antoine Pitrou <[EMAIL PROTECTED]>: -- keywords: +needs review ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-lis

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Here is a patch. The RLock implementation is naive and as simple as possible. It doesn't solve Haypo's case, probably because the tracing func kicks in in the RLock code itself. I don't want to make a decision on this alone, so someone please

[issue3769] Deprecate bsddb for removal in 3.0

2008-09-04 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Raymond Hettinger wrote: > I think this should be deferred to Py3.1. > This decision was not widely discussed and I think it likely that some > users will > be surprised and dismayed. The release > candidate seems to be the wrong time to > yank

[issue3775] Update RELNOTES file

2008-09-04 Thread Barry A. Warsaw
New submission from Barry A. Warsaw <[EMAIL PROTECTED]>: The RELNOTES file should contain all, but only, the issues relevant for the 3.0 final release. -- assignee: barry messages: 72505 nosy: barry priority: deferred blocker severity: normal status: open title: Update RELNOTES file vers

[issue3671] What's New in 2.6 - corrections

2008-09-04 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Many of the items are fixed in rev66217; thanks! A few of them were fixed in the revisions I did this past weekend. Not fixed: * the links for apply() and map() in the PEP 371 section. Georg, is there a way to override where the methods li

[issue3769] Deprecate bsddb for removal in 3.0

2008-09-04 Thread Jesús Cea Avión
Jesús Cea Avión <[EMAIL PROTECTED]> added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brett Cannon wrote: >> Also, the reason for removal may yet disappear >> if jcrea steps in an continues to make updates. > > OK, but none of his changes have received a code review, so if we are

[issue3774] tkinter Menu.delete bug

2008-09-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I tried, and I confirmed released python2.5.2 runs fine. and py3k, trunk, release25-maint fails. Probably something changed after 2.5.2 release. -- nosy: +ocean-city versions: +Python 2.5, Python 2.6 __

[issue3774] tkinter Menu.delete bug

2008-09-04 Thread skomoroh
New submission from skomoroh <[EMAIL PROTECTED]>: When I create a menu item without command and them remove it, I have a error: File "/usr/local/lib/python3.0/tkinter/__init__.py", line 2661, in delete if c in self._tclCommands: TypeError: argument of type 'NoneType' is not iterable --

[issue2305] Update What's new in 2.6

2008-09-04 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: The parse_qs() and parse_qsl() relocation from module cgi to urlparse needs an entry in the "What's new..." (alerting you through here, because I commited this last night). See issue 600362 for further info, or ask me directly, :) -

[issue2305] Update What's new in 2.6

2008-09-04 Thread A.M. Kuchling
A.M. Kuchling <[EMAIL PROTECTED]> added the comment: Closing this item; the 2.6 "What's New" is done, except for any small fixes that get reported. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3756] re.escape() does not work with bytes()

2008-09-04 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: On further testing, sometimes the str version is faster, sometimes the bytes version is faster. Never more than about 50% one way or the other, so probably not worth worrying about, although I still don't really like the implementation. Ma

[issue877121] configure detects incorrect compiler optimization

2008-09-04 Thread Michael Schmarck
Changes by Michael Schmarck <[EMAIL PROTECTED]>: -- versions: +Python 2.4, Python 2.6, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue877121] configure detects incorrect compiler optimization

2008-09-04 Thread Michael Schmarck
Michael Schmarck <[EMAIL PROTECTED]> added the comment: This still happens with Python 2.6b3, 3.0b3 and 2.5.2 and Sun Studio 12 on Solaris Sparc. Like mentioned in Issue1162001, the problem seems to be, that cc returns 0 if -OPT:Olimit=0 is used: --($ ~)-- cc -OPT:Olimit=0 test1.c; echo $? cc:

[issue3618] possible deadlock in IO library (Lib/io.py)

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: We might as well bite the bullet and include a short, minimalist RLock implementation in io.py (so as not to pull threading and all its dependencies at startup). The C version of RLock will wait for 3.1. __

[issue3187] os.listdir can return byte strings

2008-09-04 Thread Baptiste Carvello
Baptiste Carvello <[EMAIL PROTECTED]> added the comment: If, as I understand, it is the application's job to call listdir with bytes or unicode depending on the platform, it might be useful to have a function in the os module telling whether the filesystem is bytes of unicode-native. That way,

[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Two remarks: 1. Some functions in Modules/zipimport.c (get_data) will now receive PyBytes, but zipimporter_get_source handle them as PyByteArray. Does zipimport still work at all with this patch? 2. There are other places where PyString

[issue3759] test_asyncore.py leaks handle

2008-09-04 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto <[EMAIL PROTECTED]>: -- resolution: accepted -> fixed ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python

[issue3762] platform.architecture() fails if python is lanched via its symbolic link (cygwin)

2008-09-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Thanks, fixed in r66213(trunk), r66214(release-maint25), r66216(py3k). -- resolution: accepted -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue1658] "RuntimeError: dictionary changed size during iteration" in Tkinter

2008-09-04 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Committed r66215 I've applied this only in py3k since it doesn't affect python 2.6 -- resolution: accepted -> fixed status: open -> closed versions: -Python 2.6 ___ Python tracker <[EMAIL PROTECT

[issue3492] Zlib compress/decompress functions returning bytearray

2008-09-04 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: +1 for committing. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[issue3722] print followed by exception eats print with doctest

2008-09-04 Thread Chris Withers
Chris Withers <[EMAIL PROTECTED]> added the comment: Out of interest, where are the doctest docs you quoted? I missed that bit and that disturbs me :-S I'm not sure documenting a bug and trying to explain it away makes it any less of a bug, nonetheless, lets leave this one open as a feature requ

[issue3773] Check for errors when using PyTokenizer_FindEncoding()

2008-09-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: In PyTokenizer_FindEncoding(), PyMem_MALLOC may return NULL. Another patch attached. -- nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file11372/check_findencoding_malloc.diff _

[issue3762] platform.architecture() fails if python is lanched via its symbolic link (cygwin)

2008-09-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The problem shows up on other platforms as well. The following comes from a standard Debian 64bit: $ /usr/bin/python -c "import platform; print platform.architecture()" ('64bit', '') $ /usr/bin/python2.4 -c "import platform; print platf

[issue1658] "RuntimeError: dictionary changed size during iteration" in Tkinter

2008-09-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The patch is indeed simple. A minor stylistic remark: instead of for c in classes: del cnf[c[0]] it would be clearer to write for k, v in classes: del cnf[v] like the other loop does, 3 lines after. Please appl

[issue3772] logging module fails with non-ascii data

2008-09-04 Thread Vinay Sajip
Vinay Sajip <[EMAIL PROTECTED]> added the comment: Changes checked into trunk. -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ __

  1   2   >