David Palmer

Results 16 comments of David Palmer

I have also spent tens of hours debugging serial corruption due to this problem. My simplest code that shows this on an oscilloscope: ``` import serial import time port =...

In Python 3, raise takes zero or one arguments, as described in PEP 3109. The three-argument form is no longer supported. ``` raise ImportStringError(import_name, e), None, sys.exc_info()[2] ``` But this...

1440 is the number of minutes in a day(24*60), so 1.0/1440 is 1 minute in days. So before the modification, it sees the 05:57:30 rise and redoes the calculation starting...

I've forked Repetier-Host-Mac to fix a few things, but I don't see any commits here since Nov 2013. Is your 'mac version in development' branch committed anywhere so I can...

I came here to github to also request this feature.

Asyncio is probably a better direction in theory, but threading is available with this pull request in time for the next LIGO-VIRGO-ETC run. This request doesn't affect the core functionality...

1. You are right, using a `{thread,process}.terminate()` is cleaner than the stopevent-sentinel approach and means that the reader doesn't have to timeout to check the sentinel and then jump back...

Yeah, it appears that the [only way to gracefully terminate a thread is cooperatively](https://stackoverflow.com/questions/323972/is-there-any-way-to-kill-a-thread), such as by the sentinel method, which requires the socket reads to timeout so the sentinel...

The only use in showing the user how to use threads is showing how to use the `gcn.handlers.queuehandlerfor()`, which is covered in the addition to the `README.md`. > I have...

I don't want to cancel the task and then restart it and lose the messages that came in when it was cancelled. My use case, which is probably common, is...