aboutsummaryrefslogtreecommitdiff
path: root/pyasn1/type/base.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-11-09 12:45:59 +0100
committerIlya Etingof <etingof@gmail.com>2017-11-09 12:45:59 +0100
commitcddc8b877b03c1e6b739dec31a4706ae1620fc07 (patch)
tree8c813e60a56f8b2ac15647629aa13cb2986e142d /pyasn1/type/base.py
parent1d718f7b7445f71cfe16efd127150dfb72d7ccaa (diff)
parent4d7232a5dfdedf38d80bb406f1814b40f638e2f2 (diff)
downloadpyasn1-cddc8b877b03c1e6b739dec31a4706ae1620fc07.tar.gz
Merge branch 'devel-0.4.1' of github.com:etingof/pyasn1 into devel-0.4.1
Diffstat (limited to 'pyasn1/type/base.py')
-rw-r--r--pyasn1/type/base.py28
1 files changed, 25 insertions, 3 deletions
diff --git a/pyasn1/type/base.py b/pyasn1/type/base.py
index ec323b2..a20eff4 100644
--- a/pyasn1/type/base.py
+++ b/pyasn1/type/base.py
@@ -155,9 +155,31 @@ class NoValue(object):
Any operation attempted on the *noValue* object will raise the
*PyAsn1Error* exception.
"""
- skipMethods = ('__getattribute__', '__getattr__', '__setattr__', '__delattr__',
- '__class__', '__init__', '__del__', '__new__', '__repr__',
- '__qualname__', '__objclass__', 'im_class', '__sizeof__')
+ skipMethods = set(
+ ('__slots__',
+ # attributes
+ '__getattribute__',
+ '__getattr__',
+ '__setattr__',
+ '__delattr__',
+ # class instance
+ '__class__',
+ '__init__',
+ '__del__',
+ '__new__',
+ '__repr__',
+ '__qualname__',
+ '__objclass__',
+ 'im_class',
+ '__sizeof__',
+ # pickle protocol
+ '__reduce__',
+ '__reduce_ex__',
+ '__getnewargs__',
+ '__getinitargs__',
+ '__getstate__',
+ '__setstate__')
+ )
_instance = None