Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
2 answers
165 views

# Iterative factorial function to safely compute very large factorials without hitting Python's recursion limit. # Recursive functions have a maximum depth, usually 1000, and factorial(2000) would ...
user31537598's user avatar
2 votes
0 answers
156 views

when executing the Selenium Python script, the following terrible error appears: object address: 000001340 object refcount: 2 object type: 00007FFA03482550 object type name: RecursionError object repr:...
Edward Rochester's user avatar
0 votes
1 answer
53 views

I'm messing around with recursion and decided to turtle. I'm trying to get some code to build a Sierpenski Triangle and it's working pretty well so far! However, when I plug in larger values of n to ...
shan's user avatar
  • 3
0 votes
0 answers
85 views

I used super() as a part of the __setattr__ method to update a dictionary whenever an attribute value is set on an instance of a class; however, a warning reported as my class object has no such ...
Karenzz's user avatar
-4 votes
1 answer
3k views

Here's the question: 07. Define a function named import_zip_codes_json() which imports the zip_codes.json as a list in working directory. Here's the code: import json with open('zip_codes.json') as ...
Iris's user avatar
  • 1
1 vote
2 answers
225 views

I'm trying to write a program with Python to emulate an 'old' online game in which you drive a worm through the screen with some inputs from the keyboard. import turtle # Set screen and background wn ...
Mira's user avatar
  • 25
-1 votes
1 answer
127 views

I am trying to get the interval of acceptable values in this inequality: 12/300 < 0.45*sympy.sqrt(Ro/(2*f*x)) where R is calculated in the code. I want the interval of x. How can I get it? #...
Gustavo Wohlers's user avatar
-1 votes
1 answer
149 views

I have a table in pyqt5 and when I modify a cell I call a method(changeIcon), inside this method I use an if statement to check which column has been changed and based on the column I change some ...
IT-SRL's user avatar
  • 47
0 votes
0 answers
308 views

I have implemented recursive functions that work on big database and it raises RecursionError: maximum recursion depth exceeded while calling a Python object To solve it I added sys.setrecursionlimit(...
Tom Lai's user avatar
0 votes
1 answer
361 views

I'm a student working on this homework problem. The code tries to find a solution to any given circular board game, where a list is given as an argument. The values in the list tell the program how ...
Jack Medrek's user avatar
2 votes
2 answers
703 views

I was trying to execute the Binary Search program in python. I followed the algorithm steps yet it gives me this error. Here's my code: def binarySearch(a,k,l,r): if l > r: return -...
Raj's user avatar
  • 69
0 votes
1 answer
78 views

we are coding an app that is a converter. So there are 8 text fields in the app (from .kv file). We use on_text parameter to update the other text fields accordingly, but when we update a certain ...
Code Clickers's user avatar
0 votes
1 answer
523 views

I am trying to move my Django file storage to an external server, connected via ethernet to a small local network. This local network is not connected to the internet. I am using django-storages ...
Anne Haley's user avatar
0 votes
2 answers
612 views

I was testing some features in Python for fun ;) But I have a recursion error that I don't understand class Test(float): def __new__(cls, value): return super().__new__(cls, value) ...
tomtomfox's user avatar
  • 289
1 vote
1 answer
533 views

Single-threaded python program, intending to be responsive to events from raspberry pi button presses also wants to wake every minute to update an LCD display. Main function: btn_1 = 21 GPIO.setup(...
manos's user avatar
  • 21
0 votes
1 answer
2k views

I am doing a Python exercise using recursion. The goal is to request which maximum value the user wants to study and to test all the values from 1 to this maximum value. The algorithm always reachs 1 ...
Mathieu Seligmann's user avatar
19 votes
4 answers
62k views

I'm trying to add a blog app to my Django project. When I put everything together, I can see my blog posts page, but something with the blogapp/urls.py file is causing me to get a maximum recursion ...
Sandwich Heat's user avatar