Re: [Tutor] Sending email as html

2008-09-06 Thread Glen Wheeler
From: "Alan Gauld" <[EMAIL PROTECTED]> "Lie Ryan" <[EMAIL PROTECTED]> wrote programs which can edit PDFs which has somewhat destroyed their value as a read-only document format for contracts, invoices etc... If you have used tried using any PDF editor for more than correcting typos, you'd st

Re: [Tutor] overlay

2005-11-06 Thread Glen Wheeler
I would do this by clipping the two polygons together, and then calculating the area of the resultant polygon. You can do that using the Weiler-Atherton polygon clipping algorithm, which is rather common. Glen From: "Shi Mu" <[EMAIL PROTECTED]> > Is there any sample code to calculate th

[Tutor] Fw: point and polygon

2005-11-06 Thread Glen Wheeler
Missed the rest of the list with this. Still sent to Shi however. From: "Shi Mu" <[EMAIL PROTECTED]> > why the following code report error? > > [..] >assert pointInPoly(pointA, poly) >assert not pointInPoly(pointB, poly) Assuming your function is correct, the asserts are fa

Re: [Tutor] inside

2005-11-06 Thread Glen Wheeler
> why the following code does not work? > [snip script] Give us an error message, please. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] help with prime number program

2005-10-31 Thread Glen Wheeler
From: "Norman Silverstone" <[EMAIL PROTECTED]> > On Mon, 2005-10-31 at 06:12 -0500, Kent Johnson wrote: >> Norman Silverstone wrote: >> > I am a beginner so, I hope what I give, makes sense. In it's simplest >> > form what is wrong with :- >> > >> > n = input("Enter a number") >> > if n % 2 != 0 an