On 12/22/2014 07:04 PM, sohcahto...@gmail.com wrote:
def test(t):
... print(t)
... test(t+1)
...
test(1)
1
2
3
4
998
999
Traceback (most recent call last):
File "", line 1, in
File "", line 3, in test
File "", line 3, in test
File "", line 3, in test
File "", line 3,
On Dec 22, 2014 6:06 PM, wrote:
>
> Huh...there actually is a limit of about 1,000. I'm assuming this is
hard-coded? I did a similar test with Java a while back and was getting
different results every time.
The default is 1000 but it can be configured with sys.setrecursionlimit. I
think Java on
On Monday, December 22, 2014 3:57:31 PM UTC-8, Dave Angel wrote:
> On 12/22/2014 06:48 PM, Ian Kelly wrote:
> > On Dec 22, 2014 2:37 PM, "Dave Angel" wrote:
> >>
> >> I'll pick on one function first, called instructions(). If the user
> > types something invalid, you print "Invalid input." and ca
On 12/22/2014 06:48 PM, Ian Kelly wrote:
On Dec 22, 2014 2:37 PM, "Dave Angel" wrote:
I'll pick on one function first, called instructions(). If the user
types something invalid, you print "Invalid input." and call the function
again. In this case, because the call is at the end, no harm is
On Dec 22, 2014 2:37 PM, "Dave Angel" wrote:
>
> I'll pick on one function first, called instructions(). If the user
types something invalid, you print "Invalid input." and call the function
again. In this case, because the call is at the end, no harm is usually
done, but it would be tricky to e
On 12/22/2014 02:55 PM, Luke Tomaneng wrote:
Hello to all those in this forum,
Hello. When starting a thread, please tell us your environment. In
this case, it would be the python version and OS.
My code seems to have a mind of its own. I have been writing a program to reenact
the "
In Luke Tomaneng
writes:
> The "cameraman" function restarts itself when it ends, and the "kid"
> function calls "instructions()." Does anyone know why?
The cameraman function restarts itself because ... that's what you told it
to do. As far as I can see, every possible logic branch ends up w
Hello to all those in this forum,
My code seems to have a mind of its own. I have been writing a program to
reenact the "Twenny Wun" Vine video, and it seems to be activating functions
without me calling them. Here is the script:
def kid():
print "Cameraman: You stupid."
kid1 = raw_