xcode able to run script?

2008-04-28 Thread Alex Pavluck
Does anyone know if it is possible to test your scripts from within the xcode editor? I am currently using Uilipad on windows and there is a sub window that lets you view your output when you launch the script from within the ide. hopefully this makes sense. thanks, Alex -- http://mail.python.or

Re: break the loop in one object and then return

2006-06-26 Thread Alex Pavluck
Peter, Why do you make such claims without any reason to do so? This is my own thing. So, I guess I am a student but just a student of my own accord. So, please don't reply if you don't have anything to contribute. As for the - mynum I guess that could happen but I am just doing this so that t

break the loop in one object and then return

2006-06-26 Thread Alex Pavluck
I am trying to write the following code to block up evaluation and prompting for entering new information. However, when I break the loop in one object and then return it does not start at the beginning again but rather at the point where it exited. Can someone look at the following code and give

error with string (beginner)

2006-06-25 Thread Alex Pavluck
Hello. I get the following error with the following code. Is there something wrong with my Python installation? code: import types something = input("Enter something and I will tell you the type: ") if type(something) is types.IntType: print "you entered an integer" elif type(something) is t

script vs inneractive

2006-05-25 Thread Alex Pavluck
I am a little confused because I write most of my programs in a script editor but not all the code executes unless I run it from the inneractive shell. Am I doing something wrong? A good example is "return 1" in a script returns nothing where as in the inneractive shell it will return 1 or true.

"Thinking like CS" problem I can't solve

2006-05-23 Thread Alex Pavluck
Hello. On page 124 of "Thinking like a Computer Scientist". There is an exercise to take the following code and with the use of TRY: / EXCEPT: handle the error. Can somone help me out? Here is the code: def inputNumber(n): if n == 17: raise 'BadNumberError: ', '17 is off limits.'

SPE output

2006-05-18 Thread Alex Pavluck
Does anyone know if there is a way to configure the SPE output? IDLE and Pythonwin IDE both have nicely formatted output that shows tabs and spaces correctly. SPE seems to just print out the text without any formatting. SPE is amazing with the intellisense but maybe there is a better choice out

Re: \t not working

2006-05-17 Thread Alex Pavluck
ha ha...good point. I didn't realize that you could run it all together. I guess the "single string" part should have been a tip off. Anyway, more questions to come soon. Thanks everyone! -- http://mail.python.org/mailman/listinfo/python-list

Re: \t not working

2006-05-17 Thread Alex Pavluck
Sorry, I just realized that if I run it as a script it just drops a line and doesn't tab but if I run it from the shell it outputs perfectly. Thanks for the help. -- http://mail.python.org/mailman/listinfo/python-list

\t not working

2006-05-17 Thread Alex Pavluck
I am just learning Python and I am using the book, "Thinking like a Computer Scientist". There is an exercise that I am not able to get working and it is really easy so I thought I would ask for help here. Q: As an exercise, write a single string that: Procuces this