(cls, name, **assumptions)
return Symbol.__xnew_cached_(cls, name, **assumptions)
Symbols are identified by name and assumptions::

        >>> from sympy import Symbol
        >>> Symbol("x") == Symbol("x")
        True
        >>> Symbol("x", real=True) == Symbol("x", real=False)
        False
Symbols are identified by name and assumptions::
Symbols are identified by name and assumptions ::
def __new__(cls, name, **assumptions):
        """Symbols are identified by name and assumptions::

        >>> from sympy import Symbol
        >>> Symbol("x") == Symbol("x")
        True
        >>> Symbol("x", real=True) == Symbol("x", real=False)
        False

        """

        if assumptions.get('zero', False):
            return S.Zero
        is_commutative = fuzzy_bool(assumptions.get('commutative', True))
        if is_commutative is None:
            raise ValueError(
                '''Symbol commutativity must be True or False.''')
        assumptions['commutative'] = is_commutative
        for key in assumptions.keys():
            assumptions[key] = bool(assumptions[key])
        return Symbol.__xnew_cached_(cls, name, **assumptions)
def __new__ ( cls , name , * * assumptions ) : if assumptions . get ( 'zero' , False ) : return S . Zero is_commutative = fuzzy_bool ( assumptions . get ( 'commutative' , True ) ) if is_commutative is None : raise ValueError ( '''Symbol commutativity must be True or False.''' ) assumptions [ 'commutative' ] = is_commutative for key in assumptions . keys ( ) : assumptions [ key ] = bool ( assumptions [ key ] ) return Symbol . __xnew_cached_ ( cls , name , * * assumptions )