tqdm / tqdm

:zap: A Fast, Extensible Progress Bar for Python and CLI

Home Page:https://tqdm.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Name the TMonitor thread?

hgjazhgj opened this issue · comments

  • 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')
        ...