My first Python project, been working on it for 3-4 weeks to mainly learn Python... Been having a blast with Python, until couple of days ago decided to upgrade from python 3.2 to 3.4 and now it wont even run anymore.
It still works with python 3.2, but when I switch it to 3.4 interpreter... Here's the log:
C:\Users\User\Desktop\prj>python main.py
Traceback (most recent call last):
File "main.py", line 2, in <module>
import world
RuntimeError: maximum recursion depth exceeded during compilation
Here's the super simplified world.py which is causing this:
import pygame
import events
import collector
events_bringer = events.c_events()
collectimg = collector.ImageController()
class c_world ():
gridx = 0
gridy = 0
def f_function1(self):
pass
def f_function2(self):
pass
def f_function3(self):
pass
def f_gridgetter(self):
if self.gridx == 0 and self.gridy == 0:
print("current location %d, %d" % (self.gridx, self.gridy))
I am seriously at dead end. I have no idea what is going on.
If anyone has any idea, I would love to hear it, pretty please.
Day before yesterday I spent 4-5 hours scratching my head, becoming seriously frustrated, kept breather working on other stuff and today came back with no clue formed in my mind.
Also, if you have answer why it runs with 3.2 but not with 3.4... Sincerely appreciated.