Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: how to delete thread
Post: RE: how to delete thread
(Apr-28-2025, 08:08 AM)buran Wrote: OP asks how to delete thread here on the python forum
So you can't delete threads at python-forum.io and threading.Thread doesn't allow you to delete/terminate th... |
|
DeaD_EyE |
Board |
4 |
286 |
Apr-28-2025, 07:30 PM |
|
|
Thread: how to delete thread
Post: RE: how to delete thread
It's possible, but it is not exposed. It's not exposed, because it locks up the interpreter.
Here is a way to end a thread. The Event object is used, to communicate thread safe:
import time
from th... |
|
DeaD_EyE |
Board |
4 |
286 |
Apr-27-2025, 07:25 PM |
|
|
Thread: Wish to write a code for an electronic load and a power supply for measuring Eff
Post: RE: Wish to write a code for an electronic load an...
What is the question?
Does it work? |
|
DeaD_EyE |
General Coding Help |
2 |
293 |
Apr-25-2025, 01:30 PM |
|
|
Thread: GUI created in Tkinter does NOT show up
Post: RE: GUI created in Tkinter does NOT show up
Change ventana.mainloop to ventana.mainloop().
Without the parenthesis, you do not call the function, but it's still valid code.
This is why there is no exception. The mainloop is not called, which ... |
|
DeaD_EyE |
GUI |
3 |
606 |
Apr-09-2025, 04:26 PM |
|
|
Thread: Did you know that map() accepts more than one iterable?
Post: Did you know that map() accepts more than one iter...
I read the changelog of Python 3.14-dev: https://docs.python.org/3.14/whatsnew/3....ge-changes and fond something interesting:
Quote:The map() built-in now has an optional keyword-only strict flag li... |
|
DeaD_EyE |
General Coding Help |
2 |
534 |
Apr-09-2025, 11:47 AM |
|
|
Thread: Does anyone else get overwhelmed choosing what to learn next?
Post: RE: Does anyone else get overwhelmed choosing what...
(Apr-09-2025, 05:45 AM)EricFletcher Wrote: Is this normal for beginners?Yes
(Apr-09-2025, 05:45 AM)EricFletcher Wrote: How do you decide what path to focus on without feeling like you're missing ... |
|
DeaD_EyE |
News and Discussions |
1 |
375 |
Apr-09-2025, 08:35 AM |
|
|
Thread: A working code to upload a file using sftp?
Post: RE: A working code to upload a file using sftp?
An example with paramiko:
from getpass import getpass
from stat import S_IFDIR
from paramiko import SSHClient, AutoAddPolicy, SFTPAttributes
FILE = "/home/public/test.txt"
DIR = "/home/public"
HOS... |
|
DeaD_EyE |
Networking |
5 |
3,067 |
Apr-07-2025, 09:51 AM |
|
|
Thread: Has Anyone Used or Is Currently Using SunnyNet? Looking for Feedback!
Post: RE: Has Anyone Used or Is Currently Using SunnyNet...
This is for Python: https://github.com/bruce-chappell/SunnyNet
A neural network framework for solving 3D NLTE radiative transfer in stellar atmospheres.
This is what I like so much about programming.... |
|
DeaD_EyE |
General Coding Help |
3 |
541 |
Apr-05-2025, 11:03 AM |
|
|
Thread: function as parameter
Post: RE: function as parameter
With First Class Functions In Python, you can:assign functions to names
pass them along as arguments
store them in bigger data structures
define them inside another function and also return them fr... |
|
DeaD_EyE |
General Coding Help |
2 |
771 |
Apr-01-2025, 07:10 PM |
|
|
Thread: not updating
Post: RE: not updating
import tkinter as tk
window = tk.Tk()
score = 0
def click():
global score # <- allows updating varibales on module level
# if this is missing, it's a UnboundLocalError
# The use of global... |
|
DeaD_EyE |
GUI |
4 |
512 |
Mar-25-2025, 02:33 PM |
|
|
Thread: in c# create a loop counting from 0 to 5, consecutively
Post: RE: in c# create a loop counting from 0 to 5, cons...
Quote:The problem is that I'm limited. The more cma you create, the more the application slows down and freezes. In this example of the RMMA indicator, if we ask to create a CMA for each period, it wi... |
|
DeaD_EyE |
General Coding Help |
19 |
2,324 |
Mar-23-2025, 10:53 PM |
|
|
Thread: Coding music
Post: RE: Coding music
(Mar-19-2025, 10:52 PM)Skaperen Wrote: here is Eivør Pálsdóttir:
https://www.youtube.com/watch?v=pqnMkUcTmys
Funny, I know it and love it.
Quote:i think YouTube has managed to defeat yt-dlp. it di... |
|
DeaD_EyE |
Bar |
6 |
635 |
Mar-20-2025, 10:03 PM |
|
|
Thread: Coding music
Post: RE: Coding music
AI-Generated: If We Set Everything on Fire, We Save Many Intermediate Steps (#214)
Via YouTube:
Then just install ffmpeg and yt-dlp via pip.
Then download playlists from YouTube: Search: coding music... |
|
DeaD_EyE |
Bar |
6 |
635 |
Mar-19-2025, 06:38 PM |
|
|
Thread: Nested loops vs list comprehension - pls. help
Post: RE: Nested loops vs list comprehension - pls. help
(Mar-16-2025, 05:32 AM)Pedroski55 Wrote: The exercise does not make sense! You are selling 4 different chairs at 4 different prices and each time in 3 different quantities?With courses from Udemy, I... |
|
DeaD_EyE |
Homework |
5 |
842 |
Mar-17-2025, 07:29 AM |
|
|
Thread: Nested loops vs list comprehension - pls. help
Post: RE: Nested loops vs list comprehension - pls. help
The code is correct, but they expect that you to print each element and not the representation of the list, which holds all elements.
products_on_sale = ["Chair_Type_1", "Chair_Type_2", "Chair_Type_3... |
|
DeaD_EyE |
Homework |
5 |
842 |
Mar-14-2025, 09:03 PM |
|
|
Thread: How does venv update $PATH without activating on Windows?
Post: RE: How does venv update $PATH without activating ...
(Mar-13-2025, 12:27 PM)bottomfeeder Wrote: That's ffmpeg-normalize, not ffmpeg. It is a pip package. I'm not asking how to locate ffmpeg, I'm asking how to have python locate exes within a venv's Sc... |
|
DeaD_EyE |
General Coding Help |
3 |
809 |
Mar-13-2025, 01:46 PM |
|
|
Thread: How does venv update $PATH without activating on Windows?
Post: RE: How does venv update $PATH without activating ...
This seeks ffmpeg-normalize.exe in all available PATHs.
subprocess.run(["ffmpeg-normalize.exe", r"C:\path\to\audio.mp3")AFIK the ffmepg tools are not installed via pip.
If you installed ffmpeg as a n... |
|
DeaD_EyE |
General Coding Help |
3 |
809 |
Mar-13-2025, 09:31 AM |
|
|
Thread: Prevention of deleting and creating folders
Post: RE: Prevention of deleting and creating folders
The Operating System and File System manages Access Rights to directories and files. On Windows, it's called ACL. Doing this on Linux is easier, because you have lesser settings.
I found some info he... |
|
DeaD_EyE |
General Coding Help |
1 |
547 |
Mar-10-2025, 02:19 PM |
|
|
Thread: Merge htm files with shutil library (TypeError: 'module' object is not callable)
Post: RE: Merge htm files with shutil library (TypeError...
If you run the program twice, then also the content of "ouput_file.htm" is included to "output_file.htm", but "output_file.htm" gets new content, because the output is read and written from the same f... |
|
DeaD_EyE |
General Coding Help |
7 |
3,446 |
Mar-08-2025, 01:07 PM |
|
|
Thread: __eq__ method related problem
Post: RE: __eq__ method related problem
Edit: I saw it too late. This answer is only related to comparison. tl;dr: Do not compare apples with bananas :-)
For comparison, you need the methods __lt__, __le__, __gt__, __ge__
How can you comp... |
|
DeaD_EyE |
General Coding Help |
6 |
920 |
Mar-08-2025, 12:45 PM |