[issue2858] bsddb.db.DBEnv.lock_get test_lock.test03_set_timeout crashes

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: I submitted a patch from Neal Norwitz after jcea reviewed it to trunk as r63403. I'll take care of backporting it to release25-maint. -- assignee: jcea - gregory.p.smith versions: -Python 2.6 __

[issue2858] bsddb.db.DBEnv.lock_get test_lock.test03_set_timeout crashes

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: r63404 in release25-maint. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2858 __

[issue1275] bsddb closing a DB object before all DBCursors using it are closed crashes

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: This is fixed in trunk now that jcea has done his merge. If anyone wants it fixed in release25-maint it'll need a volunteer to backport just the bugfix parts without the bsddb 4.6.x feature additions. -- assignee: gregory.p.smith -

[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: does this still apply to the current test suite Jesus? -- assignee: gregory.p.smith - jcea __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1397 __

[issue1010645] bsddb3 testsuite failure when running more than one time

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: I believe this was finally cleaned up. There are still changes to be made to the current test suite (blindly using a directory under /tmp and not cleaning it up afterwards is bad) but the actual bug this refers to was fixed. --

[issue834461] simple bsddb interface potential for deadlock with threads

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: This bug was created to track my FIXME in the code. Nobody else has commented on it. I doubt its an issue worth fixing. It is a valid FIXME but I'm marking it as low priority and leaving it unassigned just to track the issue incase someone

[issue1391] Adds the .compact() method to bsddb db.DB objects

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: Jesus is the bsddb maintainer now. -- assignee: gregory.p.smith - jcea __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1391 __

[issue1215023] bsddb dbobj.DB.associate doesn't accept dbobj.DB param

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: I think the workaround proposed in my email in this bug is sufficient. Blindly letting associate work on python wrapped overridden objects such that the underlying library doesn't call into the wrapper could confuse people. --

[issue2587] PyString_FromStringAndSize() to be considered unsafe

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: the redundant asserts were removed. reclosing. further discussion on signedness issues in the code base should take place on the mailing list, future bugs or peps as appropriate. -- status: open - closed

[issue2632] performance problem in socket._fileobject.read

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: I'm going to let the committed change bake in Python trunk for a beta release or two before backporting it to release25-maint. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2632

[issue2381] test_subprocess fails if your sys.executable is on a path with a space in it

2008-05-17 Thread Gregory P. Smith
Gregory P. Smith [EMAIL PROTECTED] added the comment: fixed in trunk r63405 -- priority: - normal resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2381 __

[issue2896] cmathmodule.c compilation error

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: It would be a good thing to paste the exact error message from the compiler. -- nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2896 __

[issue2896] cmathmodule.c compilation error

2008-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Hello. This issue seems to be fixed by r63385. (alexandre.vassalotti's merge) -- nosy: +ocean-city __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2896 __

[issue2896] cmathmodule.c compilation error

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Ah, it wasn't merged yet. So this can be closed. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2896 __

[issue2898] Add memory footprint query

2008-05-17 Thread Robert Schuppenies
New submission from Robert Schuppenies [EMAIL PROTECTED]: I propose a patch which allows to query the memory footprint of an object. Calling 'footprint(o)', a python developer can retrieve the size of any python object. Only the size of the object itself will be returned, the size of any

[issue2898] Add memory footprint query

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Can't you write this as a simple Python function using type.__basicsize__ and type.__itemsize__? In any case, if this is added somewhere it should not be a builtin. This operation is nowhere near the usefulness to be one. -- nosy:

[issue2898] Add memory footprint query

2008-05-17 Thread Robert Schuppenies
Robert Schuppenies [EMAIL PROTECTED] added the comment: Can't you write this as a simple Python function using type.__basicsize__ and type.__itemsize__? Yes, it would be possible and has been done, e.g. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/546530. The problem is though,

[issue2898] Add memory footprint query

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Such implementation-specific things usually went into the sys module. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2898 __

[issue2899] Fixes find, rfind, etc in 'string' module

2008-05-17 Thread Haoyu Bai
New submission from Haoyu Bai [EMAIL PROTECTED]: Functions like find() rfind() index() rindex() has been removed in Python 3.0. So there should be a 2to3 fix for it. Eg. fix if string.find(s, hello) = 0: to if str.find(s, hello) = 0: Thank you! -- assignee: collinwinter

[issue2898] Add memory footprint query

2008-05-17 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: It's actually not possible, in general, to compute the memory consumption of an object using basicsize and itemsize. An example is the dictionary, where there is no way to find out how many slots are currently allocated. Even for the things

[issue2898] Add memory footprint query

2008-05-17 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Proposals like this have been rejected in the past. Memory consumption is an evasive concept. Lists over-allocate space, there are freelists, there are immortal objects, the python memory allocator may hang-on to space thought to be

[issue2898] Add memory footprint query

2008-05-17 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Proposals like this have been rejected in the past. Memory consumption is an evasive concept. Lists over-allocate space That issue is addressed in this patch. there are freelists, but they allocate just an upper bound. there are

[issue2900] math.copysign(1, float('nan'))

2008-05-17 Thread Christian Heimes
New submission from Christian Heimes [EMAIL PROTECTED]: What's your opinion on the edge case math.copysign(1, float('nan')) 1.0 Is 1.0 the correct answer? IMHO Nan would be better ... -- assignee: marketdickinson components: Extension Modules messages: 66997 nosy: christian.heimes,

[issue2900] math.copysign(1, float('nan'))

2008-05-17 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: This is fine. copysign isn't supposed to propagate NaNs---it's just supposed to silently transfer the sign bit from the second argument to the first. So I think this is correct behaviour. Incidentally, on OS X: from math import copysign

[issue2839] Moving lib-tk to tkinter package

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Committed modmerge patch in r63408. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2839 __ ___ Python-bugs-list mailing list

[issue1362475] Text.edit_modified() doesn't work

2008-05-17 Thread Matthias Kievernagel
Matthias Kievernagel [EMAIL PROTECTED] added the comment: Hi Guilherme, funny, I wasn't aware of this duplicate of this issue until I got the message of your comment :) The other duplicate is: http://bugs.python.org/issue1643641 which was closed by Georg Brandl upon my request. The oldest

[issue1362475] Text.edit_modified() doesn't work

2008-05-17 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Closed as this is yet another duplicate. -- resolution: - duplicate status: open - closed superseder: - Text.edit_modified() fails _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1362475

[issue2868] Problem with urllib and urllib2 in urlopen?

2008-05-17 Thread Martin McNickle
Martin McNickle [EMAIL PROTECTED] added the comment: I verified the behaviour but this is a problem with that particular site, not with urllib/urllib2. Should be closed. -- nosy: +BitTorment __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2868

[issue961805] Text.edit_modified() fails

2008-05-17 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: From issue 1362475: This bug still exists, I'm attaching a patch against current python-trunk. This patch is based on the fact that documentation tk 8.4 (version which edit command was added) and tk 8.5 says only edit_modified is supposed to

[issue837234] Tk.quit and sys.exit cause Fatal Error

2008-05-17 Thread Matthias Kievernagel
Matthias Kievernagel [EMAIL PROTECTED] added the comment: Hi, found a related (duplicate ?) issue which mentions a platform and has code producing the error: http://bugs.python.org/issue775544 Can someone based on WinXP try the code? Attaching it here for easier reference. Works without

[issue2819] Full precision summation

2008-05-17 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Okay, just to show it's possible: Here (msum4.py) is a modified version of Raymond's recipe that deals correctly with: (1) intermediate overflows (2) special values (infs and nans) in the input, and (3) always gives correctly rounded

[issue2868] Problem with urllib and urllib2 in urlopen?

2008-05-17 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: - invalid status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2868 __ ___

[issue2899] Fixers find, rfind, etc in 'string' module

2008-05-17 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- title: Fixes find, rfind, etc in 'string' module - Fixers find, rfind, etc in 'string' module __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2899 __

[issue961805] Text.edit_modified() fails

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: OK, committed patch as r63412. -- nosy: +georg.brandl resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue961805

[issue2337] Backport oct() and hex() to use __index__

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: The warning message for oct() should include that the output will be different too. Else this is fine with me. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2337 __

[issue2898] Add memory footprint query

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Lists will need a custom tp_footprint then, too. Or, if we call it sizeof, the slot should be tp_sizeof. BTW, is a new slot necessary, or can it just be a type method called __sizeof__? __ Tracker [EMAIL

[issue2839] Moving lib-tk to tkinter package

2008-05-17 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: Patch added for handling the merging of tkSimpleDialog into tkinter.simpledialog and tkFileDialog into tkinter.filedialog, specific for py3k. Added file: http://bugs.python.org/file10358/tkinter_modmerge_py3k.diff

[issue2898] Add memory footprint query

2008-05-17 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Lists will need a custom tp_footprint then, too. True. BTW, is a new slot necessary, or can it just be a type method called __sizeof__? It wouldn't be a type method, but a regular method on the specific type, right? I think that would

[issue2839] Moving lib-tk to tkinter package

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Handled Py3k branch in revs 63417 to 63423. Closing this issue. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2839

[issue2337] Backport oct() and hex() to use __index__

2008-05-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Done in r63425. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2337 __

[issue2349] Py3K warn against assigning to True/False

2008-05-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I'm attaching a new patch with changes made from the Georg's comments. Added file: http://bugs.python.org/file10359/bool_assign6.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2349

[issue2337] Backport oct() and hex() to use __index__

2008-05-17 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I have reverted this. See mail.python.org/pipermail/python-checkins/2008-May/069843.html. -- resolution: fixed - status: closed - pending __ Tracker [EMAIL PROTECTED]

[issue2337] Backport oct() and hex() to use __index__

2008-05-17 Thread Eric Smith
Changes by Eric Smith [EMAIL PROTECTED]: -- nosy: +eric.smith __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2337 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2898] Add memory footprint query

2008-05-17 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Guido, recently you've been opposed to adding more slots. Any opinions on this one? Also, is this something you want an additional builtin for? -- assignee: - gvanrossum nosy: +gvanrossum __

[issue2353] Use of file.xreadlines() should raise a Py3K warning

2008-05-17 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Committed slightly reviewed patch and test in r63340. -- nosy: +georg.brandl resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2353

[issue2901] error: can't allocate region from mmap() when receiving big chunk of data

2008-05-17 Thread Håkan Waara
Håkan Waara [EMAIL PROTECTED] added the comment: test_server.py and test_client.py zipped attached. Added file: http://bugs.python.org/file10360/testcase.zip __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2901 __

[issue2901] error: can't allocate region from mmap() when receiving big chunk of data

2008-05-17 Thread Håkan Waara
New submission from Håkan Waara [EMAIL PROTECTED]: I'm using the standard lib SimpleXMLRPCServer to receive a file from a client. The file is sent using an instance of the xmlrpclib.Binary class. Whenever the file is bigger than a few MB, the server reports spews out an internal error to

[issue2901] error: can't allocate region from mmap() when receiving big chunk of data

2008-05-17 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- type: - crash __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2901 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2902] tkinter uses MacOS

2008-05-17 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: A few days ago I removed the MacOS module. I didn't realize that it was used in Tkinter until today. It seems the module is only used in one spot: if _MacOS and hasattr(_MacOS, 'SchedParams'): # Disable event scanning

[issue2819] Full precision summation

2008-05-17 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: I intend to submit a C version of msum4 shortly. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 __ ___ Python-bugs-list

[issue2903] Add __name__ in globals of generated namedtuple namespace

2008-05-17 Thread Guillaume Knispel
New submission from Guillaume Knispel [EMAIL PROTECTED]: Some 3rd party tracers rely on frame.f_globals[__name__] to be set to the module name that contains the code currently executed. frame.f_globals[__name__] is not defined when some code has been generated with exec, which is the way

[issue2904] Cross-referencing to a method using an alternate title don't work with add_function_parentheses=True

2008-05-17 Thread Leandro Lucarella
New submission from Leandro Lucarella [EMAIL PROTECTED]: When using cross-references to a method using an alternate title, like :meth:`some title some_method` and configuration option add_function_parentheses is True, the link is not generated (if this option is False, it works fine. --