Did I find the right examples for you? yes no

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

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/clr/app_clr.py   plexnet(Download)
        instance_class = '%s[%s]' % (generic_class, ','.join(generic_params))
        try:
            return clr.load_cli_class(cls.__assemblyname__, namespace, instance_class)
        except ImportError:
            raise TypeError, "Cannot load type %s.%s" % (namespace, instance_class)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/clr/app_importer.py   plexnet(Download)
            fullname = generics.get(fullname, fullname)
            ns, classname = fullname.rsplit('.', 1)
            sys.modules[fullname] = clr.load_cli_class(assemblyname, ns, classname)
        else:  # if not a call for actual class (say for namespaces) assign an empty module 
            if fullname not in sys.modules:

src/s/y/Sypy-HEAD/module/clr/app_clr.py   Sypy(Download)
        instance_class = '%s[%s]' % (generic_class, ','.join(generic_params))
        try:
            return clr.load_cli_class(cls.__assemblyname__, namespace, instance_class)
        except ImportError:
            raise TypeError, "Cannot load type %s.%s" % (namespace, instance_class)

src/s/y/Sypy-HEAD/module/clr/app_importer.py   Sypy(Download)
            fullname = generics.get(fullname, fullname)
            ns, classname = fullname.rsplit('.', 1)
            sys.modules[fullname] = clr.load_cli_class(assemblyname, ns, classname)
        else:  # if not a call for actual class (say for namespaces) assign an empty module 
            if fullname not in sys.modules:

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/clr/test/test_clr.py   plexnet(Download)
    def test_cache(self):
        import clr
        ArrayList = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')
        ArrayList2 = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')
        assert ArrayList is ArrayList2
    def test_ArrayList(self):
        import clr
        ArrayList = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')
        obj = ArrayList()
        obj.Add(42)
    def test_ArrayList_error(self):
        import clr
        ArrayList = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')
        obj = ArrayList()
        raises(StandardError, obj.get_Item, 0)
 
    def test_float_conversion(self):
        import clr
        ArrayList = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')

src/s/y/Sypy-HEAD/module/clr/test/test_clr.py   Sypy(Download)
    def test_cache(self):
        import clr
        ArrayList = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')
        ArrayList2 = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')
        assert ArrayList is ArrayList2
    def test_ArrayList(self):
        import clr
        ArrayList = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')
        obj = ArrayList()
        obj.Add(42)
    def test_ArrayList_error(self):
        import clr
        ArrayList = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')
        obj = ArrayList()
        raises(StandardError, obj.get_Item, 0)
 
    def test_float_conversion(self):
        import clr
        ArrayList = clr.load_cli_class(self.mscorlib, 'System.Collections', 'ArrayList')

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/clr/test/test_importer.py   plexnet(Download)
        assert System.Math.Pow(2, 5) == 2**5
 
        Math = clr.load_cli_class(mscorlib, 'System', 'Math')
        assert Math is System.Math
 
 
        import System.Collections.ArrayList
        ArrayList = clr.load_cli_class(mscorlib, 'System.Collections', 'ArrayList')
        assert ArrayList is System.Collections.ArrayList
 

src/s/y/Sypy-HEAD/module/clr/test/test_importer.py   Sypy(Download)
        assert System.Math.Pow(2, 5) == 2**5
 
        Math = clr.load_cli_class(mscorlib, 'System', 'Math')
        assert Math is System.Math
 
 
        import System.Collections.ArrayList
        ArrayList = clr.load_cli_class(mscorlib, 'System.Collections', 'ArrayList')
        assert ArrayList is System.Collections.ArrayList