[Tutor] library to create venn diagrams?

2008-02-24 Thread Danny Navarro
Hi all, Does anyone know a Python library to generate Venn diagrams with more than 3 datasets? The area of the datasets and the intersections should be proportional to the quantity of data. Thanks, Danny ___ Tutor maillist - Tutor@python.org http://m

Re: [Tutor] help beginner in python.

2008-02-24 Thread Alan Gauld
"Krystle Scott" <[EMAIL PROTECTED]> wrote >i need to write an algorithm for computing square roots. We don;t do homework here but we can help with specific questions and to resolve errors. > import math > > def main (): > print " This program computes approximate square roots using > Newt

Re: [Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-24 Thread bob gailer
Andrei Petre wrote: > Hello, > > I wrote a code for a problem and submitted to an online judge url please, and link to the specific problem -- Bob Gailer 919-636-4239 Chapel Hill, NC ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailm

Re: [Tutor] How do I destroy class instances ?

2008-02-24 Thread dave selby
On 24/02/2008, Dave Kuhlman <[EMAIL PROTECTED]> wrote: > On Sun, Feb 24, 2008 at 04:14:02PM +, dave selby wrote: > > I have created a list of class instances, works a treat. I need to be > > able to re __init__ the instances on a SIGHUP so I guess the best way > > is to destroy them & re mak

Re: [Tutor] help beginner in python.

2008-02-24 Thread Steve Willoughby
Krystle Scott wrote: > i need to write an algorithm for computing square roots. > so far I have This sounds like a class exercise. I think we can help you with Python questions, but you'll need to do the part that is directly related to your homework on your own. > import math > > def main ():

[Tutor] help beginner in python.

2008-02-24 Thread Krystle Scott
i need to write an algorithm for computing square roots. so far I have import math def main (): print " This program computes approximate square roots using Newton's method: " print input = (" Enter whose square root you wish to compute (a) : ") input = (" Enter the number

Re: [Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-24 Thread Bob Gailer
OK I maintain what I wrote earlier: Did you run the code yourself? It would appear that you did not. Before submitting to an online judge run the code on your own computer. Can you do that? Do you know how? When you run it you will discover an error. Fix that and try again. [snip] -- Bob Gail

Re: [Tutor] crashed with Runtime Error: NZEC (non-zero exit code) WAIT!!!

2008-02-24 Thread Bob Gailer
Hold the phone! Ignore previous email. Working... -- Bob Gailer 919-636-4239 Chapel Hill, NC ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-24 Thread bob gailer
Andrei Petre wrote: > Hello, > > I wrote a code for a problem and submitted to an online judge, a > program that runs my program against a set of predefined input data. Did you run the code yourself? It would appear that you did not. Before submitting to an online judge run the code on your own c

Re: [Tutor] How do I destroy class instances ?

2008-02-24 Thread Dave Kuhlman
On Sun, Feb 24, 2008 at 04:14:02PM +, dave selby wrote: > I have created a list of class instances, works a treat. I need to be > able to re __init__ the instances on a SIGHUP so I guess the best way > is to destroy them & re make them. > > err ... how do I destroy an instance ? It is not lik

Re: [Tutor] How do I destroy class instances ?

2008-02-24 Thread Alan Gauld
"dave selby" <[EMAIL PROTECTED]> wrote >I have created a list of class instances, works a treat. I need to be > able to re __init__ the instances on a SIGHUP so I guess the best > way > is to destroy them & re make them. You could just call init on them... >>> class C: ... def __init__(s,x,y

[Tutor] How do I destroy class instances ?

2008-02-24 Thread dave selby
I have created a list of class instances, works a treat. I need to be able to re __init__ the instances on a SIGHUP so I guess the best way is to destroy them & re make them. err ... how do I destroy an instance ? Cheers Dave -- Please avoid sending me Word or PowerPoint attachments. See http

Re: [Tutor] how to parse a multiple character words from plaintext

2008-02-24 Thread Kent Johnson
John Gunderman <[EMAIL PROTECTED]> wrote: > I am parsing the output of the mork.pl, which is a DORK (the mozilla format) > parser. I don't know Perl, so I decided to write a Python script to do what I > wanted, which basically is to create a dictionary listing each site and its > correspon

Re: [Tutor] how to parse a multiple character words from plaintext

2008-02-24 Thread Kent Johnson
John Gunderman <[EMAIL PROTECTED]> wrote: > I am parsing the output of the mork.pl, which is a DORK (the mozilla format) > parser. I don't know Perl, so I decided to write a Python script to do what I > wanted, which basically is to create a dictionary listing each site and its > correspon

[Tutor] crashed with Runtime Error: NZEC (non-zero exit code)

2008-02-24 Thread Andrei Petre
Hello, I wrote a code for a problem and submitted to an online judge, a program that runs my program against a set of predefined input data. I wrote it for exercise my python writing. In don't want to discuss the algorithm here! I dare to ask for help because the answer was : crashed with Runtim

Re: [Tutor] Question on multithreading

2008-02-24 Thread Thomas Pani
Hi, Here are some thoughts: From the Python Library Reference: "If the subclass overrides the constructor, it must make sure to invoke the base class constructor (Thread.__init__()) before doing anything else to the thread." You'll have to do that for your GuiScript class. You can't just sto