Skip to content

Commit b13e704

Browse files
committed
assignment warning
1 parent fb3c4e7 commit b13e704

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

glom/mutation.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
:func:`~glom.assign` function, and the :func:`~glom.Assign` specifier
77
type.
88
9+
.. warning::
10+
11+
glom's deep assignment is powerful, and incorrect use can result in
12+
unintended assignments to global state, including class and module
13+
attributes, as well as function defaults.
14+
15+
Be careful when writing assignment specs, and especially careful when
16+
any part of the spec is data-driven or provided by an end user.
17+
918
"""
1019
import operator
1120
from pprint import pprint

0 commit comments

Comments
 (0)