Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more
Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

I'm using Django with React. I'm creating a CRUD application for products. My Product table is related to the Category, Brand, Model, Quality, and Supplier tables. I can save the data, but when I try ...
Andres Vilca's user avatar
0 votes
1 answer
32 views

I made a small app in Python, using Selenium and Firefox, where I want that in response to a click in an anchor element, the file is downloaded instead of opened in a new tab (PDF file). from selenium ...
JDias's user avatar
Best practices
1 vote
2 replies
47 views

Any thoughts on how I could simplify this code a bit, for example is there any way of putting the format string in a root handler so that it is then inherited in the file logs. Just feels like a lot ...
NickC's user avatar
-1 votes
0 answers
49 views

It turns out that when I run these instructions in my command line in AWS Ubuntu: /usr/bin/python3.11 && /home/bitnami/spacy_venv/bin/python3.11 /home/bitnami/htdocs/android_app_selenium.py ...
rmor23's user avatar
-7 votes
0 answers
56 views

I'm an absolute Newbie (I only started programming this seriously since 2 hours) and I have gotten stuck on my program! The first and finished part of this program chooses 3 numbers from a list of 73 ...
Roby Engel's user avatar
Best practices
1 vote
3 replies
72 views

I tried to optimize my factorization function: def factorize1(n: int, /) -> Factorization: """Return dictionary, where keys are all prime factors of natural n and values are ...
Constantine's user avatar
Best practices
0 votes
0 replies
19 views

I have Fan-out/Fan-in design that triggers several activities parallelly and waits for all of them before running an aggregator activity: @myApp.orchestration_trigger(context_name="context") ...
euh's user avatar
-2 votes
1 answer
100 views

A continuation of yesterday's question. I need to count how many times a word (gene name) appears on a row (bacterial sample). I needed to see how many double-copied genes there are. Since yesterday, ...
Dragoran21's user avatar
Tooling
0 votes
4 replies
64 views

I'm building a backlink analysis tool and need to handle domains with tens of thousands of backlinks. Current approach: import csv def export_backlinks(backlinks, output_file): seen = set() ...
victoria's user avatar
-3 votes
1 answer
69 views

I am working on a polymarket bot and downloaded historical bitcoin data from bybit. Whenever I try to iterate it I get this error: json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 9035)...
Lugger Lug's user avatar
1 vote
1 answer
85 views

I have a Python function that accepts a socket.AddressFamily argument. import socket def fn(family: socket.AddressFamily) -> None: ... This works fine. However, intersphinx doesn’t know this ...
Remco Haszing's user avatar
-6 votes
1 answer
73 views

I have created a file named file_read_funktions.py. Within is a function defined as: def file_read(dateiname): check_datei(dateiname) open(dateiname, 'r') inhalt = file.read(dateiname) ...
Karin Bermel's user avatar
Best practices
0 votes
13 replies
88 views

Is it “appropriate” to use Python to automate the creation of certain tables/views in PostgreSQL? The thing is, some columns have too many unique values, and writing the script becomes time-consuming ...
Archipel's user avatar
Best practices
0 votes
3 replies
88 views

For iterators, there is a clear protocol: once they are exhausted, they remain exhausted. It is not allowed to create an iterator whose __next__() raises StopIteration and, called once again, return a ...
glglgl's user avatar
1 vote
1 answer
69 views

I'm trying to calculate the quality property of a storage tank over time. The quality is the weighted average of the previous period's quality (weighted by closing stock balance) and the current ...
orange's user avatar

15 30 50 per page
1
2 3 4 5
147056