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

I refuse to ask AI for help as I would like another human (hopefully) to give me insight as to how I can achieve this goal of mine. In the picture provided, the "Exported Files" folder is ...
Obsidian Asphodel's user avatar
0 votes
1 answer
44 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
44 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
59 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
1 answer
59 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
-8 votes
0 answers
58 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
77 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
23 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
104 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
69 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
73 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
88 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
74 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
92 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
92 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

15 30 50 per page
1
2 3 4 5
147048