Re: How would you program this?

2005-03-03 Thread engsol
On Thu, 03 Mar 2005 19:32:19 -0700, Steven Bethard <[EMAIL PROTECTED]> wrote: >engsol wrote: >> I don't fully understand this line of your code: >> return [(a,b,c) for a in ns for b in ns for c in ns if a + b + c == limit] >> If the "if" part is true, d

Re: How would you program this?

2005-03-03 Thread engsol
On Thu, 3 Mar 2005 15:32:36 -0500, Bill Mill <[EMAIL PROTECTED]> wrote: >On Thu, 03 Mar 2005 10:52:23 -0800, engsol <[EMAIL PROTECTED]> wrote: >> >> The diagonal constraint is interestingit seems to affect the number of >> solutions. One surprise, (not bei

Re: How would you program this?

2005-03-03 Thread engsol
On Thu, 3 Mar 2005 14:57:13 -, "Duncan Smith" <[EMAIL PROTECTED]> wrote: > >"engsol" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> There is a number puzzle which appears in the daily paper. >> Because I'm betwee

RE: How would you program this?

2005-03-02 Thread engsol
When I posted the puzzle, I typo'd the first row. It should read *5* + B + C + D = 22 instead of 3. Thanks to all with suggestions so far. Norm B -- http://mail.python.org/mailman/listinfo/python-list

How would you program this?

2005-03-02 Thread engsol
There is a number puzzle which appears in the daily paper. Because I'm between Python projects, I thought it might be fun to write a program to solve it20 minute job, max. On closer inspection, it became apparent that it's not a simple thing to program. How would you approach it? The puzzle:

Re: Com port interrupts again

2005-01-15 Thread engsol
On Fri, 14 Jan 2005 23:25:21 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: >engsol wrote: >> I didn't fully think through my application before posting my >> question. Async com port routines to handle com port interrups >> only work well if one has access to t

Re: Com port interrupts again

2005-01-15 Thread engsol
On Sat, 15 Jan 2005 19:38:19 + (UTC), Chris Liechti <[EMAIL PROTECTED]> wrote: >engsol <[EMAIL PROTECTED]> wrote in >news:[EMAIL PROTECTED]: > >> I didn't fully think through my application before posting my >> question. Async com port routines to handl

Re: Com port interrupts again

2005-01-14 Thread engsol
Thanks much..:) On 14 Jan 2005 12:25:43 -0800, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >A search on google gave me this library, I haven't tested it though: >http://groups-beta.google.com/group/comp.lang.python.announce/browse_frm/thread/6d3263250ed65816/291074d7bd94be63?q=com+port+python&

Com port interrupts again

2005-01-14 Thread engsol
I didn't fully think through my application before posting my question. Async com port routines to handle com port interrups only work well if one has access to the low level operating system. In that case the receive buffer interrupt would cause a jump to an interrupt service routine.. I don't bel

Re: pyserial and com port interrupts

2005-01-12 Thread engsol
On Wed, 12 Jan 2005 17:45:48 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: >engsol wrote: >> Has anyone done a script that will rspond to the serial com port(s) >> receive buffer interrupt, as opposed to polling and timeouts? >> Win2000 is the main interest right

pyserial and com port interrupts

2005-01-12 Thread engsol
Has anyone done a script that will rspond to the serial com port(s) receive buffer interrupt, as opposed to polling and timeouts? Win2000 is the main interest right now. Thanks Norm B -- http://mail.python.org/mailman/listinfo/python-list