This commit is contained in:
Ram Rachum 2019-05-03 18:58:53 +03:00
parent f8cd6692ba
commit 600dedcc1a
3 changed files with 4 additions and 4 deletions

View file

@ -84,7 +84,7 @@ See values of some expressions that aren't local variables:
Expand values to see all their attributes or items of lists/dictionaries:
```python
@pysnooper.snoop(exploding_variables=('foo', 'self'))
@pysnooper.snoop(watch_explode=('foo', 'self'))
```
(see [Advanced Usage](#advanced-usage) for more control)
@ -109,7 +109,7 @@ $ pip install pysnooper
# Advanced Usage #
`exploding_variables` will automatically guess how to expand the expression passed to it based on its class. You can be more specific by using one of the following classes:
`watch_explode` will automatically guess how to expand the expression passed to it based on its class. You can be more specific by using one of the following classes:
```python
import pysnooper

View file

@ -8,7 +8,7 @@ import collections
__VersionInfo = collections.namedtuple('VersionInfo',
('major', 'minor', 'micro'))
__version__ = '0.0.27'
__version__ = '0.0.28'
__version_info__ = __VersionInfo(*(map(int, __version__.split('.'))))
del collections, __VersionInfo # Avoid polluting the namespace

View file

@ -61,7 +61,7 @@ def snoop(output=None, watch=(), watch_explode=(), depth=1,
Expand values to see all their attributes or items of lists/dictionaries:
@pysnooper.snoop(exploding_variables=('foo', 'self'))
@pysnooper.snoop(watch_explode=('foo', 'self'))
(see Advanced Usage in the README for more control)