|
I forgot how to create a Infinite Counting Loop
|
|
11-12-2009, 01:34 AM
(This post was last modified: 11-12-2009 01:39 AM by Anman.)
Post: #1
|
|||
|
|||
|
I forgot how to create a Infinite Counting Loop
And cant seem to find info on such a thing on it in the manual
python Code:
i get the error " File "<stdin>", line 5, in a . . . File "<stdin>", line 5, in a RuntimeError: maximum recursion depth exceeded" how can i create a infinite loop whereas instead of giving a error saying that its an infinite loop it gives me the number? and continues to add and add and no it doesn't change anything if you have it stop after it reaches x http://www.youtube.com/watch?v=iyXYot6wHuE |
|||
|
11-12-2009, 01:38 AM
(This post was last modified: 11-12-2009 01:39 AM by Anman.)
Post: #2
|
|||
|
|||
|
RE: I forgot how to create a Infinite Counting Loop
Should be print( c ) not print ( c )
HTML-Tricks |
|||
|
11-12-2009, 01:44 AM
(This post was last modified: 11-12-2009 01:52 AM by GenDeath.)
Post: #3
|
|||
|
|||
|
RE: I forgot how to create a Infinite Counting Loop
hahah wow i wish i wouldve noticed that
![]() Okay new issue python Code:
it now gives RuntimeError: maximum recursion depth exceeded in cmp and these File "<stdin>", line 6, in a File "<stdin>", line 6, in a File "<stdin>", line 6, in a File "<stdin>", line 6, in a File "<stdin>", line 6, in a File "<stdin>", line 3, in a http://www.youtube.com/watch?v=iyXYot6wHuE |
|||
|
11-12-2009, 04:36 AM
Post: #4
|
|||
|
|||
|
RE: I forgot how to create a Infinite Counting Loop
Why do you need an infinite loop?
Projects:
SteamAPI |
|||
|
11-12-2009, 06:14 AM
(This post was last modified: 11-12-2009 06:19 AM by Anman.)
Post: #5
|
|||
|
|||
|
RE: I forgot how to create a Infinite Counting Loop
100000000000 needs to be set to 10000
For more info see http://docs.python.org/library/sys.html And you are aware you could just use a loop to do this right? HTML-Tricks |
|||
|
11-13-2009, 06:06 AM
Post: #6
|
|||
|
|||
| RE: I forgot how to create a Infinite Counting Loop | |||
|
11-13-2009, 01:13 PM
Post: #7
|
|||
|
|||
RE: I forgot how to create a Infinite Counting Loop
(11-12-2009 01:34 AM)GenDeath Wrote: And cant seem to find info on such a thing on it in the manual If your program is that simple can't you just use a for loop? Or do you need this running in the background while your running another piece of code.
|
|||
|
11-18-2009, 11:17 AM
(This post was last modified: 11-18-2009 11:18 AM by GenDeath.)
Post: #8
|
|||
|
|||
|
RE: I forgot how to create a Infinite Counting Loop
well actually I used to do infinite loops just for stress testing my comp seeing how many infinite counting loops I could create and play video games as well as play music simultaneously.
Its not so much I need it its just making me mad that i sued to be able to do it and now I can't. http://www.youtube.com/watch?v=iyXYot6wHuE |
|||
|
11-20-2009, 04:14 AM
Post: #9
|
|||
|
|||
|
RE: I forgot how to create a Infinite Counting Loop
Something like:
python Code:
or if you want it to count(so it actually does something) python Code:
|
|||
|
11-21-2009, 07:04 AM
(This post was last modified: 11-21-2009 09:52 AM by Anman.)
Post: #10
|
|||
|
|||
RE: I forgot how to create a Infinite Counting Loop
(11-20-2009 04:14 AM)Siretu Wrote: Something like: Couldn't that overflow though? It should be python Code:
|
|||
|
« Next Oldest | Next Newest »
|








