Re: noob import question

2006-05-19 Thread Brian Blazer
Thank you for your responses. I had a feeling is had something to do with a namespace issue but I wasn't sure. You are right, I do come from a Java background. If it is poor form to name your class file the same as your class, can I ask what the standard is? Thanks again, Brian On May 19

noob import question

2006-05-19 Thread Brian Blazer
OK, I have a very simple class here: class Student: """Defines the student class""" def __init__(self, lName, fName, mi): self.lName = lName self.fName = fName self.mi = mi Then I have a small script that I am using as a test: from Student import * s1 = Stu

Re: Newbie append() question

2006-05-19 Thread Brian Blazer
Thanks guys. Your solutions worked. I'm still not sure why it was grabbing the prompt string though. Thanks again, Brian [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Newbie append() question

2006-05-18 Thread Brian Blazer
I promise that this is not homework. I am trying to self teach here and have run into an interesting problem. I have created a method that asks for a class name and then is supposed to add it to classes []. Here is a snippet: def getCurrentClasses(): classes = [] print 'P

Re: Complex evaluation bug

2006-05-18 Thread Brian Blazer
I am not exactly sure what is going on, but I get the error: ValueError: complex() arg is a malformed string I think that it might be because the value of 'j' is not defined. But I am a newbie so I could very well be wrong. Brian Blazer [EMAIL PROTECTED] On May 18, 2006, at 11

Re: playing with pyGoogle - strange codec error

2005-04-05 Thread Brian Blazer
On 2005-04-05 13:55:48 -0500, Erik Max Francis <[EMAIL PROTECTED]> said: Thank you, that worked. Brian -- Nail a post to the Spalted Board. Free WW'ing software and forums. Regular freebies! http://www.spaltedboard.com -- http://mail.python.org/mailman/listinfo/python-list

Re: playing with pyGoogle - strange codec error

2005-04-05 Thread Brian Blazer
On 2005-04-04 10:06:23 -0500, Brian Blazer <[EMAIL PROTECTED]> said: You know, I am beginning to think that I MAY have stumbled on a bug here. At first I was thinking that this issue was related to the offending character being out of range for the Mac. Then I tried it on A MS machine

Re: playing with pyGoogle - strange codec error

2005-04-05 Thread Brian Blazer
On 2005-04-05 07:32:12 -0500, "Richard Brodie" <[EMAIL PROTECTED]> said: "Brian Blazer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Everything works fine until I get to r.snippet. Here is the error: UnicodeEncodeError: 'ascii' codec can

playing with pyGoogle - strange codec error

2005-04-04 Thread Brian Blazer
Hello, I am playing around with pyGoogle and encountered an error that I have never seen, and I am unsure how to correct for it. Here is a code snippet: for r in data.results: print 'Title: ',r.title print 'URL: ',r.URL print 'Summary: ',r.snippet print Everything works fine until I