TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Python threads: communication and stopping

40 pointsby alexis-dover 13 years ago

2 comments

g3orgeover 13 years ago
I learn new things about Python every day.
oconnoreover 13 years ago
The "politely ask it to stop" paradigm is not a solution. For it to work, your thread cannot perform any blocking calls, nor can it call out to any long running functions that are not specifically designed to check a stop flag frequently.
评论 #3396562 未加载
评论 #3396360 未加载