[issue2772] Add PendingDeprecationWarning for % formatting

2008-07-19 Thread Eric Smith

Eric Smith <[EMAIL PROTECTED]> added the comment:

I agree.  That's one of the reasons I un-assigned it to me.

Well, that and I couldn't get it to pass all tests.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3307] invalid check of _bsddb creation failure

2008-07-19 Thread Jesús Cea Avión

Jesús Cea Avión <[EMAIL PROTECTED]> added the comment:

Solved in my SVN repository. Revision 527. Testsuite updated.

Will be available in bsddb 4.7.2.

--
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3307] invalid check of _bsddb creation failure

2008-07-19 Thread Jesús Cea Avión

Changes by Jesús Cea Avión <[EMAIL PROTECTED]>:


--
resolution:  -> fixed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Jesús Cea Avión

Jesús Cea Avión <[EMAIL PROTECTED]> added the comment:

Gregory, could you possibly try my svn, revision 529?

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3414] frameworkinstall doesn't create Python.app, which breaks python

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Fixed in r65130.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3378] Memory leak in pythonrun.c

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Applied in r65131.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3368] Memory leak in import.c

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Applied in r65132.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3415] Interpreter error when running a script under debugger control

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

For reference, here is the output of the pdb session:

[EMAIL PROTECTED] ~/devel/python> ./python Lib/pdb.py Lib/idlelib/idle.py
> /home/gbr/devel/python/Lib/idlelib/idle.py(1)()
-> try:
(Pdb) break multicall.py:300
***  'multicall.py' not found from sys.path
(Pdb) break idle.py:10
Breakpoint 1 at /home/gbr/devel/python/Lib/idlelib/idle.py:10
(Pdb) c
Traceback (most recent call last):
  File "/home/gbr/devel/python/Lib/pdb.py", line 1275, in main
pdb._runscript(mainpyfile)
  File "/home/gbr/devel/python/Lib/pdb.py", line 1192, in _runscript
self.run(statement)
  File "/home/gbr/devel/python/Lib/bdb.py", line 366, in run
exec cmd in globals, locals
  File "", line 1, in 
  File "Lib/idlelib/idle.py", line 21, in 
idlelib.PyShell.main()
  File "/home/gbr/devel/python/Lib/idlelib/PyShell.py", line 1396, in main
shell = flist.open_shell()
  File "/home/gbr/devel/python/Lib/idlelib/PyShell.py", line 275, in
open_shell
self.pyshell = PyShell(self)
  File "/home/gbr/devel/python/Lib/idlelib/PyShell.py", line 816, in
__init__
OutputWindow.__init__(self, flist, None, None)
  File "/home/gbr/devel/python/Lib/idlelib/OutputWindow.py", line 16, in
__init__
EditorWindow.__init__(self, *args)
  File "/home/gbr/devel/python/Lib/idlelib/EditorWindow.py", line 108,
in __init__
self.text = text = MultiCallCreator(Text)(
  File "/home/gbr/devel/python/Lib/idlelib/MultiCall.py", line 294, in
MultiCallCreator
class MultiCall (widget):
  File "/home/gbr/devel/python/Lib/idlelib/MultiCall.py", line 295, in
MultiCall
assert issubclass(widget, Tkinter.Misc)
NameError: free variable 'widget' referenced before assignment in
enclosing scope
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /home/gbr/devel/python/Lib/idlelib/MultiCall.py(295)MultiCall()
-> assert issubclass(widget, Tkinter.Misc)
(Pdb) 


I *think* we had some similar issue with trace functions and class
scopes in the past, but can't remember where.

--
assignee:  -> jhylton
nosy: +georg.brandl, jhylton

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3302] segfault on gettext(None)

2008-07-19 Thread STINNER Victor

Changes by STINNER Victor <[EMAIL PROTECTED]>:


Added file: http://bugs.python.org/file10945/locale_none-2.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3302] segfault on gettext(None)

2008-07-19 Thread STINNER Victor

Changes by STINNER Victor <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10831/locale_none.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

To reproduce the crash, try very big negative integer as second 
argument. Example:

>>> _json.scanstring("test", -23492394)
Erreur de segmentation (core dumped)

>>> _json.scanstring(u"test", -1239239)
Erreur de segmentation (core dumped)

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3416] Wrong inherit in PickleHTMLBuilder

2008-07-19 Thread Yu Xin

New submission from Yu Xin <[EMAIL PROTECTED]>:

I use sphinx-0.4.1. When I make pickle, I saw the error message:
Traceback (most recent call last):
  File
"/is/app/grows/lib/python2.5/site-packages/Sphinx-0.4.1-py2.5.egg/sphinx/__init__.py",
line 135, in main
app.builder.build_update()
  File
"/is/app/grows/lib/python2.5/site-packages/Sphinx-0.4.1-py2.5.egg/sphinx/builder.py",
line 202, in build_update
'out of date' % len(to_build))
  File
"/is/app/grows/lib/python2.5/site-packages/Sphinx-0.4.1-py2.5.egg/sphinx/builder.py",
line 241, in build
self.write(docnames, updated_docnames, method)
  File
"/is/app/grows/lib/python2.5/site-packages/Sphinx-0.4.1-py2.5.egg/sphinx/builder.py",
line 277, in write
self.write_doc(docname, doctree)
  File
"/is/app/grows/lib/python2.5/site-packages/Sphinx-0.4.1-py2.5.egg/sphinx/builder.py",
line 459, in write_doc
self.handle_page(docname, ctx, event_arg=doctree)
TypeError: handle_page() got an unexpected keyword argument 'event_arg'.

I inspect the class in sphinx/builder.py. 
handle_page in StandaloneHTMLBuilder is defined as "def ndle_page(self,
pagename, addctx, templatename='page.html', outfilename=None,
event_arg=None):

but handle_page in PickleHTMLBuilder is defined as "def
handle_page(self, pagename, ctx, templatename='page.html',
outfilename=None):"

the last param event_arg is missing.

--
assignee: georg.brandl
components: Documentation tools (Sphinx)
messages: 70015
nosy: georg.brandl, is
severity: normal
status: open
title: Wrong inherit in PickleHTMLBuilder
type: crash

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3302] segfault on gettext(None)

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Fixed in r65133.

--
assignee: loewis -> georg.brandl
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3319] pystone.main(10) causes ZeroDivisionError

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Thanks, fixed in trunk in r65135, will be merged to Py3k automatically.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2706] datetime: define division timedelta/timedelta

2008-07-19 Thread webograph

webograph <[EMAIL PROTECTED]> added the comment:

this is the mentioned patch without the function pointers, in case it
better fits the python coding style.

Added file: 
http://bugs.python.org/file10946/datetime_datetime_division_dupcode.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Bob, do you know how to fix this?

--
assignee:  -> bob.ippolito
nosy: +bob.ippolito, georg.brandl

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3321] _multiprocessing.Connection() doesn't check handle

2008-07-19 Thread Georg Brandl

Changes by Georg Brandl <[EMAIL PROTECTED]>:


--
priority:  -> high

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3323] Clarify __slots__ behaviour when inheriting

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Added a note in r65136, thanks.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3311] block operation on closed socket/pipe for multiprocessing

2008-07-19 Thread Jesse Noller

Changes by Jesse Noller <[EMAIL PROTECTED]>:


--
assignee:  -> jnoller
nosy: +jnoller, roudkerk

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3330] webbrowser module doesn't correctly handle '|' character.

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Closing as invalid.

--
nosy: +georg.brandl
resolution:  -> invalid
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3331] Possible inconsistency in behavior of list comprehensions vs. generator expressions

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

This is not a bug, see this thread:
http://mail.python.org/pipermail/python-3000/2008-July/014328.html

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3399] Memory corruption in multiprocessing module, OS X 10.5.4

2008-07-19 Thread Jesse Noller

Jesse Noller <[EMAIL PROTECTED]> added the comment:

Ok, so for the moment, let's set aside the connection refused messages: 
that may be a case of not cleaning up a socket correctly (which is still 
bad, but not memory corruption).

Of note from the buildbot failure:
Assertion failed: (bp != NULL), function PyObject_Malloc, file 
Objects/obmalloc.c, line 746.
test test_multiprocessing failed -- errors occurred; run in verbose mode 
for details

I don't know enough about obmalloc.c to state if this is a problem with 
it not being multithreaded

Here's another failure (from my own buildbot to boot):

test_multiprocessing
/Users/buildbot/buildarea/trunk.noller-
osx86/build/Lib/multiprocessing/__init__.py:82: ImportWarning: Not 
importing directory '/Users/buildbot/buildarea/trunk.noller-
osx86/build/Modules/_multiprocessing': missing __init__.py
  import _multiprocessing
Fatal Python error: Objects/tupleobject.c:169 object at 0x539d538 has 
negative ref count -606348326
make: *** [buildbottest] Abort trap
program finished with exit code 2

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3334] 2to3 looses indentation on import fix

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Your patch works, so I applied it and added a test in sandbox r65137.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

I wrote that I'm unable to fix the bug correctly, but I wrote a patch 
to avoid the crash:
- replace begin by end in error messages: is it correct?
- use "end < 0 || len <= end" test to check scanstring() second 
argument => raise a ValueError if end value is invalid

--
keywords: +patch
Added file: http://bugs.python.org/file10947/_json.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2894] 2to3 discards comments before import statements

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Duplicate of #3334.

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3416] Wrong inherit in PickleHTMLBuilder

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Thanks, fixed in r65138.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2523] binary buffered reading is quadratic

2008-07-19 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

I don't understand the second loop (where n is given). If n is given,
there should be only a single read operation, using

  max(buffer_size, n-avail)

(i.e. the way it is in patch 2). In particular, if the stream is
unbuffered, it shouldn't ever end up with buffered data.

--
nosy: +loewis

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3384] Documentation for re.findall and re.finditer lacks "ordering" information

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Added info in r65139.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3359] add 'rbU' mode to open()

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

At least the 2.6 docs say

"The default is to use text mode, which may convert ``'\n'`` characters
to a platform-specific representation on writing and back on reading."

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3417] make the fix_dict fixer explicit

2008-07-19 Thread Benjamin Peterson

New submission from Benjamin Peterson <[EMAIL PROTECTED]>:

Can we make the part of fix_dict that converts d.items/values/keys to
list(d.items) explicit? Most of the time, it's fine if the method
returns a view and can be a bit of a performance hit to convert it to a
list.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 70031
nosy: benjamin.peterson, collinwinter
severity: normal
status: open
title: make the fix_dict fixer explicit
type: behavior

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3379] Option to not-exit on test

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Well, the results are displayed on stdout like they are if sys.exit is
used. As the first post explains, the use-case is running the tests from
an interactive interpreter.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2913] idlelib/EditorWindow.py uses xrange()

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Fixed in r65140.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3418] heavy resource usage with string functions

2008-07-19 Thread mgogoulos

New submission from mgogoulos <[EMAIL PROTECTED]>:

Not sure if this is a bug, however the following string functions when
called with very big numbers as the padding arguments consume great
system resources. My estimation is that it would help to exist a limit
on what can be specified as width.

Check (center, ljust, rjust, zfill)

eg.

import string
string.center('..', 2147483647)

Tested on python versions: 2.5.1 and 2.5.2

--
components: Library (Lib)
messages: 70034
nosy: mgogoulos
severity: normal
status: open
title: heavy resource usage with string functions
type: resource usage
versions: Python 2.5

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3417] make the fix_dict fixer explicit

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Rather, the list of special contexts in which it is ok to not use list()
should be extended.

--
nosy: +georg.brandl

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3417] make the fix_dict fixer smarter

2008-07-19 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Exactly! For example, if the .items call is in a for loop, list()
doesn't need to be called.

--
title: make the fix_dict fixer explicit -> make the fix_dict fixer smarter

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3418] heavy resource usage with string functions

2008-07-19 Thread Facundo Batista

Facundo Batista <[EMAIL PROTECTED]> added the comment:

The issue is that you're creating a string of 2GB. It's expectable that
it'll use a lot of resources.

Test this, for example: 

>>> a = "." * 2147483647

--
nosy: +facundobatista
resolution:  -> invalid
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3379] Option to not-exit on test

2008-07-19 Thread Barry A. Warsaw

Barry A. Warsaw <[EMAIL PROTECTED]> added the comment:

I still think a different method would be better for the no-exit
functionality.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3418] heavy resource usage with string functions

2008-07-19 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

As for the possibility of rejecting the request: Python should
absolutely not do so. If the user/applications wants to compute the
result, and the system has enough virtual memory, then Python should
provide the result.

If you want to limit how much memory Python can consume, use the
operating system's resource management functions (such as ulimit).

--
nosy: +loewis

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2008-07-19 Thread Guilherme Polo

Guilherme Polo <[EMAIL PROTECTED]> added the comment:

Actually, it could be the "detail" field too according to
http://www.tcl.tk/man/tcl8.5/TkCmd/bind.htm#M24
And this field may not exist, so I'm checking for that now.

New patch added.

Added file: http://bugs.python.org/file10948/event_generate__data2.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3113] Document exception chaining

2008-07-19 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Documented in r65144.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1697943] msgfmt cannot cope with BOM

2008-07-19 Thread Christoph Zwerschke

Christoph Zwerschke <[EMAIL PROTECTED]> added the comment:

Small improvement of the patch: Instead of hardcoding the BOM as
'\xef\xbb\xbf', we should use codecs.BOM_UTF8.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2008-07-19 Thread Guilherme Polo

Changes by Guilherme Polo <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file10934/event_generate__data.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
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-07-19 Thread Adam Olsen

Changes by Adam Olsen <[EMAIL PROTECTED]>:


--
nosy: +Rhamphoryncus

___
Python tracker <[EMAIL PROTECTED]>

___
___
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-07-19 Thread Fredrik Lundh

Fredrik Lundh <[EMAIL PROTECTED]> added the comment:

Reducing priority to normal; this bug has been around since Python 2.2,
and only affects code that doesn't work anyway when running on debug builds.

--
priority: critical -> normal

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3384] Documentation for re.findall and re.finditer lacks "ordering" information

2008-07-19 Thread Joshua Kugler

Joshua Kugler <[EMAIL PROTECTED]> added the comment:

That looks good.  Thanks!

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2951] ElementTree parsing bus error (but only from mod_python)

2008-07-19 Thread nicodotti

nicodotti <[EMAIL PROTECTED]> added the comment:

Thanks for logging this bug Kathy I had the same problem for 2 days! I
used the cElementTree as you mentioned and it worked fine

--
nosy: +nicodotti

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2951] ElementTree parsing bus error (but only from mod_python)

2008-07-19 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

This is probably a mod_python problem.

--
nosy: +benjamin.peterson

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2951] ElementTree parsing bus error (but only from mod_python)

2008-07-19 Thread Kathy Van Stone

Kathy Van Stone <[EMAIL PROTECTED]> added the comment:

Does ElementTree do anything unusual in importing? That is one area
where mod_python is different from standard python.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

python 2.6b1+, bdb 4.7.25 on x86 ubuntu linux.


% ../../../../python/trunk/python bsddb3/tests/test_replication.py -v
test01_basic_replication (__main__.DBReplicationManager) ... zsh:
segmentation fault  ../../../../python/trunk/python
bsddb3/tests/test_replication.py -v


% ../../../../python/trunk/python bsddb3/tests/test_replication.py -v
test01_basic_replication (__main__.DBReplicationManager) ... FAIL
test01_basic_replication (__main__.DBBaseReplication) ... ERROR
test02_test_request (__main__.DBBaseReplication) ... ERROR
test03_master_election (__main__.DBBaseReplication) ... ERROR

==
ERROR: test01_basic_replication (__main__.DBBaseReplication)
--
Traceback (most recent call last):
  File "bsddb3/tests/test_replication.py", line 228, in setUp
self.dbenvMaster.rep_set_transport(13,m2c)
AttributeError: rep_set_transport

==
ERROR: test02_test_request (__main__.DBBaseReplication)
--
Traceback (most recent call last):
  File "bsddb3/tests/test_replication.py", line 228, in setUp
self.dbenvMaster.rep_set_transport(13,m2c)
AttributeError: rep_set_transport

==
ERROR: test03_master_election (__main__.DBBaseReplication)
--
Traceback (most recent call last):
  File "bsddb3/tests/test_replication.py", line 228, in setUp
self.dbenvMaster.rep_set_transport(13,m2c)
AttributeError: rep_set_transport

==
FAIL: test01_basic_replication (__main__.DBReplicationManager)
--
Traceback (most recent call last):
  File "bsddb3/tests/test_replication.py", line 134, in
test01_basic_replication
self.assertTrue(time.time()

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

(that last comment was using pybsddb svn r529)

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

hmm.  nevermind.

those last results clearly used the wrong bsddb library.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3417] make the fix_dict fixer smarter

2008-07-19 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Here's a patch that doesn't add the enclosing list call in a for loop.

--
keywords: +patch
Added file: http://bugs.python.org/file10949/smarter_fix_dict.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3417] make the fix_dict fixer smarter

2008-07-19 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

for k in d.keys():
   return k   # needs to return a list

--
nosy: +rhettinger

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3419] multiprocessing module is racy

2008-07-19 Thread Ismail Donmez

New submission from Ismail Donmez <[EMAIL PROTECTED]>:

Tested on MacOSX 10.5.4, running test_multiprocessing in a tight loop :

[~/Sources/py3k]> while true;do ./python ./Lib/test/regrtest.py 
test_multiprocessing;done
test_multiprocessing
1 test OK.
test_multiprocessing
1 test OK.
test_multiprocessing
1 test OK.
test_multiprocessing
Process Process-48:
Traceback (most recent call last):
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/managers.py", 
line 720, in _callmethod
conn = self._tls.connection
AttributeError: 'ForkAwareLocal' object has no attribute 'connection'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/process.py", 
line 232, in _bootstrap
self.run()
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/process.py", 
line 88, in run
self._target(*self._args, **self._kwargs)
  File "/Users/cartman/Sources/py3k/Lib/test/test_multiprocessing.py", 
line 601, in f
cond.acquire()
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/managers.py", 
line 949, in acquire
return self._callmethod('acquire', (blocking,))
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/managers.py", 
line 724, in _callmethod
self._connect()
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/managers.py", 
line 711, in _connect
conn = self._Client(self._token.address, authkey=self._authkey)
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/connection.py", 
line 133, in Client
c = SocketClient(address)
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/connection.py", 
line 254, in SocketClient
s.connect(address)
socket.error: [Errno 61] Connection refused
Exception in thread Thread-58:
Traceback (most recent call last):
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/managers.py", 
line 720, in _callmethod
conn = self._tls.connection
AttributeError: 'ForkAwareLocal' object has no attribute 'connection'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/cartman/Sources/py3k/Lib/threading.py", line 492, in 
_bootstrap_inner
self.run()
  File "/Users/cartman/Sources/py3k/Lib/threading.py", line 447, in run
self._target(*self._args, **self._kwargs)
  File "/Users/cartman/Sources/py3k/Lib/test/test_multiprocessing.py", 
line 601, in f
cond.acquire()
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/managers.py", 
line 949, in acquire
return self._callmethod('acquire', (blocking,))
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/managers.py", 
line 724, in _callmethod
self._connect()
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/managers.py", 
line 711, in _connect
conn = self._Client(self._token.address, authkey=self._authkey)
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/connection.py", 
line 133, in Client
c = SocketClient(address)
  File "/Users/cartman/Sources/py3k/Lib/multiprocessing/connection.py", 
line 254, in SocketClient
s.connect(address)
socket.error: [Errno 61] Connection refused

--
components: Tests
messages: 70053
nosy: cartman
severity: normal
status: open
title: multiprocessing module is racy
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2960] bsddb/test/test_replication.py bus error, segfault, assertion error, pass

2008-07-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

Okay, now i've run the correct test suite on the correct modules with
pybsddb r530:

The problems still happen.  Sometimes it passes.  Other times it raises
an assertion error.

test01_basic_replication DBReplicationManger error:

File
"/home/greg/sandbox/pybsddb/trunk/build/lib.linux-i686-2.6-pydebug/bsddb3/tests/test_replication.py",
line 134, in test01_basic_replication
self.assertTrue(time.time()

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3120] subprocess module truncates handles on AMD64

2008-07-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

i believe this patch will fix it.  but i don't have a windows build
environment setup yet to even try it.

Exposing pointers to data structures as a number to Python is very gross
to begin with.  It'd be safer to define a tiny type to wrap them in.

Review at:  http://codereview.appspot.com/2608

--
keywords: +patch
Added file: 
http://bugs.python.org/file10950/windows-amd64-subprocess-handle-gps01.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3419] multiprocessing module is racy

2008-07-19 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

When running test_multiprocessing in a loop, I see:

test test_multiprocessing failed -- Traceback (most recent call last):
  File "/temp/python/trunk/Lib/test/test_multiprocessing.py", line 1157,
in test_remote
queue = manager2.get_queue()
  File "/temp/python/trunk/Lib/multiprocessing/managers.py", line 635,
in temp
authkey=self._authkey, exposed=exp
  File "/temp/python/trunk/Lib/multiprocessing/managers.py", line 887,
in AutoProxy
incref=incref)
  File "/temp/python/trunk/Lib/multiprocessing/managers.py", line 696,
in __init__
self._incref()
  File "/temp/python/trunk/Lib/multiprocessing/managers.py", line 743,
in _incref
dispatch(conn, None, 'incref', (self._id,))
  File "/temp/python/trunk/Lib/multiprocessing/managers.py", line 79, in
dispatch
raise convert_to_error(kind, result)
RemoteError: 
---
Traceback (most recent call last):
  File "/temp/python/trunk/Lib/multiprocessing/managers.py", line 181,
in handle_request
result = func(c, *args, **kwds)
  File "/temp/python/trunk/Lib/multiprocessing/managers.py", line 397,
in incref
self.id_to_refcount[ident] += 1
KeyError: '1033760'
---

--
assignee:  -> jnoller
nosy: +benjamin.peterson, jnoller

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread Bob Ippolito

Bob Ippolito <[EMAIL PROTECTED]> added the comment:

Am I to understand that the bug here is that the C extension doesn't
validate input properly if you call into it directly? Without a test I'm
not entirely sure exactly how you could possibly get negative values
into those functions using the json module as-is.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread Bob Ippolito

Bob Ippolito <[EMAIL PROTECTED]> added the comment:

I've audited the patch, while it does fix the input range it looks like
it regresses other things (at least the error messages). "begin" was
intentionally used. The patch is not suitable for use, I'll create a
minimal patch that just fixes input validation.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3322] bugs in scanstring_str() and scanstring_unicode() of _json module

2008-07-19 Thread Bob Ippolito

Bob Ippolito <[EMAIL PROTECTED]> added the comment:

I just committed a fix to trunk in r65147, needs port to py3k?

--
assignee: bob.ippolito -> georg.brandl

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3419] multiprocessing module is racy

2008-07-19 Thread Jesse Noller

Jesse Noller <[EMAIL PROTECTED]> added the comment:

This also happens under trunk

--
versions: +Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2620] Multiple buffer overflows in unicode processing

2008-07-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

diff up for review on http://codereview.appspot.com/2599

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3120] subprocess module truncates handles on AMD64

2008-07-19 Thread Gregory P. Smith

Changes by Gregory P. Smith <[EMAIL PROTECTED]>:


Added file: 
http://bugs.python.org/file10951/windows-amd64-subprocess-handle-gps02.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3120] subprocess module truncates handles on AMD64

2008-07-19 Thread Gregory P. Smith

Changes by Gregory P. Smith <[EMAIL PROTECTED]>:


Removed file: 
http://bugs.python.org/file10950/windows-amd64-subprocess-handle-gps01.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3120] subprocess module truncates handles on AMD64

2008-07-19 Thread Gregory P. Smith

Gregory P. Smith <[EMAIL PROTECTED]> added the comment:

fixed in trunk r65151 (in theory).

I don't have amd64 to test with.

Roger, would you please test an AMD64 build from that revision or later
to confirm that it is fixed?

Once confirmed, this should be backported to release25-maint.

--
keywords: +64bit, easy

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com