semvec/pypi-packages huggingface dataset:
PyBug 1.2.1
PyBug extends Python's interactive debugger (pdb), making it simpler to add breakpoints to your code.
Keywords: debug pdb extension

# PyBug - python debugging utilities

PyBug extends Python's interactive debugger (pdb), making it simpler to add
breakpoints to your code. Uses ipdb if available.

Usage examples:

```py
# Like pdb.set_trace(), but shorter :) and works with nosetests.
import bug; bug.trace()

# Set a breakpoint at line 35 of package.module
bug.setbreak(35, "package.module")

# Set a conditional breakpoint at line 42 of /path/to/universe.py
bug.setbreak(42, "/path/to/universe.py", "name == 'hitchhiker'")
```

There are two notable features here that would ideally make it into the pdb
module in the Python Standard Library:

  * Easily set a breakpoint at an arbitrary line in an arbitrary module. This
    is useful when debugging a third-party library where the code cannot easily
    be edited to add a set_trace() call.

  * Set a breakpoint in a module named by import path rather than file path.


## Changes

### 1.2

- Use `ipdb` if available

### 1.1

- Fix `trace()` for proper readline support
- Fix syntax error on Python 3
RandomIndexList 0.3
Start lists at any position. Because you can!


.. image:: https://raw.githubusercontent.com/sawyersteven/randomindexlist/master/img/Logo_wide.png
   :target: https://raw.githubusercontent.com/sawyersteven/randomindexlist/master/img/Logo_wide.png
   :alt: Logo


RandomIndexList
===============

Ever wonder why lists start at ``0``\ ? Become the master of your own list objects and wonder no more! With RandomIndexList you'll create arrays that start at whichever number you please, or let RandomIndexList's state-of-the-art randomizer select a completely arbitrary starting index for you!

Installation
^^^^^^^^^^^^

RandomIndexList has been tested on Python 3.4.0 and 2.7.14. Others versions are likely to work just as well, but it would be best to just completely avoid this package if you value your sanity.

Install via pip with ``pip install RandomIndexList``

Usage
^^^^^

RandomIndexList extends Python's built-in List class and can be used in the same manner.

If you like to live on the edge you can let RandomIndexList pick a starting index for you.

.. code-block::

   from RandomIndexList import RandomIndexList
   my_list = RandomIndexList(range(0, 5))
   my_list.index
   >>> 55
   my_list[56]
   >>> 1


If you have enough chaos in your life you can choose your own starting index.

.. code-block::

   my_list = RandomIndexList(range(0, 5), index=95)
   my_list[97]
   >>> 2