Re: [Tutor] How to deal failed function and 0xDEADBEEF type errors...

2010-07-15 Thread Alan Gauld
"Sean Carolan" wrote Run it by itself and there's no output: testNestEggFixed Try to print it and it throws this error: print testNestEggFixed What am I missing here? parentheses? I assume you are from a Visual VBasic background? Unlike VB Python requires you to have the parentheses af

Re: [Tutor] How to deal failed function and 0xDEADBEEF type errors...

2010-07-15 Thread Emile van Sebille
On 7/15/2010 11:07 AM Sean Carolan said... Try to print it and it throws this error: print testNestEggFixed That's not an error -- that's what testNestEggFixed -- a function located at 0x0214D5F0. If you intended to _execute_ the function, add parens and the appropriate parameters to you

[Tutor] How to deal failed function and 0xDEADBEEF type errors...

2010-07-15 Thread Sean Carolan
Spoiler alert: This was encountered while working on MIT OCW 6.000 problem set 4. http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00-introduction-to-computer-science-and-programming-fall-2008/assignments/ps4.py My function returns a list as it should: #