[issue3888] [PATCH] Document more deprecated modules in What's New in Python 2.6

2008-09-17 Thread Philip Jenvey
New submission from Philip Jenvey [EMAIL PROTECTED]: The What's New doc is missing a few of these, I've added the ones mentioned in PEP 361 that weren't already there. I also corrected popen2's entry; it's always deprecated in 2.6, not just in the 3.0 warnings mode -- assignee:

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-17 Thread Helmut Jarausch
Helmut Jarausch [EMAIL PROTECTED] added the comment: Many thanks, that solved the problem. Since the cause of the problem wasn't easy to find out (for me, at least) would be possible to check at import time if Tcl/Tk has been configured with threads enabled? Helmut.

[issue3887] Python 2.6 doesn't run after installation on amd64

2008-09-17 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: -- assignee: - loewis nosy: +loewis priority: - critical ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3887 ___

[issue3841] IDLE: quirky behavior when displaying strings longer than 4093 characters

2008-09-17 Thread Stephen McInerney
Stephen McInerney [EMAIL PROTECTED] added the comment: Other people have reported it does NOT occur with either: Win XP / Python 2.5 / Idle 1.2 Mac OS X 10.5.4 / Python 2.5.2 / IDLE 1.2.2 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3841

[issue3888] [PATCH] Document more deprecated modules in What's New in Python 2.6

2008-09-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks for the patch, committed as r66485. -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3888

[issue3885] errors on _bsddb creation and dealloc

2008-09-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I thought first that the problem was during the execution of gc.collect(), but its not: when configured --with-pydebug, the exception is printed before: import gc, _bsddb; env=_bsddb.DBEnv(3); del env XXX undetected error Traceback

[issue3885] errors on _bsddb creation and dealloc

2008-09-17 Thread STINNER Victor
STINNER Victor [EMAIL PROTECTED] added the comment: gc.collect() is just a rude way to display this XXX undetected error. (Victor: does Fusil check for this? gc.collect() will not fail if there is another exception in-between, or in debug mode) I stopped to fuzz Python using --pydebug

[issue3299] invalid object destruction in re.finditer()

2008-09-17 Thread Jesús Cea Avión
Changes by Jesús Cea Avión [EMAIL PROTECTED]: -- nosy: +jcea ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3299 ___ ___ Python-bugs-list mailing list

[issue3885] errors on _bsddb creation and dealloc

2008-09-17 Thread Jesús Cea Avión
Jesús Cea Avión [EMAIL PROTECTED] added the comment: So, the right thing to do seems to drop the check_error flag and just do a PyErr_Clear() if necessary in the dealloc code. This must be done in all dealloc code: DBEnv, DB, DBSequence and DBCursor. Do you agree?.

[issue3885] errors on _bsddb creation and dealloc

2008-09-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Not only in these functions, but anywhere dummy= is followed by a Py_XDECREF(dummy); And code like this must also be changed (in DB_open): if (makeDBError(err)) { PyObject *dummy; dummy=DB_close_internal(self,0);

[issue3889] Demo/parser/unparse.py

2008-09-17 Thread Greg Darke
New submission from Greg Darke [EMAIL PROTECTED]: When the unparse demo is run on a file containing a 'from x import y' statement, it incorrectly outputs it as 'from x import , y'. The attached patch fixes this. -- components: Demos and Tools files: fix_import_from_bug.patch keywords:

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-17 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: The patch attached checks for that when an interpreter is created, not really at import time but should be enough. But my real concern is that tkinter thinks it will work properly when Python is using threads and Tcl wasn't compiled with

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-17 Thread Guilherme Polo
Changes by Guilherme Polo [EMAIL PROTECTED]: -- priority: - normal ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3835 ___ ___ Python-bugs-list mailing

[issue3880] _tkinter._flatten() doesn't check PySequence_Size() error code

2008-09-17 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Looks fine, doesn't break anything in Tkinter either. -- nosy: +gpolo ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3880 ___

[issue3885] errors on _bsddb creation and dealloc

2008-09-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I stopped to fuzz Python using --pydebug because a critical design error in CPython reference counting I won't comment on this, but to get the extra checks you could arrange that ceval.c is compiled with CHECKEXC defined. ./configure

[issue3862] test_array fails on FreeBSD7 amd64

2008-09-17 Thread Andrew I MacIntyre
Andrew I MacIntyre [EMAIL PROTECTED] added the comment: Mark, your patch will probably get the test to pass, but the underlying reason the test is failing appears to be unexpected behaviour of the platform malloc(). FreeBSD 7.0 introduced a new malloc() implementation that relies on mmap() and

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-17 Thread jan matejek
Changes by jan matejek [EMAIL PROTECTED]: -- nosy: +matejcik ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3886 ___ ___ Python-bugs-list mailing list

[issue1068268] subprocess is not EINTR-safe

2008-09-17 Thread Matteo Bertini
Matteo Bertini [EMAIL PROTECTED] added the comment: Upgrade subprocess.py patch to 25-maint r65475 (apply cleanly with http://bugs.python.org/issue2113 fixed) -- keywords: +patch Added file: http://bugs.python.org/file11511/subprocess-eintr-safety-25maint-r65475.patch

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-09-17 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: I tried applying this patch to a clean SVN checkout of the 2.6 trunk on an OS X Leopard machine and it works (except for the part which patches configure.in). I then built the source tree and ran the test_socket test, which also worked fine. I

[issue2574] Add RFC 3768 SSM Multicast support to socket

2008-09-17 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: On Wed, Sep 17, 2008 at 10:45 AM, bms [EMAIL PROTECTED] wrote: Exercising the API fully requires an SSM capable multicast LAN. Let's hope the PARC network is still up-to-date. It was when we were developing multicast here some 15-20 years

[issue3870] Parser/asdl_c.py requires python in order to build python

2008-09-17 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: I think it would be a good idea to change the Makefile so that it touches these files when no python interpreter is available. -- nosy: +theller ___ Python tracker [EMAIL PROTECTED]

[issue3547] Ctypes is confused by bitfields of varying integer types

2008-09-17 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: Here is a patch, with test, that fixes this problem. -- keywords: +needs review, patch Added file: http://bugs.python.org/file11513/bitfields.patch ___ Python tracker [EMAIL PROTECTED]

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

2008-09-17 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' [EMAIL PROTECTED]: As discussed on the python-dev ml I noticed something in the ssl.py code which seems to be wrong. This is the ssl.SSLSocket.recv() method: def recv (self, buflen=1024, flags=0): if self._sslobj: if flags != 0:

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I'm ok with this patch. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3886 ___

[issue3891] collections.deque should have empty() method

2008-09-17 Thread Roy Smith
New submission from Roy Smith [EMAIL PROTECTED]: Unless I'm missing something, the only way to tell if a deque is empty is to try and pop() something and catch the resulting IndexError. This is not only awkward, but mutates the data structure when you may not want to. It should be trivial to

[issue3891] collections.deque should have empty() method

2008-09-17 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - rhettinger components: +Extension Modules nosy: +rhettinger versions: +Python 2.7, Python 3.1 -Python 2.5 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3891

[issue3891] collections.deque should have empty() method

2008-09-17 Thread Roy Smith
Roy Smith [EMAIL PROTECTED] added the comment: I just realized my request may have been ambiguous; empty() is a predicate, not a verb. Doc should be something like: Return true if the deque is empty. Return false otherwise. ___ Python tracker [EMAIL

[issue3891] collections.deque should have empty() method

2008-09-17 Thread Roy Smith
Roy Smith [EMAIL PROTECTED] added the comment: Sigh. It looks like you can do what I want after all, by just using the deque object itself, i.e.: q = deque() while (q): ... This should be changed to a docs bug -- the doc page for deque should mention this, or include an example of this

[issue2876] Write UserDict fixer for 2to3

2008-09-17 Thread Nick Edds
Nick Edds [EMAIL PROTECTED] added the comment: Sorry about the delay with this. I've finally found some time to work on this, so it should be completed within the next couple of days. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2876

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-17 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: This happens on the Windows buildbot everything once and a while [1]: == FAIL: test01_basic_replication (bsddb.test.test_replication.DBReplicationManager)

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Fixed in r66496. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3886 ___

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Hmm. It's seems 3.0 will require a different patch. I can't get the merging to work... -- priority: release blocker - deferred blocker resolution: fixed - status: closed - open versions: -Python 2.6

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- nosy: +gregory.p.smith ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3892 ___ ___ Python-bugs-list

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-17 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: We're going to disable this test for 2.6rc2. Please jcea and gregory.p.smith, take a look at it for 2.6 final. I've made it a deferred blocker for that release. -- nosy: +barry priority: - deferred blocker

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-17 Thread Mark Hammond
Mark Hammond [EMAIL PROTECTED] added the comment: I instrumented the code a little. The error is happening because self.client_startupdone never gets set to True. This is supposed to be set in the client_startupdone() method. It expects an event type of db.DB_EVENT_REP_STARTUPDONE, but we see

[issue3893] timedelta overflows in a surprising way

2008-09-17 Thread Shannon -jj Behrens
New submission from Shannon -jj Behrens [EMAIL PROTECTED]: I was very surprised by the following behavior: from datetime import datetime now = datetime.today() future = datetime.today() (now - future).seconds 86395 I know that http://docs.python.org/lib/datetime-timedelta.html says This is

[issue3891] collections.deque should have empty() method

2008-09-17 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: What would you suggest? The docs already say: Though list objects support similar operations, they are optimized for fast fixed-length operations and incur O(n) memory movement costs for pop(0) and insert(0, v) operations which change

[issue3894] imageop issue

2008-09-17 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- priority: - deferred blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3894 ___ ___ Python-bugs-list

[issue3895] _lsprof issue

2008-09-17 Thread Brett Cannon
New submission from Brett Cannon [EMAIL PROTECTED]: http://psf.upfronthosting.co.za/roundup/security/issue3 -- components: Extension Modules messages: 73356 nosy: brett.cannon priority: deferred blocker severity: normal status: open title: _lsprof issue type: crash versions: Python 2.5,

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-17 Thread Mark Hammond
Mark Hammond [EMAIL PROTECTED] added the comment: As discussed with Barry on #python-dev, I committed r66498 which skips the failing assertion on Windows and replaces it with some noise to stderr. Note that only that one assertion fails - the rest of the test passes on Windows. Also, Brett

[issue3891] collections.deque should have empty() method

2008-09-17 Thread Roy Smith
Roy Smith [EMAIL PROTECTED] added the comment: In retrospect, it's obvious that while mydeque is indeed the way to process the queue, yet, when I was reading the docs, I didn't come away with that. The statement, list objects support similar operations, is wishy-washy. It is not the same as

[issue2210] Nested module import clutters package namespace

2008-09-17 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: The reason this happens is to support ``import pack.y``. When you reference the module in this way it is accessing the 'y' attribute on the 'pack' module. If import didn't set it this form of importing would never work. -- resolution: -

[issue3893] timedelta overflows in a surprising way

2008-09-17 Thread Tim Peters
Tim Peters [EMAIL PROTECTED] added the comment: Not a bug. Try (future - now).seconds instead so that the timedelta is positive. As explained in the docs, a negative timedelta is normalized so that only the .days attribute is negative, and, as the docs also say, normalization of negative

[issue3628] IDLE does not run with Py30b3

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3628 ___

[issue3723] Py_NewInterpreter does not work

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3723 ___

[issue3666] atexit.register with bad input segfaults on exit

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3666 ___

[issue3664] Pickler.dump from a badly initialized Pickler segfaults

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3664 ___

[issue3626] python3.0 interpreter on Cygwin ignores all arguments

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3626 ___

[issue3661] sys.call_tracing segfaults

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3661 ___

[issue3685] Crash while compiling Python 3000 in OpenBSD 4.4

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3685 ___

[issue1210] imaplib does not run under Python 3

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1210 ___

[issue3623] _json: fix raise_errmsg(), py_encode_basestring_ascii() and linecol()

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3623 ___

[issue3187] os.listdir can return byte strings

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3187 ___

[issue3787] Make PyInstanceMethod_Type available or remove it

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3787 ___

[issue1717] Get rid of more refercenes to __cmp__

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1717 ___

[issue3574] compile() cannot decode Latin-1 source encodings

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3574 ___

[issue3799] Byte/string inconsistencies between different dbm modules

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3799 ___

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

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3781 ___

[issue3886] Integer overflow in _hashopenssl.c (CVE-2008-2316)

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3886 ___

[issue3894] imageop issue

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3894 ___

[issue3895] _lsprof issue

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3895 ___

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2008-09-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw [EMAIL PROTECTED]: -- priority: deferred blocker - release blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3892 ___