• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(212)  |  Call(3)  |  Derive(0)  |  Import(209)
instance(class[, dict])

Create an instance without calling its __init__() method.
The class must be a classic class.
If present, dict must be a dictionary or None.

src/z/o/zope.app.twisted-3.5.0/src/twisted/spread/jelly.py   zope.app.twisted(Download)
from types import MethodType
from types import ModuleType
from types import DictionaryType
from types import InstanceType
from types import NoneType
from types import ClassType
import copy

src/z/e/zenoss-HEAD/trunk/Products/PluggableAuthService/UserPropertySheet.py   zenoss(Download)
from types import LongType
from types import TupleType
from types import ListType
from types import InstanceType
from types import BooleanType
 
try:

src/z/e/zenoss-HEAD/Products/PluggableAuthService/UserPropertySheet.py   zenoss(Download)
from types import LongType
from types import TupleType
from types import ListType
from types import InstanceType
from types import BooleanType
 
try:

src/r/p/rpyc-3.0.7/rpyc/core/vinegar.py   RPyC(Download)
import sys
import exceptions
import traceback
from types import InstanceType, ClassType
from rpyc.core import brine
from rpyc.core import consts
 
 
    # support old-style exception classes
    if isinstance(cls, ClassType):
        exc = InstanceType(cls)
    else:
        exc = cls.__new__(cls)
 

src/p/y/pypy3-HEAD/pypy/rlib/objectmodel.py   pypy3(Download)
def instantiate(cls):
    "Create an empty instance of 'cls'."
    if isinstance(cls, type):
        return cls.__new__(cls)
    else:
        return types.InstanceType(cls)
 

src/p/y/pypy-HEAD/pypy/rlib/objectmodel.py   pypy(Download)
def instantiate(cls):
    "Create an empty instance of 'cls'."
    if isinstance(cls, type):
        return cls.__new__(cls)
    else:
        return types.InstanceType(cls)
 

src/i/r/ironruby-HEAD/External.LCA_RESTRICTED/Languages/IronPython/27/Lib/new.py   ironruby(Download)
 
from types import ClassType as classobj
from types import FunctionType as function
from types import InstanceType as instance
from types import MethodType as instancemethod
from types import ModuleType as module
 

src/i/r/ironruby-HEAD/External.LCA_RESTRICTED/Languages/CPython/27/Lib/new.py   ironruby(Download)
 
from types import ClassType as classobj
from types import FunctionType as function
from types import InstanceType as instance
from types import MethodType as instancemethod
from types import ModuleType as module
 

src/j/y/jython-HEAD/sandbox/tobias/jython/CPythonLib/new.py   jython(Download)
 
from types import ClassType as classobj
from types import FunctionType as function
from types import InstanceType as instance
from types import MethodType as instancemethod
from types import ModuleType as module
 

src/k/m/kmkey-HEAD/bundles/kmkey-08.03.01/ManagableIndex/ManagableIndex.py   kmkey(Download)
# Copyright (C) 2003-2006 by Dr. Dieter Maurer, Eichendorffstr. 23, D-66386 St. Ingbert, Germany
# see "LICENSE.txt" for details
#       $Id: ManagableIndex.py,v 1.14 2006/05/05 18:06:48 dieter Exp $
'''Managable Index abstract base class.'''
 
import copy
from types import IntType, LongType, FloatType, \

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next