Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name the TMonitor thread? #1544

Open
4 of 6 tasks
hgjazhgj opened this issue Dec 30, 2023 · 0 comments
Open
4 of 6 tasks

Name the TMonitor thread? #1544

hgjazhgj opened this issue Dec 30, 2023 · 0 comments

Comments

@hgjazhgj
Copy link

hgjazhgj commented Dec 30, 2023

  • I have marked all applicable categories:
    • documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand StackOverflow#tqdm is more appropriate)
    • new feature request
  • I have visited the source website, and in particular read the known issues
  • I have searched through the issue tracker for duplicates
  • I have mentioned version numbers, operating system and environment

When I debugged my own code, I found a thread with the default name Thread-%d, this confused me and made me think that something was wrong with the component I had written
But finally I found it is the TMonitor thread in tqdm

I think it would be excellent to give TMonitor a name when initializing him!
(and more excellenter to show that he is a tqdm thread)

Just like this

class TMonitor(Thread):
    def __init__(self, tqdm_cls, sleep_interval):
        Thread.__init__(self, name='tqdm.TMonitor')
        ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant