-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 3.0
-
Component/s: None
-
None
-
Fully Compatible
Discovered while helping port django_mongodb_engine to PyMongo 3.
>>> import copy >>> from pymongo import * >>> copy.copy(ReadPreference.SECONDARY) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/emptysquare/.virtualenvs/official/mongo-python-driver/pymongo/read_preferences.py", line 116, in __repr__ self.name, self.__tag_sets) AttributeError: _ServerMode__tag_sets
I think the _ServerMode base class needs __getstate__ and __setstate__.