[issue4074] Building a list of tuples has non-linear performance

2008-10-07 Thread Gregory P. Smith
New submission from Gregory P. Smith <[EMAIL PROTECTED]>: The attached script simply loops building a list of tuples. It has horrible performance as the list gets larger compared to something appending simple objects like ints to the list. % python tuple_gc_h

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: I like that this patch adds a new method with the different behavior. They are both distinct and desirable behaviors. The existing behavior has already been shipped in Python 3.1 so it should not change. Also it is already in use via the http

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-01 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +michael.foord ___ Python tracker <http://bugs.python.org/issue7832> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1683368] object.__init__ shouldn't allow args/kwds

2010-02-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: FYI - A discussion on why this change may have been a bad idea and breaks peoples existing code: http://freshfoo.com/blog/object__init__takes_no_parameters -- nosy: +gregory.p.smith ___ Python tracker <h

[issue7242] Forking in a thread raises RuntimeError

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Using issue7242-gps01.diff on release26-maint and a freshly downloaded opensolaris 2009-06 VM test_thread, test_threading and test_subprocess all pass for me both before -and- after the patch. Nor does the original thread_test.py cause the problem for me

[issue7242] Forking in a thread raises RuntimeError

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: If you have a chance tonight that'd be awesome. I'd love to get this in before 2.6.5rc1 (being cut tomorrow) but as its platform specific (and a pretty-old platform at that) its not worth holding up t

[issue7481] Failing to start a thread leaves "zombie" thread in "initial" state

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r78517 and release26-maint r78518. still needs merging into py3k and release31-maint -- resolution: -> accepted ___ Python tracker <http://bugs.python.org/iss

[issue7481] Failing to start a thread leaves "zombie" thread in "initial" state

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: r78519 r78520 for py3k and 3.1. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue7481> ___ ___ Py

[issue7245] better Ctrl-C support in pdb (program can be resumed) (issue216067)

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: Reviewers: gregory.p.smith, Benjamin, ilya.sandler, Message: Also, can you take a look at how the pdb unittests work and see if you can come up with a way to unittest the KeyboardInterrupt behavior? Particular for the 4 scenarios you outlined in your prior

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw - The documentation was updated in trunk, py3k and release31-maint to mention this behavior of assertSameElements. Assigning to Michael for a decision on whether or not to add to the API. python-unittest-backport has since been supplanted by Michael&#

[issue3892] bsddb: test01_basic_replication fails sometimes

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: r.david.murray - sounds like a good idea. -- ___ Python tracker <http://bugs.python.org/issue3892> ___ ___ Python-bugs-list m

[issue8032] Add gdb7 hooks to make it easier to debug Python

2010-02-28 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith priority: -> normal ___ Python tracker <http://bugs.python.org/issue8032> ___ ___ Python-bugs-list mai

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: In PC/pyconfig.h we #define Py_WINVER to _WIN32_WINNT_WIN2K (0x500) for 32bit builds. I think we should update this to _WIN32_WINNT_WINXP (0x501) for all builds, not just 64bit. Assigning to loewis as he does our windows release builds so likely knows

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2010-02-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: "extended support" for windows 2000 server ends in a few months, mainstream support ended 5 years ago: http://support.microsoft.com/lifecycle/?LN=en-us&x=8&y=9&p1=7274 That, IMNSHO, implies that python 2.7 and 3.2 should not bo

[issue8045] test_tcl aborts on OS X 10.6 with "The application with bundle ID org.python.python is running setugid(), which is not allowed."

2010-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Just disabling those two tests is the best thing for the 2.6.5 release if we don't get around to the actual fix: Since calling setreuid(-1, -1) is apparently not such a no-op on all systems these tests would be better if we ran them in a subprocess so

[issue8053] test_thread fails on Windows

2010-03-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: right that logic is inverted. my bad. its fine in trunk already as it uses @unittest.skipIf there. that decorator doesn't exist in 2.6. fixed in r78659 -- resolution: -> fixed status: open -

[issue8073] Test fail for sha512

2010-03-05 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith -gps ___ Python tracker <http://bugs.python.org/issue8073> ___ ___ Python-

[issue8045] test_tcl aborts on OS X 10.6 with "The application with bundle ID org.python.python is running setugid(), which is not allowed."

2010-03-05 Thread Gregory P. Smith
Gregory P. Smith added the comment: See trunk r78718 for my proposed fix. -- ___ Python tracker <http://bugs.python.org/issue8045> ___ ___ Python-bugs-list mailin

[issue8045] test_tcl aborts on OS X 10.6 with "The application with bundle ID org.python.python is running setugid(), which is not allowed."

2010-03-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: merged into release26-maint r78754. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue1731717] race condition in subprocess module

2010-03-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I really don't care about the age of a bug. This bug is young. I've fixed many bugs over twice its age in the past. Regardless, I've got some serious subprocess internal refactoring changes coming in the very near future to explicitly d

[issue7832] assertSameElements([0, 1, 1], [0, 0, 1]) does not fail

2010-03-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Looking through the thousands of uses of assertSameElements in our internal code base at work I see many uses of it that are likely not hashable items in the sequences being compared. The largest use of course is with lists and tuples of hashables where

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2010-03-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: A restore_signals parameter was added in py3k r78946. I'm leaving this issue open as it needs backporting to 2.7. -- versions: -Python 3.2 ___ Python tracker <http://bugs.python.org/i

[issue8173] test_subprocess leaks

2010-03-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: Pretty sure I know off the top of my head what this is. Ill fix it. -- Added file: http://bugs.python.org/file16578/unnamed ___ Python tracker <http://bugs.python.org/issue8

[issue8173] test_subprocess leaks

2010-03-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: py3k r79097 -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue8173> ___ __

[issue3783] dbm.sqlite proof of concept

2010-03-21 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <http://bugs.python.org/issue3783> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8246] test_signal in test_subprocess displays traceback

2010-03-27 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue8246> ___ ___ Python-

[issue7978] SocketServer doesn't handle syscall interruption

2010-04-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: wrapping select in an eintr handler that loops like SocketServer_eintr.diff is fine. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/iss

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-04-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: i don't see your attachment brett. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue5099> ___ ___

[issue8513] subprocess: support bytes program name

2010-04-23 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue8513> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: Nice dabeaz. One potential concern with "dabeaz_gil.patch 2010-04-25 21:13" is that it appears to always leave the gil_monitor thread running. This is bad on mobile/embedded platforms where waking up at regular intervals prevents advanced sl

[issue8532] Refinements to Python 3 New GIL

2010-04-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: since the other discussion is ongoing on issue7946 i posted my comment there. -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue8

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-04-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: i'm +0.7 on fsencode/fsdecode going into os.path. My bikeshed 0.7? They're also useful for dealing with environment variables which are not strictly filesystem (fs) related but also suffer from the same issue requiring surrogate escape. But

[issue8571] zlib causes a SystemError when decompressing a chunk >1GB

2010-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: in the unittests there is some use of 'compress' and 'decompress' mixed with 'zlib.decompress'. which one is right (i'm only looking at the diff so i can't see if they were imported from zlib or if the zlib. is requi

[issue8513] subprocess: support bytes program name (POSIX)

2010-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think your partA patch makes sense. It would benefit from fsencode/fsdecode functions rather than manually doing the 'surrogateescape' thing everywhere. Also, could you add a unittest for os._execvpe to test it

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-05-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: +.. function:: fsencode(value) + + Encode *value* to bytes for use in the file system, environment variables or + the command line. Use :func:`sys.getfilesystemencoding` and + ``'surrogateescape'`` error handler for str, and keep bytes uncha

[issue8513] subprocess: support bytes program name (POSIX)

2010-05-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Build on the os._execvpe unittest I added in py3k r81001. Protected functions are perfectly fine things to unittest. -- ___ Python tracker <http://bugs.python.org/issue8

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-05-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think your patch looks good Brett. -- ___ Python tracker <http://bugs.python.org/issue5099> ___ ___ Python-bugs-list mailin

[issue7245] better Ctrl-C support in pdb (program can be resumed) (issue216067)

2010-05-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Committed to trunk in r81012. though as this missed 2.7beta2 its possible that will be rejected and this becomes a 3.x only feature. I'm porting to py3k now. -- versions: +Python 3.2 ___ Python tracker

[issue7245] better Ctrl-C support in pdb (program can be resumed) (issue216067)

2010-05-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: And reverted in trunk r81013. Multiple buildbot problems from the initial commit due to the unittest. This is likely to be py3k only at this point. I do believe sig.patch.v3 is fine, but its the test_pdb2 unittest that is difficult to make work well

[issue8513] subprocess: support bytes program name (POSIX)

2010-05-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: my bad. hopefully r81019 fixes that. -- ___ Python tracker <http://bugs.python.org/issue8513> ___ ___ Python-bugs-list mailin

[issue1397] mysteriously failing test_bsddb3 threading test in other threads

2010-05-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: bsddb3 isn't in py3k. -- priority: high -> normal versions: -Python 2.5, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.or

[issue8681] Make the zlib module emit more detailed error messages

2010-05-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: zliberrors.patch looks good to me. On Mon, May 10, 2010 at 3:37 PM, Antoine Pitrou wrote: > > New submission from Antoine Pitrou : > > This is a patch to use our own error descriptions when the zlib doesn't > provide anything in parti

[issue8672] Error decompressing valid zlib data

2010-05-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: patch looks good. -- ___ Python tracker <http://bugs.python.org/issue8672> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6610] Subprocess descriptor debacle

2010-05-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the test! I'll take a look and likely commit this later. -- assignee: -> gregory.p.smith ___ Python tracker <http://bugs.python.or

[issue8706] accept keyword arguments on all base type methods and builtins

2010-05-13 Thread Gregory P. Smith
New submission from Gregory P. Smith : C Python has a real wart in that standard types and library functions that are implemented in C do not always accept keyword arguments: >>> 'xx'.find('xx', 4) 4 >>> 'xx'.find('xx', start=4

[issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints

2007-12-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: "There is still another possible leak if the PyMem_Realloc return NULL (i.e., the system is out of memory), but I don't think it worth fixing." Do it. It looks easy: a Py_DECREF(it) before the return

[issue1283] PyBytes (buffer) .extend method needs to accept any iterable of ints

2007-12-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: reading 5.patch over... Any particular reason for using buf_size = 32 when the length isn't known up front? add a comment saying why (or that its just a magic guess). anyways it sounds like a fine starting value. picking anything "better"

[issue1621] Python should compile with -Wstrict-overflow when using gcc

2007-12-13 Thread Gregory P. Smith
New submission from Gregory P. Smith: The resolution to http://bugs.python.org/issue1608 looks like it'll add a -fwrapv gcc flag when building python. This works around the issue nicely on one compiler (gcc) but doesn't fix our fundamentally broken code. We should fix all depen

[issue1608] test_str.py crashes

2007-12-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: """code that has been audited and fixed in the past will again be vulnerable.""" That code wasn't properly audited or fixed if it depended on integer overflow behavior. Anyways, I'm glad we have the flag to disable

[issue1621] Do not assume signed integer overflow behavior

2007-12-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: heh if thats the only warning gcc -Wstrict-overflow gives then I've mistitled the bug. Fixed. It'll take some manual code review. Anyone know if the commercial analysis tools we've run the code base through in the past can fi

[issue1799] Per user site-packages and setup.py install --user patch

2008-01-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: nice. ping a mac developer for what to do with the darwin stuff that you commented out. It'd also be nice to have unit tests for the new behavior. Though i don't think we have many (any?) of that type of regression test right now. Such a test wou

[issue1731717] race condition in subprocess module

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: +gregory.p.smith _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1731717> _ ___ Python-bugs-list

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: +gregory.p.smith __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1336> __ ___ Python-bugs-list mailing list Unsubs

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: The uploaded file appears to be derives from Python 2.4.1 (tags/r241). i've uploaded an actual diff between the two. regardless, Thomas's point about disabling it -before- the fork() is true. Added file: http://bugs.python.org/file9186/di

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I've just attached a diff against trunk that I believe fixes this (based off of jba's patch). Unit tests pass but that doesn't say a whole lot given that this is a hard to reproduce timing/scheduling related bug. Would someone please

[issue1736792] dict reentrant/threading bug

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: +gregory.p.smith _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1736792> _ ___ Python-bugs-list

[issue1703448] "t.join(); assert t not in threading.enumerate()" fails

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: +gregory.p.smith _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1703448> _ ___ Python-bugs-list

[issue1596321] KeyError at exit after 'import threading' in other thread

2008-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: threadingbug.py doesn't fail for me on trunk (linux), anyone else? the output I get is always: Main thread ID: -134346528 Secondary thread ID: -135349328 Exception KeyError: KeyError(-134346528,) in ignored -- nosy: +gregory.p.

[issue1404925] subprocess.Popen inside thread locks the thread in some case

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: +gregory.p.smith _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1404925> _ ___ Python-bugs-list

[issue595601] file (& socket) I/O are not thread safe

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: +gregory.p.smith Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue595601> ___ Python-bugs-list mailing list

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2008-01-16 Thread Gregory P. Smith
New submission from Gregory P. Smith: This probably applies to 3.0 as well but i have not tested it there. Here are some sample failures: === A == Exception in thread Thread-01 (most likely raised during interpreter shutdown):Exception in thread Thread-03

[issue1339] smtplib starttls() should ehlo() if it needs to

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: +gregory.p.smith __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1339> __ ___ Python-bugs-list mailing list Unsubs

[issue829951] Fixes smtplib starttls HELO errors

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- nosy: +gregory.p.smith Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue829951> ___ Python-bugs-list mailing list

[issue829951] Fixes smtplib starttls HELO errors

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- assignee: -> gregory.p.smith Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue829951> ___ Python-bugs-li

[issue1339] smtplib starttls() should ehlo() if it needs to

2008-01-16 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- assignee: -> gregory.p.smith __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1339> __ ___ Python-bugs-list mailing li

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2008-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yes i believe it is unrelated to any recent change. I can reproduce both behaviors on my OS X 10.4 dual core mac using Python 2.5.1. Python 2.3 on the mac appears to get stuck in a loop when run stand alone but gets a memory access fault when run under gdb

[issue829951] Fixes smtplib starttls HELO errors

2008-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed in trunk (2.6) r60015. -- resolution: -> accepted status: open -> closed versions: +Python 2.5, Python 2.6 Tracker <[EMAIL PROTECTED]> <http://bugs.python.

[issue829951] Fixes smtplib starttls HELO errors

2008-01-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: and in r60017 on release25-maint for inclusion in 2.5.2. Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue829951> ___

[issue1339] smtplib starttls() should ehlo() if it needs to

2008-01-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Accepted and applied, with appropriate documentation updates. In svn trunk r60020 for 2.6. -- resolution: -> accepted status: open -> closed versions: +Python 2.5, Python 2.6 __ Tracker <[EMAIL PROTECTE

[issue1596321] KeyError at exit after 'import threading' in other thread

2008-01-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: gah, sorry i misread the report. you are correct. -- versions: +Python 2.4, Python 2.5, Python 2.6 _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2008-01-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: agreed, during shutdown the other threads should be stopped. anything to do this complicates acquiring and releasing the GIL by adding another check to see if we're shutting down. brainstorm: I haven't looked at the existing BEGIN_ALLOW_T

[issue1035] bytes buffer API needs to support read locking and/or PyBUF_LOCKDATA

2008-01-19 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- status: pending -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1035> __ ___ Python-bugs-list mailing li

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r60104. i'm backporting it to 2.5 and 2.4. -- resolution: -> fixed versions: +Python 2.5, Python 2.6 __ Tracker <[EMAIL PROTECTED]> <http://bugs.pyt

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: r60111 undid part of r60104 that added an unnecessary else and indentation. svn diff -r60103:60111 of Lib/subprocess.py is a nice clean patch. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2008-01-19 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- assignee: -> gregory.p.smith keywords: +easy nosy: +gregory.p.smith __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r60115 (2.6). -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: r60113 in release25-maint, r60114 in release24-maint. -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1189216] zipfile module and 2G boundary

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: fixed in trunk r60116 (2.6). and release25-maint r60117 (2.5.2). -- resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: The issue here was that reading more data than will fit into an in memory string fails. While the zipfile module could detect this in some cases, it is not really worth such a runtime check. This is just a fact of python and of sane programming, if you&#x

[issue1003] zipfile password fails validation

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: this failure also occurs on simple zip files created using infozip's zip with -e to "encrypt" the contents. debugging... __ Tracker <[EMAIL PROTECTED]> <http://b

[issue1003] zipfile password fails validation

2008-01-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed in r60121 (2.6). zip file decryption "check" bytes were more complicated than the existing code supported. Algorithm updated. -- resolution: -> fixed status: open -> closed versions: +Python

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

2008-01-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: a code snipped using a database d that demonstrates this: c = d.cursor() d.close() print >>sys.stderr, "database closed before cursor" del c print >>sys.stderr, "cursor deleted and we didn't crash!&q

[issue1703448] "t.join(); assert t not in threading.enumerate()" fails

2008-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: why not just do this? finally: with _active_limbo_lock: self.__stop() try: self.__delete() except: pass (i believe with works on locks? if not turn that into an acquire, try

[issue1221598] ftplib storbinary/storlines callback function

2008-01-21 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- assignee: -> gregory.p.smith nosy: +gregory.p.smith _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1221598> _

[issue1221598] ftplib storbinary/storlines callback function

2008-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: accepted, committed as svn r60188 for 2.6. I also cleaned up the retr* and stor* doc strings. -- resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1703448] "t.join(); assert t not in threading.enumerate()" fails

2008-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: Looks good. Fixed in r60190 (2.6). And r60191 for release25-maint (2.5.2). -- assignee: gvanrossum -> gregory.p.smith keywords: +patch resolution: -> fixed status: open -> closed _ Tracker <[EMA

[issue1336] subprocess.Popen hangs when child writes to stderr

2008-01-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: oh, whoops. not a security issue. should i undo it or let Martin? __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1336> __ __

[issue1221598] ftplib storbinary/storlines callback function

2008-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks. applied (well, they will be when svn.python.org comes back) On 1/22/08, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote: > > > Giampaolo Rodola' added the comment: > > Could I propose the following docstring cor

[issue1571754] Building using Sleepycat db 4.5.20 is broken

2008-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: 4.5 support was put in a while back -- nosy: +gregory.p.smith resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue1541671] bsddb can't use unicode filenames

2008-01-22 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- priority: normal -> low resolution: -> wont fix status: open -> closed _ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1516078] dbhash __len__ not reliable

2008-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: Works for me in 2.5 and 2.4 isn't getting bug fixes anymore. >>> import dbhash >>> d = dbhash.open('x.db', 'w') >>> d['e'] = 'Eee' &g

[issue1191] bsddb does not build with bsddb lib v3.1.

2008-01-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: BerkeleyDB 3.3 through 4.5 are supported. 4.6 support has been checked in and 4.7 (not yet released) support is supposedly on its way from someone at oracle. Versions older than 3.3 are too difficult (and too buggy) to support. You're on your own i

[issue730938] Python bsddb docs need update

2008-01-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: ReST format docs that cover what is actually implemented and wrapped in python would be good. We need a volunteer willing to go through and do it. -- assignee: gregory.p.smith -> nosy: +jcea title: Python 2.3 bsddb docs need update -> Python

[issue1202] zlib.crc32() and adler32() return value

2008-01-23 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- assignee: -> gregory.p.smith keywords: +64bit, easy nosy: +gregory.p.smith priority: -> normal versions: +Python 2.6, Python 3.0 __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue1223] httplib does not handle ssl end of file properly

2008-01-23 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- assignee: -> janssen __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1223> __ ___ Python-bugs-list mailing list Uns

[issue1789] incorrect assumption about unsigned long byte size

2008-01-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: the docs I see in the URL you give are correct as it states 'two and four byte unsigned integer respectively' for H and L. However the example is missing the < for little-endian; I'll add that. Also, I notice that the struct module do

[issue1789] incorrect assumption about unsigned long byte size

2008-01-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: eew, so the struct module does map as documented to the C types listed in the docs. yuck. regardless, changing the Ls to Is will fix the tutorial document code. I'll do that. I believe there are also other instances of wrong uses of L in struct in the

[issue1789] incorrect assumption about unsigned long byte size

2008-01-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: The documentation for the struct module says: "short is 2 bytes; int and long are 4 bytes; long long (__int64 on Windows) is 8 bytes" and lists 'l' and 'L' as the pack code for a C long. As it is implemented today, the docu

[issue1789] assumption about unsigned long byte size in struct module usage

2008-01-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: A significant portion of the python standard library is broken due to incorrect use of the struct module on LP64 platforms. I'm attaching a patch that should clean it up. I need Mac OS X people to confirm that the Mac changes are sane. Its possible tha

[issue1789] assumption about unsigned long byte size in struct module usage

2008-01-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Anders J. Munch on python-dev correctly says: You overlooked the words "Standard size and alignment are as follows" that start the quoted paragraph. It's a little confusing because standard size is not the default. The default is platform

<    1   2   3   4   5   6   7   8   9   10   >