Commit e85f5209 authored by zhanghua's avatar zhanghua

add comment about PYOPCUA_NO_TYPO_CHECK

parent 28bca481
......@@ -250,6 +250,10 @@ class _FrozenClass(object):
object.__setattr__(self, key, value)
if "PYOPCUA_NO_TYPO_CHECK" in os.environ:
# typo check is cpu consuming, but it will make debug easy.
# if typo check is not need (in production), please set env PYOPCUA_NO_TYPO_CHECK.
# this will make all uatype class inherit from object intead of _FrozenClass
# and skip the typo check.
FrozenClass = object
else:
FrozenClass = _FrozenClass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment