Re: [Tutor] Graphically Display Binary Trees

2008-08-24 Thread Daniel Sarmiento
Thank you for your suggestions, I created a working prototype now, http://dpaste.com/73630/ Daniel > On Sat, Aug 23, 2008 at 4:08 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Graphviz's dot is an amazing way to produce graphics from graph data. > pydot can produce the dot files needed to creat

[Tutor] Read active tab url from firefox

2008-08-24 Thread xbmuncher
I want to make a program in python that knows the current url of the active tab in firefox. I want to be able to right click anywhere in my system, notepad, firefox..etc.. and be able to see an added menu option. Any pointers on doing this? Summary of goals: 1. retrieve url of current tab from fir

Re: [Tutor] __iter__ loops, partitioning list among children

2008-08-24 Thread Eric Abrahamsen
On Aug 24, 2008, at 7:20 PM, Kent Johnson wrote: Forwarding to the list with my reply. Please use Reply All to reply to the list. Grr, sorry, I keep forgetting... On Sun, Aug 24, 2008 at 1:02 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: On Aug 23, 2008, at 11:22 PM, Kent Johnson wrot

Re: [Tutor] fileinput question

2008-08-24 Thread Ezra Taylor
Thanks Kent, that works. On Sun, Aug 24, 2008 at 10:33 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Sun, Aug 24, 2008 at 9:26 PM, Ezra Taylor <[EMAIL PROTECTED]> wrote: >> Hello all: >> Can I do the below with input() from fileinput? If >> this is not possible, what can I do t

Re: [Tutor] fileinput question

2008-08-24 Thread Kent Johnson
On Sun, Aug 24, 2008 at 9:26 PM, Ezra Taylor <[EMAIL PROTECTED]> wrote: > Hello all: > Can I do the below with input() from fileinput? If > this is not possible, what can I do to create backup files with the > date timestamp as an extension. Thanks for you help all. > > > from tim

[Tutor] Fwd: Including files for security.

2008-08-24 Thread W W
-- Forwarded message -- From: W W <[EMAIL PROTECTED]> Date: Sun, Aug 24, 2008 at 8:40 PM Subject: Re: [Tutor] Including files for security. To: Dotan Cohen <[EMAIL PROTECTED]> On Sun, Aug 24, 2008 at 3:38 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > 2008/8/24 Alan Gauld <[EMAIL P

Re: [Tutor] fileinput question

2008-08-24 Thread W W
On Sun, Aug 24, 2008 at 8:26 PM, Ezra Taylor <[EMAIL PROTECTED]> wrote: > Hello all: > Can I do the below with input() from fileinput? If > this is not possible, what can I do to create backup files with the > date timestamp as an extension. Thanks for you help all. > > > from ti

[Tutor] fileinput question

2008-08-24 Thread Ezra Taylor
Hello all: Can I do the below with input() from fileinput? If this is not possible, what can I do to create backup files with the date timestamp as an extension. Thanks for you help all. from time import strftime for line in fileinput.input(inplace=1,backup='.strftime("%Y-%b-%

Re: [Tutor] Including files for security.

2008-08-24 Thread Dotan Cohen
2008/8/24 Alan Gauld <[EMAIL PROTECTED]>: > > "Dotan Cohen" <[EMAIL PROTECTED]> wrote > >> I think that I will use the open() and read() functions, thanks! I did >> think of that, but I wanted to know if there was a better wheel >> invented already. > > Another option is to use environment variable

Re: [Tutor] Including files for security.

2008-08-24 Thread Alan Gauld
"Dotan Cohen" <[EMAIL PROTECTED]> wrote I think that I will use the open() and read() functions, thanks! I did think of that, but I wanted to know if there was a better wheel invented already. Another option is to use environment variables to store them. These can be set when the server star

Re: [Tutor] (no subject)

2008-08-24 Thread Alan Gauld
<[EMAIL PROTECTED]> wrote ([Tutor] How do I delete all Files of certain extension type?) Get a list of the files - try glob.glob or os.walk Then delete them - use shutil.remove Now if thats not enough info come back with more specific questions. You might find the Using the OS topic in m

Re: [Tutor] Including files for security.

2008-08-24 Thread Dotan Cohen
2008/8/24 Kent Johnson <[EMAIL PROTECTED]>: > On Sun, Aug 24, 2008 at 12:08 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: >> I have a specific file in the web tree that makes a database call. I >> am uncomfortable keeping the database username and password in the >> file. In PHP I usually put the data

Re: [Tutor] Including files for security.

2008-08-24 Thread Kent Johnson
On Sun, Aug 24, 2008 at 12:08 PM, Dotan Cohen <[EMAIL PROTECTED]> wrote: > I have a specific file in the web tree that makes a database call. I > am uncomfortable keeping the database username and password in the > file. In PHP I usually put the database connection data in a file > outside the web

[Tutor] Including files for security.

2008-08-24 Thread Dotan Cohen
I have a specific file in the web tree that makes a database call. I am uncomfortable keeping the database username and password in the file. In PHP I usually put the database connection data in a file outside the web tree and use the include (http://il.php.net/include/) function to get the data. I

[Tutor] (no subject)

2008-08-24 Thread 2104496328
([Tutor] How do I delete all Files of certain extension type?) - Sent by a Cricket mobile device - ___ Tutor maillist - Tutor@python.org http://mail.python.org/mai

Re: [Tutor] hi...

2008-08-24 Thread broek
- Message from [EMAIL PROTECTED] - Date: Sun, 24 Aug 2008 01:31:28 -0500 From: Alberto Perez <[EMAIL PROTECTED]> Reply-To: Alberto Perez <[EMAIL PROTECTED]> Subject: [Tutor] hi... To: tutor@python.org run a program in interactive mode, the program run very good, but i

Re: [Tutor] hi...

2008-08-24 Thread Alan Gauld
"Alberto Perez" <[EMAIL PROTECTED]> wrote . How clear the screen of GUI python interactive bhaaaluu answered that and which is the difference between interactive mode and not interactive mode WW answered that because when I run a program in interactive mode, the program run very

Re: [Tutor] hi...

2008-08-24 Thread bhaaluu
On Sun, Aug 24, 2008 at 2:31 AM, Alberto Perez <[EMAIL PROTECTED]> wrote: > I have a problem with python, I'm begginner in python. How clear the screen > of GUI python interactive I'm not sure what you mean by GUI interactive? However, at the Python interactive prompt, I can "clear the screen"

[Tutor] Fwd: hi...

2008-08-24 Thread W W
-- Forwarded message -- From: W W <[EMAIL PROTECTED]> Date: Sun, Aug 24, 2008 at 7:17 AM Subject: Re: [Tutor] hi... To: Alberto Perez <[EMAIL PROTECTED]> On Sun, Aug 24, 2008 at 1:31 AM, Alberto Perez <[EMAIL PROTECTED]> wrote: > I have a problem with python, I'm begginner in py

[Tutor] hi...

2008-08-24 Thread Alberto Perez
I have a problem with python, I'm begginner in python. How clear the screen of GUI python interactive and which is the difference between interactive mode and not interactive mode because when I run a program in interactive mode, the program run very good, but if run in not interactive