[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: georg.brandl
components: Documentation
files: whatsnew-depmod2.6-r66484.diff
keywords: patch
messages: 73323
nosy: georg.brandl, pjenvey
severity: normal
status: open
title: [PATCH] Document more deprecated modules in What's New in Python 2.6
versions: Python 2.6
Added file: http://bugs.python.org/file11508/whatsnew-depmod2.6-r66484.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3888
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3835
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (most recent call last):
  File stdin, line 1, in module
bsddb.db.DBNoServerError: (-30992, 'DB_NOSERVER: Fatal error, no RPC
server -- No Berkeley DB RPC server environment')

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)

Now, to the _bsddb module: in general, the following pattern is wrong:
   dummy = someFunction();
   Py_XDECREF(dummy);
because it does nothing about an eventual exception set. If the
exception can be discarded, PyErr_Clear() must be called.

I think there is an invariant to keep in each function: return NULL if
and only if an exception is set. Many places in _bsddb do not respect this.

--
nosy: +amaury.forgeotdarc

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3885
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 because a critical design error in 
CPython reference counting: http://bugs.python.org/issue3299 (some modules 
use PyObject_DEL() instead of Py_DECREF() whereas PyObject_DEL() creates 
inconsistent objects in the double linked object list). Since nobody cares 
about this issue, I don't use pydebug anymore.

 Now, to the _bsddb module: in general, the following pattern is wrong:
dummy = someFunction();
Py_XDECREF(dummy);
 because it does nothing about an eventual exception set. If the
 exception can be discarded, PyErr_Clear() must be called.

Well, we have to choices: don't raise an error, or clear the exception if an 
exception is raised.

 I think there is an invariant to keep in each function: return NULL if
 and only if an exception is set. Many places in _bsddb do not respect this.

Where? dealloc() callback prototype is void tp_dealloc(...): no result! It's 
not possible to tell Python that an error occured.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3885
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3885
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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);
Py_XDECREF(dummy);
return NULL;
}
if DB_close_internal() raises an exception it will replace the original
error set by makeDBError(). I'm not sure this is desirable.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3885
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: patch
messages: 73331
nosy: gregdarke
severity: normal
status: open
title: Demo/parser/unparse.py
versions: Python 2.5
Added file: http://bugs.python.org/file11509/fix_import_from_bug.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3889
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 --enable-threads.
Maybe that was true some time ago or maybe in other platforms, but isn't
the case anymore.

--
keywords: +patch
Added file: http://bugs.python.org/file11510/issue_3835.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3835
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
BASECFLAGS=-DCHECKEXC did the trick for me.

 Where? dealloc() callback prototype is void tp_dealloc(...): 
 no result! It's not possible to tell Python that an error occured.

Exactly. You cannot return NULL (or -1 for other kind of functions), so
no exception may be raised; PyErr_Clear() calls are necessary.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3885
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 this is behaving differently to the malloc() implementation
in FreeBSD 6.3 which relied on sbrk().

I have posted a query about the new malloc()'s behaviour to a FreeBSD
forum and will report what I find out.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3862
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1068268
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 don't see any tests for the specific
functionality in the patch, or any patch to the documentation of the
socket module.

--
nosy: +janssen

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2574
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ago :-).

Bill

Added file: http://bugs.python.org/file11512/unnamed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2574
___div dir=ltrbrbrdiv class=gmail_quoteOn Wed, Sep 17, 2008 at 10:45 
AM, bms span dir=ltrlt;a href=mailto:[EMAIL PROTECTED][EMAIL 
PROTECTED]/agt;/span wrote:brblockquote class=gmail_quote 
style=border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 
padding-left: 1ex;
br
Exercising the API fully requires an SSM capable multicast LAN.br
/blockquotedivbrLet#39;s hope the PARC network is still 
up-to-date.nbsp; It was when we were developing multicast here some 15-20 
years ago :-).brbrBill/div/divbr/div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue3870
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue3547
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
raise ValueError( 
non-zero flags not allowed in calls to sendall() 
on %s % 
self.__class__) 
while True: 
try: 
return self.read(buflen) 
except SSLError, x: 
if x.args[0] == SSL_ERROR_WANT_READ: 
continue 
else: 
raise x 
else: 
return socket.recv(self, buflen, flags) 

I don't know the low levels but that while statement which continues 
in case of SSL_ERROR_WANT_READ seems to be wrong (blocking), at least 
when dealing with non-blocking sockets. I think the proper way of 
doing recv() here is letting SSL_ERROR_WANT_READ propagate and let the 
upper application (e.g. asyncore) deal with it.

--
components: Library (Lib)
messages: 73342
nosy: giampaolo.rodola, janssen, josiah.carlson, josiahcarlson
severity: normal
status: open
title: ssl.SSLSocket.recv() implementation may not work with non-blocking 
sockets
type: behavior
versions: Python 2.6, Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3890
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 implement, and run in O(1) time.

--
components: Library (Lib)
messages: 73344
nosy: roysmith
severity: normal
status: open
title: collections.deque should have empty() method
type: feature request
versions: Python 2.5

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 PROTECTED]
http://bugs.python.org/issue3891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 usage.  It's logical that it 
works this way, but not entirely obvious.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
--
Traceback (most recent call last):
  File
S:\buildbots\python\trunk.nelson-windows\build\lib\bsddb\test\test_replication.py,
line 122, in test01_basic_replication
self.assertTrue(time.time()timeout)
AssertionError

--

http://python.org/dev/buildbot/stable/x86%20W2k8%20trunk/builds/159/step-test/0

--
assignee: jcea
components: Extension Modules
messages: 73348
nosy: benjamin.peterson, jcea
severity: normal
status: open
title: bsddb: test01_basic_replication fails on Windows sometimes
versions: Python 2.6

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3892
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3886
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3892
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 exactly one call to this
function with a value of 2, which is apparently DB_EVENT_REP_CLIENT. 
After this call no further calls are made to the method and after 10
seconds the test gives up.

--
nosy: +mhammond

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3892
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 exact, but may overflow, but I was really expecting a negative
number of seconds.

Feel free to close this bug if you disagree.

--
components: Library (Lib)
messages: 73353
nosy: jjinux
severity: normal
status: open
title: timedelta overflows in a surprising way
type: behavior
versions: Python 2.5

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3893
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 both the size and 
position of the underlying data representation.

How would you suck elements out of a list?  Probably with something 
like:

while mylist:
  elt = mylist.pop()

Aside from possible performance issues it's not clear that you would use 
a deque object differently than a list in this context.

--
nosy: +skip.montanaro

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, Python 2.6, Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3895
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Cannon on #python-dev experimented and could see the
callback function being called a number of times - with 2 first as
Windows does, but then a number of other times and once with the
expected value.  I'm afraid I've no insight into why these aren't
delivered on Windows.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3892
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 saying deque is a subclass of list (which isn't 
true), nor the set of operations supported by deque is a superset of 
those supported by list (which also isn't true).  Thus, you're left 
having to interpret the statement as a handwave that deques are sort-of 
list-like things, with some (indeterminate) set of operations in common.  
It's not at all obvious (or at least it wasn't to me) that one of those 
operations is evaluating the container in a boolean context to test for 
emptiness.

Anyway, to more concretely answer your question, I'd just make the plain 
statement, An empty deque evaluates as false, somewhere right on the 
page where the methods are listed.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3891
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:  - wont fix
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2210
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 values may be surprising at first.  The
.seconds and .microseconds attributes are always non-negative.

 from datetime import datetime
 now = datetime.today()
 future = datetime.today()
 (now - future).seconds
86390
 (future - now).seconds
9
 now - future
datetime.timedelta(-1, 86390, 146000) # only .days is negative

--
nosy: +tim_one

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3893
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com