Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/c/i/cipher.session-2.0.0a1/src/cipher/session/session.py   cipher.session(Download)
 
from cipher.session import interfaces
from cipher.session._compat import PY3
 
 
        if isinstance(value, (dict, list)):
            raise TypeError("Can't add non-persistent mutable subobjects!")
        if not PY3:
            from types import InstanceType
            if type(value) is InstanceType:

src/c/i/cipher.session-2.0.0a1/src/cipher/session/tests/test_appendict.py   cipher.session(Download)
""" Unit tests for AppendOnlyDict taken from Products.faster.appendict
"""
import unittest
from cipher.session._compat import PY3
 
            pass
        mutable = Mutable()
        if not PY3:
            self.assertRaises(TypeError, aod.__setitem__, 'somekey', mutable)