Skip to content

Commit

Permalink
bump version, Merge branch 'devel'
Browse files Browse the repository at this point in the history
- closes #399
    - fixes #398
    - fixes #420 (probably)
    - complements #464
  • Loading branch information
casperdcl committed Oct 15, 2017
2 parents 537aba0 + fcbb041 commit 2c93447
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
17 changes: 9 additions & 8 deletions benchmarks/benchmarks.py
Expand Up @@ -28,15 +28,16 @@ def setup(self):
self.t = t1 - t0

def track_tqdm(self):
t0 = self.time()
[0 for _ in self.tqdm(self.iterable)]
t1 = self.time()
with self.tqdm(self.iterable) as pbar:
t0 = self.time()
[0 for _ in pbar]
t1 = self.time()
return (t1 - t0 - self.t) / self.t

def track_optimsed(self):
t0 = self.time()
[0 for _ in self.tqdm(self.iterable,
miniters=6e5, smoothing=0)]
# TODO: miniters=None, mininterval=0.1, smoothing=0)]
t1 = self.time()
with self.tqdm(self.iterable, miniters=6e5, smoothing=0) as pbar:
# TODO: miniters=None, mininterval=0.1, smoothing=0)]
t0 = self.time()
[0 for _ in pbar]
t1 = self.time()
return (t1 - t0 - self.t) / self.t
1 change: 1 addition & 0 deletions tqdm/_tqdm.py
Expand Up @@ -1215,6 +1215,7 @@ def set_postfix_str(self, s='', refresh=True):

def moveto(self, n):
self.fp.write(_unicode('\n' * n + _term_move_up() * -n))
self.fp.flush()

def clear(self, nolock=False):
"""
Expand Down
2 changes: 1 addition & 1 deletion tqdm/_version.py
Expand Up @@ -5,7 +5,7 @@
__all__ = ["__version__"]

# major, minor, patch, -extra
version_info = 4, 19, 3
version_info = 4, 19, 4

# Nice string for the version
__version__ = '.'.join(map(str, version_info))
Expand Down

0 comments on commit 2c93447

Please sign in to comment.