mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 10:15:11 +00:00
Fix docs
This commit is contained in:
parent
f8cd6692ba
commit
600dedcc1a
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue