Re: [Tutor] attribute error - quick addition

2007-07-30 Thread Sara Johnson
: Alan Gauld <[EMAIL PROTECTED]> To: tutor@python.org Sent: Monday, July 30, 2007 5:55:56 PM Subject: Re: [Tutor] attribute error - quick addition "Sara Johnson" <[EMAIL PROTECTED]> wrote > Sorry... I'm still learning about lists, tuples, etc... Sarah, You've bee

Re: [Tutor] attribute error - quick addition

2007-07-30 Thread Sara Johnson
Sorry... I'm still learning about lists, tuples, etc... Thanks, Sara - Original Message From: Tiger12506 <[EMAIL PROTECTED]> To: tutor@python.org Sent: Monday, July 30, 2007 5:42:47 PM Subject: Re: [Tutor] attribute error - quick addition > Thanks Alan and Kent (for the sorting notes

Re: [Tutor] attribute error - quick addition

2007-07-30 Thread Sara Johnson
, July 29, 2007 7:00:12 PM Subject: Re: [Tutor] attribute error - quick addition "Sara Johnson" <[EMAIL PROTECTED]> wrote > Sorry...I forgot a few more lines at the end of the code. Starts > with "outfile2write..." > I also added outfile2.sort() OK, at leasrt we

Re: [Tutor] attribute error - quick addition

2007-07-29 Thread Sara Johnson
%s has %4.1f%% missing" % (key,100*fracmiss) if fracmiss>0.: print outstring outfile2.write(outstring+'\n') #notice explicit newline \n outfile2.sort() outfile2.close() - Original Message From: Alan Gauld <[EMAIL PROTECTED]> To: tut

Re: [Tutor] attribute error

2007-07-29 Thread Sara Johnson
- From: Alan Gauld <[EMAIL PROTECTED]> To: tutor@python.org Sent: Sunday, July 29, 2007 2:23:55 AM Subject: Re: [Tutor] attribute error "Sara Johnson" <[EMAIL PROTECTED]> wrote > However, is there an indentation error here? Not that I can see. Is there an error? If so ca

Re: [Tutor] attribute error

2007-07-29 Thread Sara Johnson
- Original Message From: Alan Gauld [EMAIL PROTECTED] >> for key in skeys: >> fracmiss=1.*numberMissing(z[key].values())/nsites #note decimal >> multiplication, 1.* >This is a mess. Why have that long comment when all that's needed >is to add the zero?! (and some spaces to make

Re: [Tutor] attribute error --Disregard

2007-07-28 Thread Sara Johnson
Disregard this post. Sorry for the added message in everyone's inbox. - Original Message From: Sara Johnson <[EMAIL PROTECTED]> To: Python Sent: Saturday, July 28, 2007 11:19:15 PM Subject: Re: [Tutor] attribute error I scrapped that other attempt. I keep hitting

Re: [Tutor] attribute error

2007-07-28 Thread Sara Johnson
%4.1f%% missing" % (key,100*fracmiss) if fracmiss>0.: print outstring - Original Message From: Bob Gailer <[EMAIL PROTECTED]> To: Sara Johnson <[EMAIL PROTECTED]> Cc: Python Sent: Saturday, July 28, 2007 10:14:58 PM Subject: Re: [Tutor] attribute e

[Tutor] attribute error

2007-07-28 Thread Sara Johnson
I thought 'sort()' was a function you could use as long as the dict or key had some value. When is this not right? Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo!

Re: [Tutor] comparing lists, __lt__ and __gt__

2007-07-28 Thread Sara Johnson
Original Message From: Alan Gauld <[EMAIL PROTECTED]> To: tutor@python.org Sent: Saturday, July 28, 2007 5:03:05 PM Subject: Re: [Tutor] comparing lists, __lt__ and __gt__ "Sara Johnson" <[EMAIL PROTECTED]> wrote > What if there is a '<<' or '

Re: [Tutor] comparing lists, __lt__ and __gt__

2007-07-28 Thread Sara Johnson
First off, Kent, thanks for posting that! I know it's in the Python library but it does help to have a bookmark for things I know I'll need pretty soon. Second... What if there is a '<<' or '>>'? Does that just mean the same thing (maybe a little over emphasized.. ;) I thought I saw this w

Re: [Tutor] IDLE Usage - was Interpreter Restarts

2007-07-22 Thread Sara Johnson
way, but I had to check. I've been talking to someone else off list about that. Anyways, thanks for help! Sara - Original Message From: Alan Gauld <[EMAIL PROTECTED]> To: tutor@python.org Sent: Sunday, July 22, 2007 4:39:51 AM Subject: Re: [Tutor] IDLE Usage - was Interpr

Re: [Tutor] IDLE connection - was IDLE Usage

2007-07-21 Thread Sara Johnson
Okay, carry on then. :-) Still haven't figured it out either and I've tried reloading it. - Original Message From: Robert H. Haener IV <[EMAIL PROTECTED]> To: Sara Johnson <[EMAIL PROTECTED]> Cc: Python Sent: Saturday, July 21, 2007 9:04:52 PM Subject: Re: [

[Tutor] IDLE connection - was IDLE Usage

2007-07-21 Thread Sara Johnson
om: Robert H. Haener IV <[EMAIL PROTECTED]> To: Sara Johnson <[EMAIL PROTECTED]> Cc: Python Sent: Tuesday, July 17, 2007 1:49:19 PM Subject: Re: [Tutor] IDLE Usage - was Interpreter Restarts Sara Johnson wrote: > That's pretty much what I was attempting. I was advised

Re: [Tutor] IDLE Usage - was Interpreter Restarts

2007-07-17 Thread Sara Johnson
- Original Message From: Robert H. Haener IV [EMAIL PROTECTED] If you name the SSH client (which I believe you've been calling an "SSH editor") you're using, I might be able to give you step by step instructions for setting your client to use X Forwarding. If the SSH server doesn't al

Re: [Tutor] IDLE Usage - was Interpreter Restarts

2007-07-17 Thread Sara Johnson
Sure, sounds good. Should I assume that 'any' Unix version allows Vim? Thanks, Sara - Original Message From: jim stockford <[EMAIL PROTECTED]> To: Sara Johnson <[EMAIL PROTECTED]> Cc: tutor@python.org Sent: Tuesday, July 17, 2007 12:30:12 PM Subject: Re: [T

Re: [Tutor] IDLE Usage - was Interpreter Restarts

2007-07-17 Thread Sara Johnson
Sorry all... SSH editor means "Unix" Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 __

Re: [Tutor] IDLE Usage - was Interpreter Restarts

2007-07-17 Thread Sara Johnson
I initially thought Vim was sort of the same as Vi, just a few small differences or upgrades. Or have I got that confused? Sara - Original Message From: Tiger12506 <[EMAIL PROTECTED]> To: tutor@python.org Sent: Tuesday, July 17, 2007 12:33:54 PM Subject: Re: [Tutor] IDLE Usage - was I

Re: [Tutor] IDLE Usage - was Interpreter Restarts

2007-07-17 Thread Sara Johnson
editing). So I thought most of the Python programmers preferred to use IDLE and that maybe it would simplify things just a tad for me. I'm about 2000 miles away from where I should be with these projects. Thanks, Sara - Original Message From: Luke Paireepinart <[EMAIL P

Re: [Tutor] IDLE Usage - was Interpreter Restarts

2007-07-16 Thread Sara Johnson
First off, yes, I was referring to (I guess you could say) a non-python editor. I use an SSH editor set up by my school. If I type python at the prompt in SSH, I get the Python shell. My problem is, I can't open a GUI no matter what I subscribe to or purchase. I have Python 2.3 and yes, I ca

Re: [Tutor] interpreter restarts

2007-07-16 Thread Sara Johnson
Luke, Jacob, et. al... Dumb question (may be slightly off course from what you two were discussing), but are you both describing how to get the IDLE to run along with the editor? I may just be getting too many things confused. I've tried to run IDLE, but that's not working. I have the same f

Re: [Tutor] Bundle help!

2007-07-15 Thread Sara Johnson
Regarding my early question on bundle. Not sure if this makes any sense, but I noticed where else it's used. If this looks funny, remember that I did not write it (and therefore do not entirely understand it). I'm only editing it according to some specific guidelines. >>>for key in h.ke

Re: [Tutor] Bundle help!

2007-07-15 Thread Sara Johnson
Thanks to everyone for your help and quick responses! Has anyone heard of the "bundle method?" Some of you have already said you didn't. I wonder why it's included as part of my code/instructions. I'm trying to accomplish what I 'think' they want with the other questions I've posed here

Re: [Tutor] Bundle help!

2007-07-10 Thread Sara Johnson
Alan Gauld <[EMAIL PROTECTED]> wrote: "Sara Johnson" wrote > this is sort of a script that was written and I'm making > modifications to. Due to my serious lack of experience, > I'm afraid to rewrite anything. This is probably a long shot given the code

Re: [Tutor] Bundle help!

2007-07-09 Thread Sara Johnson
You can find out if you follow these instructions though: Go to http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=comp.lang.py enter 'zip inverse', and check search Python only. On Jul 8, 2007, at 6:41 PM, Sara Johnson wrote: > How would I do that so I wind up

Re: [Tutor] Bundle help!

2007-07-09 Thread Sara Johnson
x27;Sara', 80)] (Numerical) List 2, [('Fred', 20), ('Kent', 50), ('Sara', 80) ('Joe', 90)] It looks like these are appended together, but to re-sort, how do I (not sure if this is a word) "unappend" them? Thanks, Sara

Re: [Tutor] Bundle help!

2007-07-08 Thread Sara Johnson
I brought this up with Kent a little while ago... >>>If you have a list of pairs of (name, percentage) then you should be >>>able to sort it directly with the sort() method of the list. For >>>example: >>>In [3]: data = [ ('Kent', 50), ('Sara', 80), ('Fred', 20) ] >>>In [4]: data.sort() >>

Re: [Tutor] Key Error

2007-07-08 Thread Sara Johnson
If this is in reference to the code that I listed. I have no experience with Python so I may have left something off unknowingly which resulted in him questioning whatever was there. The strong words probably should be directed at me for not knowing what I'm doing. jim stockford <[EMAIL

Re: [Tutor] Key Error

2007-07-08 Thread Sara Johnson
to decipher my mess, or too much information. I believe 'NEWI' is supposed to be a new subkey that will hold a value called 'newind.' But if I can't get the program to initialize this 'NEWI' then I don't know how any values can come from it. Thanks

Re: [Tutor] Key Error

2007-07-08 Thread Sara Johnson
AIL PROTECTED] Cc: tutor@python.org Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sara Johnson said unto the world upon 07/08/2007 01:34 AM: > Sorry, this is probably too general a question, but I can't find > any specific information on

[Tutor] Key Error

2007-07-07 Thread Sara Johnson
Sorry, this is probably too general a question, but I can't find any specific information on it. What exactly is a "key error" and how do I clear it? I entered something like this: abcd=h[key]['ABCD'] and when I run it I'm getting KeyError: 'ABCD' What does this mea

[Tutor] Help! Pickle file

2007-07-04 Thread Sara Johnson
This may sound silly, but when writing a program where there is a pickle file, how does that get included into the entire program? For instance; to create a new pickle file.. #!/usr/bin/python # Filename: pickling.py import cPickle as p #imp

[Tutor] Bundle help!

2007-06-25 Thread Sara Johnson
I'm to use the bundle method to append some information to a list. I have no idea how to do that! I have Python for Dummies and I think I need Python for Complete Idiots because I am not seeing how to do this!! I have basic C+ knowledge and about 6 programs to write (in one month's time!) and