Re: [Tutor] Python debugger under Tiger?

2005-05-18 Thread Alan G
> Does anyone know of a Python debugger that will run under OSX 10.4? > The Eric debugger was looked at, but it's highly unstable under > Tiger. Thanks. pdb should still work. Alan g ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailm

Re: [Tutor] Python debugger under Tiger?

2005-05-18 Thread Lee Cullens
Mike, You may not be looking for a commercial IDE, but I am very happy with WingIDE and using it with Tiger. Lee C On May 18, 2005, at 6:54 PM, Mike Hall wrote: > I should of specified that I'm looking for an IDE with full > debugging. Basically something like Xcode, but with Python support.

[Tutor] ANN: new release of RUR-PLE

2005-05-18 Thread André Roberge
Version 0.8.6a is now available. This version is mostly a bug fix version. * unicode problem corrected (bug introduced in version 0.8.5) * linenumber information on syntax errors corrected * removed the URL browser capability * corrected typo and change explanation of next_to_a_beeper() in lessons

Re: [Tutor] buttons, scrollbar, tkinter

2005-05-18 Thread jfouhy
Quoting Ron Alvarado <[EMAIL PROTECTED]>: > Is there any way to change this to put in a column of buttons and it > will scroll like it does now. I've tried but when I put in the buttons the > scrollbar just grows with all the buttons and won't do anything. I'm not exactly sure what you're after h

[Tutor] buttons, scrollbar, tkinter

2005-05-18 Thread Ron Alvarado
Is there any way to change this to put in a column of buttons and it will scroll like it does now. I've tried but when I put in the buttons the scrollbar just grows with all the buttons and won't do anything. from Tkinter import * root = Tk() scrollbar = Scrollbar(root) scrollbar.pack(side=RIGHT,

Re: [Tutor] Python debugger under Tiger?

2005-05-18 Thread Mike Hall
I should of specified that I'm looking for an IDE with full debugging. Basically something like Xcode, but with Python support. On May 18, 2005, at 3:10 PM, [EMAIL PROTECTED] wrote: > Quoting Mike Hall <[EMAIL PROTECTED]>: > > >> Does anyone know of a Python debugger that will run under OSX 10

Re: [Tutor] I know you will hate this but...

2005-05-18 Thread Lee Harr
>>Inconsistent indentation styles are very >>annoying in >>other languages, but a fatal problem in Python. > >But there is no way to enforce standard settings. When new versions are >installed or someone just makes a mistake the settings might change and >you won't know until it's too late...possi

Re: [Tutor] Python debugger under Tiger?

2005-05-18 Thread jfouhy
Quoting Mike Hall <[EMAIL PROTECTED]>: > Does anyone know of a Python debugger that will run under OSX 10.4? > The Eric debugger was looked at, but it's highly unstable under > Tiger. Thanks. pdb should work :-) -- John. ___ Tutor maillist - Tutor

Re: [Tutor] Troubles with Python modules

2005-05-18 Thread Alberto Troiano
I'm sending the commands you asked I'm still can't make it work and I don't know what else should I do I'll aprecciate any help Best Regards Alberto From: Danny Yoo <[EMAIL PROTECTED]> To: Alberto Troiano <[EMAIL PROTECTED]> CC: tutor@python.org Subject: Re: [Tutor] Troubles with Python modules Dat

[Tutor] Python debugger under Tiger?

2005-05-18 Thread Mike Hall
Does anyone know of a Python debugger that will run under OSX 10.4? The Eric debugger was looked at, but it's highly unstable under Tiger. Thanks.-MH___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Finding word in file

2005-05-18 Thread Alan G
> I'm making a program that opens a file and tries to find the word you specify. > I can't get it to find the word! What are you trying? You could simply read through the file line by line using the string search methods. Store the previous 2 lines then when found print the previous two lines, t

Re: [Tutor] How to convert hex representation of char? (Challenge part 8)

2005-05-18 Thread Alan G
> onepart and anotherpart contain many hex representations of nonprintable > characters, like '\x14'. But I can't manage to convert those to the > actual nonprintable characters. Any hints on how to do this? '\x14' is the actual non printable charactewrs. If it were printable you would see its pri

Re: [Tutor] Perl equivalent of $#var

2005-05-18 Thread Blake Winton
> My current dilemma is that I've got a program that takes one argument > and needs to be run multiple times with this argument being validated > based on the previous one. So proper usage might be > myprog red > myprog blue > myprog green > where it would be wrong to do >

Re: [Tutor] How to convert hex representation of char? (Challenge part 8)

2005-05-18 Thread Terry Carroll
On Wed, 18 May 2005, Pieter Lust wrote: > onepart and anotherpart contain many hex representations of nonprintable > characters, like '\x14'. But I can't manage to convert those to the > actual nonprintable characters. Any hints on how to do this? The string including the \x14 escape should be

Re: [Tutor] Password

2005-05-18 Thread Andrei
Øyvind wrote on Wed, 18 May 2005 14:46:43 +0200 (CEST): > The user enters a password first. These lines will create a string: > '12c0faae657b3d068c0f19b71f5b43bc' This string will be stored in the file > settings.txt That's a very good way of preventing the user's password from being reconstructe

Re: [Tutor] Finding word in file

2005-05-18 Thread Bernard Lebel
Ooops, a part of my code was missing, sorry about that. Here is it again, complete. def parseText(): # oFile: text file to test # myWord: word we are looking for # Get all lines into list aLines = oFile.readlines() # Perform list

Re: [Tutor] Finding word in file

2005-05-18 Thread Bernard Lebel
Hi Joseph, To answer your last question first, you should use the os.path.exsits() method to see if the path is valid: http://www.python.org/doc/2.4.1/lib/module-os.path.html As for finding a word in a text, I would suggest to write a basic text parser that would work on small files. def pars

[Tutor] Finding word in file

2005-05-18 Thread Joseph Quigley
I'm making a program that opens a file and tries to find the word you specify. I can't get it to find the word! I also would like to know how I can get it to print 2 lines above and 2 lines below the line with the word specified. One more thing, the try: IOError won't work... I type the name of a

[Tutor] How to convert hex representation of char? (Challenge part 8)

2005-05-18 Thread Pieter Lust
Hello, I'm stuck on part 8 of the Python Challenge. To solve it, I want to feed 2 pieces of data to a Python module. I get those pieces by reading the webpage source, and then splitting it on "'", like this: import urllib pagesource = urllib.urlopen(site_address).read() parts = pagesource.split

Re: [Tutor] Perl equivalent of $#var

2005-05-18 Thread Premshree Pillai
On 5/18/05, Smith, Jeff <[EMAIL PROTECTED]> wrote: > Is there a more Pythonic way to get the Perl equivalent of > $#var > other than > len(var) - 1 By Pythonic, if you mean OO, you can do this: ['foo', 2, 'baz'].__len__() -- Premshree Pillai http://www.livejournal.com/users/prems

Re: [Tutor] Password

2005-05-18 Thread Alberto Troiano
Hey I think that is a good built-in way to protect your passwords, but then I don't know if a text file is the best way to store them. I think (in my opinion) I consider using a database to store tha info. There is a way to make the entry appears as *. txtPass=Entry(root,width=25,show="*") Th

[Tutor] Password

2005-05-18 Thread Øyvind
Hello. I am trying to make a loginbox for a program, and need to make a somewhat safe passwordroutine. Will this work? import md5 h = md5.new() h.update(password) h.hexdigest() The user enters a password first. These lines will create a string: '12c0faae657b3d068c0f19b71f5b43bc' This string wil

Re: [Tutor] Perl equivalent of $#var

2005-05-18 Thread Smith, Jeff
The most common usage is to get the last member of an array as with myarray[$#myarray] and I realize in Python, this can be done with myarray[-1] My current dilemma is that I've got a program that takes one argument and needs to be run multiple times with this argument being valida

Re: [Tutor] help me on python + snack

2005-05-18 Thread Michael Lange
On Tue, 17 May 2005 21:18:09 -0700 (PDT) Mahmad Sadique Hannure <[EMAIL PROTECTED]> wrote: Hi Mahmad, > Hello friends, > I m currently working on sound stuff. I have installed > all stuff related to Snack. My code for playing mp3 > song is like this > > #!/usr/bin/python2.3 > > from Tkinter imp

Re: [Tutor] I know you will hate this but...

2005-05-18 Thread Andrei
Smith, Jeff medplus.com> writes: > But there is no way to enforce standard settings. When new versions are > installed or someone just makes a mistake the settings might change and > you won't know until it's too late...possibly weeks later. Programs when updated tend to keep their settings, as