Did I find the right examples for you? yes no

All Samples(7)  |  Call(0)  |  Derive(0)  |  Import(7)
High performance data structures.
- deque:        ordered collection accessible from endpoints only
- defaultdict:  dict subclass with a default value factory

src/s/y/Sypy-HEAD/module/_collections/app_defaultdict.py   Sypy(Download)
# interp-level.
 
import _collections
 
 

src/s/y/Sypy-HEAD/module/_collections/test/test_defaultdict.py   Sypy(Download)
    def test_copy(self):
        import _collections
        def f():
            return 42
        d = _collections.defaultdict(f, {2: 3})

src/s/y/Sypy-HEAD/module/test_lib_pypy/test_collections.py   Sypy(Download)
    def test_copy(self):
        import _collections
        def f():
            return 42
        d = _collections.defaultdict(f, {2: 3})

src/m/a/main-HEAD/Languages/IronPython/Tests/interop/net/type/test_reachtype.py   main(Download)
    import __builtin__; AssertError(AttributeError, lambda: __builtin__.A)
    import datetime; AssertError(AttributeError, lambda: datetime.A)
    import _collections; AssertError(AttributeError, lambda: _collections.A)
 
    # __import__

src/m/a/main-HEAD/Languages/IronPython/Tests/dllsite.py   main(Download)
    #first check that our native modules are still present and accounted for...
    import binascii
    import _collections
    import copy_reg
    import cPickle

src/i/r/ironpython3-HEAD/Tests/interop/net/type/test_reachtype.py   ironpython3(Download)
    import __builtin__; AssertError(AttributeError, lambda: __builtin__.A)
    import datetime; AssertError(AttributeError, lambda: datetime.A)
    import _collections; AssertError(AttributeError, lambda: _collections.A)
 
    # __import__

src/i/r/ironpython3-HEAD/Tests/dllsite.py   ironpython3(Download)
    #first check that our native modules are still present and accounted for...
    import binascii
    import _collections
    import copy_reg
    import cPickle