Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 831 Bytes

python-packages.md

File metadata and controls

26 lines (18 loc) · 831 Bytes

Useful python packages

  • Mingfei Sun
  • Created: 2018-01-24
  • Updated: 2018-01-24

tqdm

from retry import retry

@retry()
def make_trouble():
    '''Retry until succeed'''

@retry(ZeroDivisionError, tries=3, delay=2)
def make_trouble():
    '''Retry on ZeroDivisionError, raise error after 3 attempts, sleep 2 seconds between attempts.'''

Tutorials for mpi4py