(aPythonDecimal)
return Foundation.NSDecimalNumber.decimalNumberWithString_locale_(
        value_str, DECIMAL_LOCALE)
Convert a Python decimal.Decimal to a NSDecimalNumber
Convert a Python decimal.Decimal to a NSDecimalNumber
Convert a Python decimal . Decimal to a NSDecimalNumber
def fromPythonDecimal(aPythonDecimal):
    """
    Convert a Python decimal.Decimal to a NSDecimalNumber
    """
    if PY3K:
        value_str = str(aPythonDecimal)
    else:
        value_str = unicode(aPythonDecimal)

    return Foundation.NSDecimalNumber.decimalNumberWithString_locale_(
        value_str, DECIMAL_LOCALE)
def fromPythonDecimal ( aPythonDecimal ) : if PY3K : value_str = str ( aPythonDecimal ) else : value_str = unicode ( aPythonDecimal ) return Foundation . NSDecimalNumber . decimalNumberWithString_locale_ ( value_str , DECIMAL_LOCALE )