[issue2240] setitimer, getitimer wrapper

2009-04-08 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg added the comment: Closing this issue as the main functionality is committed. See issue 5722 for follow-up regarding FreeBSD functionality. -- nosy: +tleeuwenb...@gmail.com status: open -> closed ___ Python tracker

[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9623/setitimer_getitimer_wrapper_test.diff __ Tracker <[EMAIL PROTECTED]> __ __

[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9620/setitimer_getitimer_wrapper_doc.diff __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9622/setitimer_getitimer_wrapper_doc_update.diff __ Tracker <[EMAIL PROTECTED]> __

[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9619/setitimer_getitimer_wrapper_fixes.diff __ Tracker <[EMAIL PROTECTED]> __ _

[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9615/setitimer_getitimer_wrapper_rename.diff __ Tracker <[EMAIL PROTECTED]> __

[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9613/setitimer_getitimer_wrapper.diff __ Tracker <[EMAIL PROTECTED]> __

[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo
Changes by Guilherme Polo <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file9611/py-itimer-0.1.2.tar.gz __ Tracker <[EMAIL PROTECTED]> __ __

[issue2240] setitimer, getitimer wrapper

2008-04-10 Thread Trent Nelson
Changes by Trent Nelson <[EMAIL PROTECTED]>: -- nosy: +Trent.Nelson __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubsc

[issue2240] setitimer, getitimer wrapper

2008-04-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > Should further discussion be moved to python-dev ? I'm somewhat stuck on > how to resolve this, besides saying to upgrade to FreeBSD 7 which uses > libthr by default. Discussing on python-dev is fine. An acceptable solution would be to omi

[issue2240] setitimer, getitimer wrapper

2008-04-07 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: Trent Nelson kindly gave me access to his FreeBSD 6.2 buildbot so I had chance to do some tests. The problem happens when Python is built against or libc_r, or if you are using libmap you won't need to recompile but the problem still happens w

[issue2240] setitimer, getitimer wrapper

2008-04-05 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: FreeBSD's man page for setitimer/getitimer doesn't look different from the one in Linux. But.. both tests assumes the computer is not so fast that it finishes "for i in xrange(1)" before the timer expire, maybe it was not the case in

[issue2240] setitimer, getitimer wrapper

2008-04-05 Thread Guilherme Polo
Guilherme Polo <[EMAIL PROTECTED]> added the comment: I'm investigating the problem loewis, thanks for reporting. But it would be better if someone with running FreeBSD could help me there, in case I find the cause for this. Also some changes were made to the original patch: neal.norwitz did a

[issue2240] setitimer, getitimer wrapper

2008-04-05 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Reopening. Apparently, the tests fail on FreeBSD; see http://www.python.org/dev/buildbot/trunk/x86%20FreeBSD%203%20trunk/builds/77/step-test/0 Can you please look into this? -- status: closed -> open __

[issue2240] setitimer, getitimer wrapper

2008-03-24 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Thanks for the patch. Committed as r61847 and r61848 -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue2240] setitimer, getitimer wrapper

2008-03-10 Thread Ralf Schmitt
Changes by Ralf Schmitt <[EMAIL PROTECTED]>: -- versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue2240] setitimer, getitimer wrapper

2008-03-10 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: Okay, the patch applies just fine (besides configure, which must be regenerated). Running the tests however consumes 3 gb of memory. The range functions must be changed to xrange on trunk. I've also changed the docs a bit ("new in 2.6"). I didn'

[issue2240] setitimer, getitimer wrapper

2008-03-08 Thread Guilherme Polo
Guilherme Polo added the comment: If you are going to backport it to 2.6, then the C wrapper should be adapted to match Python 2.x C coding style. If the other parts don't apply correctly, then you should update it aswell. __ Tracker <[EMAIL PROTECTED]>

[issue2240] setitimer, getitimer wrapper

2008-03-08 Thread Ralf Schmitt
Ralf Schmitt added the comment: I'd like to also see this in 2.6. Should I update the patch (if it doesn't apply) and test? (I guess the signal module hasn't changed that much). __ Tracker <[EMAIL PROTECTED]>

[issue2240] setitimer, getitimer wrapper

2008-03-08 Thread Guilherme Polo
Guilherme Polo added the comment: Complete patch attached Added file: http://bugs.python.org/file9636/setitimer_getitimer.diff __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2240] setitimer, getitimer wrapper

2008-03-08 Thread Georg Brandl
Georg Brandl added the comment: Could you please put all changes in one complete patch? It's much easier to review that way. -- assignee: -> loewis __ Tracker <[EMAIL PROTECTED]> __ _

[issue2240] setitimer, getitimer wrapper

2008-03-07 Thread Ralf Schmitt
Changes by Ralf Schmitt: -- nosy: +schmir __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Guilherme Polo added the comment: I've done some tests for getitimer/setitimer, diff is attached. Added file: http://bugs.python.org/file9623/setitimer_getitimer_wrapper_test.diff __ Tracker <[EMAIL PROTECTED]>

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Changes by Guilherme Polo: Added file: http://bugs.python.org/file9622/setitimer_getitimer_wrapper_doc_update.diff __ Tracker <[EMAIL PROTECTED]> __ __

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Guilherme Polo added the comment: Updated Doc/library/signal.rst, follows a patch. Added file: http://bugs.python.org/file9620/setitimer_getitimer_wrapper_doc.diff __ Tracker <[EMAIL PROTECTED]> _

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Guilherme Polo added the comment: I'm attaching another patch, this should be applied after the other ones have been applied. It fixes what Georg mentioned. I have chosen to let ItimerError inherit from IOError, and improved the docstring of setitimer. Added file: http://bugs.python.org/file96

[issue2240] setitimer, getitimer wrapper

2008-03-06 Thread Guilherme Polo
Guilherme Polo added the comment: Thanks for the review, corrections and suggestions Georg. For the first three items: I will be working on this later today. For the last item: "which" is one of those three new constants added. I believe if you pass something else setitimer/getitimer might rais

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Georg Brandl
Georg Brandl added the comment: Patch review: * ItimerError should be signal.ItimerError, not signal.error. * It should probably inherit from EnvironmentError or IOError. * itimer_retval will leak the new tuple if one of the PyFloat_FromDouble fails. * Do you have test and doc patches, too? * Wha

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Guilherme Polo
Guilherme Polo added the comment: I noticed that I forgot to change setitimer and getitimer functions from itimer_setitimer to signal_setitimer (same for getitimer). I'm attaching a patch that should be applied after the previous one to do this renaming. Added file: http://bugs.python.org/file

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Guilherme Polo
Guilherme Polo added the comment: Martin, thanks for supporting the idea. I'm attaching a patch. It is against rev 61255, py3k branch. It patches configure, configure.in, Modules/signalmodule.c and pyconfig.h.in I wasn't sure if I should attach a diff for each file, so they are all packed in the

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Martin v. Löwis
Martin v. Löwis added the comment: I can see nothing wrong with including setitimer support for systems where it is available, and I agree that the signal module would be the right place. So whoever wants to complete it, feel free to produce a complete patch against the trunk. -- nosy:

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Facundo Batista
Changes by Facundo Batista: Removed file: http://bugs.python.org/file9610/py-itimer-0.1.1.tar.gz __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Guilherme Polo
Guilherme Polo added the comment: I forgot to remove an unwanted comment from it =) Attaching new version. Added file: http://bugs.python.org/file9611/py-itimer-0.1.2.tar.gz __ Tracker <[EMAIL PROTECTED]> ___

[issue2240] setitimer, getitimer wrapper

2008-03-05 Thread Guilherme Polo
New submission from Guilherme Polo: Right now Python misses a wrapper for setitimer and getitimer and I believe it would be interesting to include them. I'm (almost) sure some other people may find it useful too. I'm attaching a standalone module, but if it gets to be included in Python, I think