Re: [Tutor] skipping ahead within a loop

2007-03-15 Thread Clay Wiedemann
Thanks, this is not too much information at all. I am always happy with depth. -c On 3/15/07, Dave Kuhlman <[EMAIL PROTECTED]> wrote: > On Thu, Mar 15, 2007 at 03:35:27PM +0100, Rikard Bosnjakovic wrote: > > On 3/15/07, Clay Wiedemann <[EMAIL PROTECTED]> wrote: > >

[Tutor] skipping ahead within a loop

2007-03-15 Thread Clay Wiedemann
If doing a loop, how can one skip forward a specific amount randomly determined within the loop? Below is a boiled down version of what I am trying (HEIGHT and random come from NodeBox). I imagine a simple solution is out there, my searches failed me for y in range(HEIGHT): linewidth = r

Re: [Tutor] Roman to digital (pseudocode)

2007-03-13 Thread Clay Wiedemann
I am new to python and programming, so not sure if I should weigh in here. Nonetheless . . . Creating a dictionary seems fair, but I wonder about using pairs rather than single letters. Roman numerals are constructed from strict rules other than the allowable letter set -- here is the relevant wik

Re: [Tutor] problems to install python 2.5

2007-03-11 Thread Clay Wiedemann
rote: > yes I did download that, and it went " sorry can't update zshell" (and yes I > have zshell) so i didn't know how to deal with that any ideas ? (but > then i guess its a completely different problem then ...) > > thanks! > T. > > > On 3/11

Re: [Tutor] problems to install python 2.5

2007-03-11 Thread Clay Wiedemann
Did you download the MacPython 2.5 distribution? You should find an "Update shell profile.command" file, which you can run. I believe once you do that, you will be set up so that IDLE will launch and you will default to version 2.5. On 3/11/07, Tsila Hassine <[EMAIL PROTECTED]> wrote: > Hello all

[Tutor] trouble with objects, instances, type, and None in BeautifulSoup (and in general?)

2007-03-07 Thread Clay Wiedemann
Still learning, please bear with me if my lingo is a little off. But I think I have a better handle on my problem. My objective: 1. get a starting point on a web page, walk down the page until hitting an HR tag 2. Along the way, test for certain markers that allow me to get various strings and com

[Tutor] beautifulsoup - getting an error when NavigableString object is returned

2007-03-03 Thread Clay Wiedemann
I wanted to strip the quotes from IMDB quote pages, just to start learning python. Quotes are not nested, so I got the anchor links that precede them. I thought I could walk down until I hit an HR tag, meanwhile grabbing people and quotes via hits on and . But once I tried to walk down from my hit

[Tutor] trouble understanding the python environment in OSX

2007-03-03 Thread Clay Wiedemann
Hi, I am not only new to Python, but new to programming in an environment like this, where knowing a little of how the underpinning work is essential.* I am running the latest OSX (10.4.8) and know a little about moving about in the terminal. But the world of paths, etc. has me a little confused.