Did I find the right examples for you? yes no

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

            def __new__(cls, *args):
        obj = object.__new__(cls)
        obj._assumptions = cls.default_assumptions
        obj._mhash = None  # will be set by __hash__ method.

        obj._args = args  # all items in args must be Basic objects
        return obj
        


src/s/y/sympy-HEAD/sympy/strategies/rl.py   sympy(Download)
 
from sympy.utilities.iterables import sift
from .util import new
 
# Functions that create rules
        newargs = [combine(cnt, mat) for mat, cnt in counts.items()]
        if set(newargs) != set(expr.args):
            return new(type(expr), *newargs)
        else:
            return expr

src/s/y/sympy-0.7.5/sympy/strategies/rl.py   sympy(Download)
 
from sympy.utilities.iterables import sift
from .util import new
 
# Functions that create rules
        newargs = [combine(cnt, mat) for mat, cnt in counts.items()]
        if set(newargs) != set(expr.args):
            return new(type(expr), *newargs)
        else:
            return expr

src/s/y/sympy-HEAD/sympy/strategies/__init__.py   sympy(Download)
from . import traverse
from .rl import rm_id, unpack, flatten, sort, glom, distribute, rebuild
from .util import new
from .core import (condition, debug, chain, null_safe, do_one, exhaust,
        minimize, tryit)

src/s/y/sympy-0.7.5/sympy/strategies/__init__.py   sympy(Download)
from . import traverse
from .rl import rm_id, unpack, flatten, sort, glom, distribute, rebuild
from .util import new
from .core import (condition, debug, chain, null_safe, do_one, exhaust,
        minimize, tryit)