Updated README. [ci skip]

This commit is contained in:
Fabio Caccamo 2019-10-29 16:38:51 +01:00
parent 60c06a0aa3
commit 8c06d1c769
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,7 @@ del d['profile', 'lastname']
#### Custom keypath separator #### Custom keypath separator
You can customize the keypath separator passing the `keypath_separator` argument in the constructor. You can customize the keypath separator passing the `keypath_separator` argument in the constructor.
If you pass an existing dict to the constructor and its keys contain the keypath separator an `Exception` will be raised. If you pass an existing dict to the constructor and its keys contain the keypath separator an `Exception` will be raised.
```python ```python
@ -162,6 +163,7 @@ d = benedict(existing_dict, keypath_separator='/')
#### Change keypath separator #### Change keypath separator
You can change the `keypath_separator` at any time using the `getter/setter` property. You can change the `keypath_separator` at any time using the `getter/setter` property.
If any existing key contains the new `keypath_separator` an `Exception` will be raised. If any existing key contains the new `keypath_separator` an `Exception` will be raised.
```python ```python