2,209,106 questions
- Bountied 3
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
16
views
`multiprocessing.JoinableQueue.empty()` seems badly broken
Short version. I'm aware of the fact that multiprocess.Queue.empty() is unreliable. This makes sense to me. I understand that the actions of one thread may take a moment to be visible to another ...
0
votes
1
answer
21
views
Print go back one line and clear not working in PowerShell + Python
In Python I am trying to print something, erase/clear that line, then print over it again. The below code works on one of my computers but the second the ANSI escape codes (the 033円[F bits) get ...
1
vote
0
answers
17
views
"No module named django_heroku" (or django_on_heroku) error
I'm trying to install OWASP PyGoat, and then create a secure version of it. I followed method 2 on the repository's site (https://github.com/adeyosemanputra/pygoat?tab=readme-ov-file#method-2), but ...
-6
votes
0
answers
28
views
Is google adk free? New user asked to pay ₹15,000 as "mandate" — is this legitimate? [closed]
I am new to this platform/service and during the setup it is asking me to approve a mandate of ₹15,000 INR.
I’m not sure:
Why this mandate is required
Whether the amount is actually deducted or just ...
-4
votes
0
answers
22
views
When building platforms with multiple Python services (FastAPI, Flask, Django, internal APIs), we kept facing the same issues: [closed]
When building platforms with multiple Python services (FastAPI, Flask, Django, internal APIs), we kept facing the same issues:
• Authentication duplicated across services
• Roles and permissions ...
2
votes
1
answer
23
views
Why does the content of a dictionary change when passing dictionary data using signals and slots in PySide6?
When I am using PySide6, I pass a dictionary through a signal, but the dictionary data I receive in the slot function changes. The content itself does not change, but the order of the keys in the ...
Advice
0
votes
1
replies
22
views
Speeding up unzipping of file in Google Cloud Storage (GCS)
I receive ZIP files everyday to a bucket. Part of my Python pipeline is to extract these out into the individual CSVs. However, wondering if there's a quicker way?
There's roughly 20 files in each ZIP,...
1
vote
2
answers
34
views
How to delete one single element in a DataFrame
Would like to delete one single element from a Python DataFrame, as in:
a x b c
1 2 3
becomes
a b c
1 2 3
All the solutions I have seen seem to require copies and creating a new DataFrame, which ...
-1
votes
1
answer
19
views
Fix memory leak in logging.Handler
I am writing a custom logger (with custom handler). Found out that I have a memory leak when I am using HttpFluentHandler. I confident that problem deals with the handler, because there are no memory ...
Advice
0
votes
3
replies
39
views
convert a numpy array[N] of 'S{n}' to an array[2*N] of 'S{n/2}'?
I have some code where I read N strings of a given size n into an ndarray, which I would then like to cut in half to obtain a twice longer array of strings size n/2. Is there a numpy operation which ...
-2
votes
0
answers
36
views
Numpy's np.polyfit() returns matching types Error? [closed]
I have a dataTable that is a list of lists. Every one of those lists is a list of different data. The first list containes the year, the second is data about 'poverty' for every one of those years, ...
1
vote
1
answer
30
views
Mock not called by subprocess
An instance of class A starts a sub-process that calls a method of an instance of class B. It works as expected in real-life, but unit tests fail because the mock object replacing the object of class ...
0
votes
1
answer
43
views
Icecream output format align
I have this code:
from icecream import ic
...
ic (psycopg.ClientCursor(conn).mogrify(consulta, argumentos).expandtabs(3))
Which gives me this output
ic| psycopg.ClientCursor(conn).mogrify(consulta, ...
Advice
0
votes
1
replies
22
views
Advice related to npmai(https://pypi.org/project/npmai)
Does this package is reliable for llm access it grants 7 LLMs i should use it in my projects or not if yes so where during development or in testing or just for learning agentic ai or one important ...
0
votes
1
answer
99
views
Why is Chile included [duplicate]
countries = ["America", "Canada", "Australia", "China", "Chile"]
for c in countries:
if c.startswith("C"): # To get countries ...