[Tutor] Stacks and Stack underflow/Stack overflow

2011-11-19 Thread Joe Batt
Hi All Could some kind soul please explain why you get a stack underflow and a stack overflow. I am getting the following error in Python 3 Traceback (most recent call last): File "/Users/joebatt/Desktop/python/pickling puzzle 5.py", line 39, in a=pickle.load(file)_pickle.UnpicklingError:

[Tutor] Further pickle problem :0(

2011-11-19 Thread Joe Batt
Hi all again Thank you to those that have helped me previously with this problem it is appreciated. Thanks to Walter I have actually found the pickle file that I am trying to restore to a variable however I am getting the following error Traceback (most recent call last): File "/Users/joebatt/

[Tutor] Pickling files in Python

2011-11-19 Thread Joe Batt
) they look the same. I am viewing them in notepad on the Mac. Many thanksJoe Pickle an object- Puzzle 5 # Joe Batt 18 Nov 2011 - http://www.pythonchallenge.com/pc/def/peak.html

[Tutor] In a pickle over pickles….Python 3

2011-11-18 Thread Joe Batt
Hi All,Sorry to trouble you all again with more nooby problems! Only been programming a week so still all a haze especially since self taught….. I am opening a url and saving it to a file on my computer, then I am trying to pickle it. I have written the url file to a file on my computer then ope

[Tutor] Printing with no newline :(

2011-11-05 Thread Joe Batt
I am learning Python 3 and programming and am very new so please bear with me… I am writing a program to pull out specific characters in a sequence and then print then out. So far so good however when the characters are printed out they pint on separate lines as opposed to what I want, all on th

[Tutor] Help with re in Python 3

2011-11-04 Thread Joe Batt
Hi all,Still trying with Python and programming in general…. I am trying to get a grip with re. I am writing a program to open a text file and scan it for exactly 3 uppercase letters in a row followed by a lowercase followed by exactly 3 uppercase letters. ( i.e. oooXXXoXXXooo )If possible co

[Tutor] A total newbie…sorry

2011-10-27 Thread Joe Batt
I am just starting to try to learn Python on IDLE on a Mac running Python 3.2.2 (v3.2.2:137e45f15c0b, Sep 3 2011, 17:28:59) and I have come unstuck at the very beginning I tried >>> print "Hello"SyntaxError: invalid syntax>>> print 'Hello'SyntaxError: >>> invalid syntax>>> print "Hello"SyntaxE