Re: [Tutor] Guess my number? Guess what's wrong!

2010-04-17 Thread Jim Byrnes
Matthew Carpenter-Arevalo wrote: Hi Everyone, I'm a beginner python programmer, and I've been working on the perennial 'guess my number' example. When I run this in my module, I get an infinite loop of 'higher' or 'lower.' Can anyone see where I'm going wrong herE? Thanks, MCA # Guess my nu

Re: [Tutor] Guess my number? Guess what's wrong!

2010-04-17 Thread Marc Tompkins
On Sat, Apr 17, 2010 at 1:04 PM, Matthew Carpenter-Arevalo < matthew.carpenter.arev...@googlemail.com> wrote: > Hi Everyone, > > I'm a beginner python programmer, and I've been working on > the perennial 'guess my number' example. > > When I run this in my module, I get an infinite loop of 'higher

[Tutor] Guess my number? Guess what's wrong!

2010-04-17 Thread Matthew Carpenter-Arevalo
Hi Everyone, I'm a beginner python programmer, and I've been working on the perennial 'guess my number' example. When I run this in my module, I get an infinite loop of 'higher' or 'lower.' Can anyone see where I'm going wrong herE? Thanks, MCA # Guess my number # the computer picks a random

Re: [Tutor] How to map different keys together ?

2010-04-17 Thread Alan Gauld
"Damon Timm" wrote I am struggling, on a theoretical level, on how to map the various filetype's tag/key naming conventions. I have already created my own MusicFile objects to handle each filetype (with functions for encoding/decoding) but I can't wrap my head around how to map the tags. I'

[Tutor] How to map different keys together ?

2010-04-17 Thread Damon Timm
Hello - I am writing a script that converts an entire music library into a single desired output format. The source music library has a variety of music filetypes (flac, mp3, m4a, ogg, etc) and I am attempting to use mutagen (a music file tagging module, http://code.google.com/p/mutagen/) in order

Re: [Tutor] Can Anyone help with SMTP processiing

2010-04-17 Thread Alan Gauld
"Peter Meagher" wrote I'm a newbie with Python. Passable with other languages e.g. Basic, C++ and others. Not a programmer per se, just trying to get work done that happens to require some programming skills and want to try my hand with Python. Python is ideal for that. First time thro

[Tutor] Can Anyone help with SMTP processiing

2010-04-17 Thread Peter Meagher
Greetings, I'm a newbie with Python. Passable with other languages e.g. Basic, C++ and others. Not a programmer per se, just trying to get work done that happens to require some programming skills and want to try my hand with Python. Email processing and parsing is the focus of my tas

Re: [Tutor] Loop comparison

2010-04-17 Thread Stefan Behnel
Dave Angel, 17.04.2010 10:47: Alan Gauld wrote: "Lie Ryan" wrote A friend of mine suggested me to do the next experiment in python and Java. It's a simple program to sum all the numbers from 0 to 10. result = i = 0 while i < 10: result += i i += 1 print result Are you sure

Re: [Tutor] Loop comparison

2010-04-17 Thread Dave Angel
Alan Gauld wrote: "Lie Ryan" wrote A friend of mine suggested me to do the next experiment in python and Java. It's a simple program to sum all the numbers from 0 to 10. result = i = 0 while i < 10: result += i i += 1 print result Are you sure you're not causing Ja

Re: [Tutor] [Python-ideas] "value" ~ "data" ~ "object"

2010-04-17 Thread Stephen J. Turnbull
Alan Gauld writes: > Ooh I was deliverately steering clear of the distinctions between data, > information and knowledge! There lie religious wars! :-) That's precisely why Guido says "don't say 'data' in this context." It's not your choice to steer clear of those differences of definition, i