/* Generated by Cython 0.14 on Wed Feb  9 18:35:16 2011 */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#else

#include <stddef.h> /* For offsetof */
#ifndef offsetof
#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif

#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif

#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif

#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif

#if PY_VERSION_HEX < 0x02040000
  #define METH_COEXIST 0
  #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
  #define PyDict_Contains(d,o)   PySequence_Contains(d,o)
#endif

#if PY_VERSION_HEX < 0x02050000
  typedef int Py_ssize_t;
  #define PY_SSIZE_T_MAX INT_MAX
  #define PY_SSIZE_T_MIN INT_MIN
  #define PY_FORMAT_SIZE_T ""
  #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
  #define PyInt_AsSsize_t(o)   PyInt_AsLong(o)
  #define PyNumber_Index(o)    PyNumber_Int(o)
  #define PyIndex_Check(o)     PyNumber_Check(o)
  #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
#endif

#if PY_VERSION_HEX < 0x02060000
  #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
  #define Py_TYPE(ob)   (((PyObject*)(ob))->ob_type)
  #define Py_SIZE(ob)   (((PyVarObject*)(ob))->ob_size)
  #define PyVarObject_HEAD_INIT(type, size) \
          PyObject_HEAD_INIT(type) size,
  #define PyType_Modified(t)

  typedef struct {
     void *buf;
     PyObject *obj;
     Py_ssize_t len;
     Py_ssize_t itemsize;
     int readonly;
     int ndim;
     char *format;
     Py_ssize_t *shape;
     Py_ssize_t *strides;
     Py_ssize_t *suboffsets;
     void *internal;
  } Py_buffer;

  #define PyBUF_SIMPLE 0
  #define PyBUF_WRITABLE 0x0001
  #define PyBUF_FORMAT 0x0004
  #define PyBUF_ND 0x0008
  #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
  #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
  #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
  #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
  #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)

#endif

#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
#endif

#if PY_MAJOR_VERSION >= 3
  #define Py_TPFLAGS_CHECKTYPES 0
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif

#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif

#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
#endif

#if PY_VERSION_HEX < 0x02060000
  #define PyBytesObject                PyStringObject
  #define PyBytes_Type                 PyString_Type
  #define PyBytes_Check                PyString_Check
  #define PyBytes_CheckExact           PyString_CheckExact
  #define PyBytes_FromString           PyString_FromString
  #define PyBytes_FromStringAndSize    PyString_FromStringAndSize
  #define PyBytes_FromFormat           PyString_FromFormat
  #define PyBytes_DecodeEscape         PyString_DecodeEscape
  #define PyBytes_AsString             PyString_AsString
  #define PyBytes_AsStringAndSize      PyString_AsStringAndSize
  #define PyBytes_Size                 PyString_Size
  #define PyBytes_AS_STRING            PyString_AS_STRING
  #define PyBytes_GET_SIZE             PyString_GET_SIZE
  #define PyBytes_Repr                 PyString_Repr
  #define PyBytes_Concat               PyString_Concat
  #define PyBytes_ConcatAndDel         PyString_ConcatAndDel
  #define PySet_Check(obj)             PyObject_TypeCheck(obj, &PySet_Type)
  #define PyFrozenSet_Check(obj)       PyObject_TypeCheck(obj, &PyFrozenSet_Type)
#endif

#ifndef PySet_CheckExact
#  define PySet_CheckExact(obj)          (Py_TYPE(obj) == &PySet_Type)
#endif

#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
#endif

#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject PyLongObject
#endif


#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif

#if (PY_MAJOR_VERSION < 3) || (PY_VERSION_HEX >= 0x03010300)
  #define __Pyx_PySequence_GetSlice(obj, a, b) PySequence_GetSlice(obj, a, b)
  #define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value)
  #define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b)
#else
  #define __Pyx_PySequence_GetSlice(obj, a, b) (unlikely(!(obj)) ? \
        (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) : \
        (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) : \
            (PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0)))
  #define __Pyx_PySequence_SetSlice(obj, a, b, value) (unlikely(!(obj)) ? \
        (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
        (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) : \
            (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1)))
  #define __Pyx_PySequence_DelSlice(obj, a, b) (unlikely(!(obj)) ? \
        (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
        (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) : \
            (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1)))
#endif

#if PY_MAJOR_VERSION >= 3
  #define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
#endif

#if PY_VERSION_HEX < 0x02050000
  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),((char *)(n)))
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),((char *)(n)))
#else
  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),(n))
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),(n))
#endif

#if PY_VERSION_HEX < 0x02050000
  #define __Pyx_NAMESTR(n) ((char *)(n))
  #define __Pyx_DOCSTR(n)  ((char *)(n))
#else
  #define __Pyx_NAMESTR(n) (n)
  #define __Pyx_DOCSTR(n)  (n)
#endif

#ifdef __cplusplus
#define __PYX_EXTERN_C extern "C"
#else
#define __PYX_EXTERN_C extern
#endif

#if defined(WIN32) || defined(MS_WINDOWS)
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#define __PYX_HAVE_API__kivy__properties

#ifdef PYREX_WITHOUT_ASSERTIONS
#define CYTHON_WITHOUT_ASSERTIONS
#endif


/* inline attribute */
#ifndef CYTHON_INLINE
  #if defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

/* unused attribute */
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || defined(__INTEL_COMPILER)
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif

typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/


/* Type Conversion Predeclarations */

#define __Pyx_PyBytes_FromUString(s) PyBytes_FromString((char*)s)
#define __Pyx_PyBytes_AsUString(s)   ((unsigned char*) PyBytes_AsString(s))

#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);

static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);

#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))


#ifdef __GNUC__
/* Test for GCC > 2.95 */
#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
#define likely(x)   __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#else /* __GNUC__ > 2 ... */
#define likely(x)   (x)
#define unlikely(x) (x)
#endif /* __GNUC__ > 2 ... */
#else /* __GNUC__ */
#define likely(x)   (x)
#define unlikely(x) (x)
#endif /* __GNUC__ */
    
static PyObject *__pyx_m;
static PyObject *__pyx_b;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;


static const char *__pyx_f[] = {
  "properties.pyx",
};

/* Type declarations */

/* "/home/tito/code/kivy/kivy/properties.pyx":36
 *            'NumericProperty', 'Property')
 * 
 * cdef class Property:             # <<<<<<<<<<<<<<
 *     '''Base class for build more complex property.
 * 
 */

struct __pyx_obj_4kivy_10properties_Property {
  PyObject_HEAD
  struct __pyx_vtabstruct_4kivy_10properties_Property *__pyx_vtab;
  PyObject *_name;
  int allownone;
  PyObject *defaultvalue;
  PyObject *storage;
};

/* "/home/tito/code/kivy/kivy/properties.pyx":175
 * 
 * 
 * cdef class NumericProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a numeric value
 * 
 */

struct __pyx_obj_4kivy_10properties_NumericProperty {
  struct __pyx_obj_4kivy_10properties_Property __pyx_base;
};

/* "/home/tito/code/kivy/kivy/properties.pyx":336
 * 
 * 
 * cdef class ReferenceListProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that allow to create tuple of other properties.
 * 
 */

struct __pyx_obj_4kivy_10properties_ReferenceListProperty {
  struct __pyx_obj_4kivy_10properties_Property __pyx_base;
  PyObject *properties;
};

/* "/home/tito/code/kivy/kivy/properties.pyx":408
 * 
 * 
 * cdef class AliasProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Create a property with a custom getter and setter.
 * 
 */

struct __pyx_obj_4kivy_10properties_AliasProperty {
  struct __pyx_obj_4kivy_10properties_Property __pyx_base;
  PyObject *getter;
  PyObject *setter;
  PyObject *bind_objects;
};

/* "/home/tito/code/kivy/kivy/properties.pyx":226
 *             raise ValueError('ListProperty accept only list')
 * 
 * cdef class ObjectProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent an Python object.
 * 
 */

struct __pyx_obj_4kivy_10properties_ObjectProperty {
  struct __pyx_obj_4kivy_10properties_Property __pyx_base;
};

/* "/home/tito/code/kivy/kivy/properties.pyx":198
 * 
 * 
 * cdef class StringProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a string value.
 * 
 */

struct __pyx_obj_4kivy_10properties_StringProperty {
  struct __pyx_obj_4kivy_10properties_Property __pyx_base;
};

/* "/home/tito/code/kivy/kivy/properties.pyx":248
 *             raise ValueError('BooleanProperty accept only bool')
 * 
 * cdef class BoundedNumericProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a numeric value, with the possibility of assign
 *     minimum bound and/or maximum bound.
 */

struct __pyx_obj_4kivy_10properties_BoundedNumericProperty {
  struct __pyx_obj_4kivy_10properties_Property __pyx_base;
  int use_min;
  int use_max;
  long min;
  long max;
};

/* "/home/tito/code/kivy/kivy/properties.pyx":306
 * 
 * 
 * cdef class OptionProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a string from a specific list.
 * 
 */

struct __pyx_obj_4kivy_10properties_OptionProperty {
  struct __pyx_obj_4kivy_10properties_Property __pyx_base;
  PyObject *options;
};

/* "/home/tito/code/kivy/kivy/properties.pyx":209
 *             raise ValueError('StringProperty accept only str/unicode')
 * 
 * cdef class ListProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a list.
 * 
 */

struct __pyx_obj_4kivy_10properties_ListProperty {
  struct __pyx_obj_4kivy_10properties_Property __pyx_base;
};

/* "/home/tito/code/kivy/kivy/properties.pyx":239
 *             raise ValueError('ObjectProperty accept only object')
 * 
 * cdef class BooleanProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent only boolean
 *     '''
 */

struct __pyx_obj_4kivy_10properties_BooleanProperty {
  struct __pyx_obj_4kivy_10properties_Property __pyx_base;
};


/* "/home/tito/code/kivy/kivy/properties.pyx":36
 *            'NumericProperty', 'Property')
 * 
 * cdef class Property:             # <<<<<<<<<<<<<<
 *     '''Base class for build more complex property.
 * 
 */

struct __pyx_vtabstruct_4kivy_10properties_Property {
  PyObject *(*init_storage)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *);
  PyObject *(*link)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*link_deps)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*unlink)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*bind)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*unbind)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*compare_value)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *);
  PyObject *(*set)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*get)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*check)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *);
  PyObject *(*convert)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *);
  PyObject *(*dispatch)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *);
};
static struct __pyx_vtabstruct_4kivy_10properties_Property *__pyx_vtabptr_4kivy_10properties_Property;


/* "/home/tito/code/kivy/kivy/properties.pyx":239
 *             raise ValueError('ObjectProperty accept only object')
 * 
 * cdef class BooleanProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent only boolean
 *     '''
 */

struct __pyx_vtabstruct_4kivy_10properties_BooleanProperty {
  struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_base;
};
static struct __pyx_vtabstruct_4kivy_10properties_BooleanProperty *__pyx_vtabptr_4kivy_10properties_BooleanProperty;


/* "/home/tito/code/kivy/kivy/properties.pyx":248
 *             raise ValueError('BooleanProperty accept only bool')
 * 
 * cdef class BoundedNumericProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a numeric value, with the possibility of assign
 *     minimum bound and/or maximum bound.
 */

struct __pyx_vtabstruct_4kivy_10properties_BoundedNumericProperty {
  struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_base;
};
static struct __pyx_vtabstruct_4kivy_10properties_BoundedNumericProperty *__pyx_vtabptr_4kivy_10properties_BoundedNumericProperty;


/* "/home/tito/code/kivy/kivy/properties.pyx":306
 * 
 * 
 * cdef class OptionProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a string from a specific list.
 * 
 */

struct __pyx_vtabstruct_4kivy_10properties_OptionProperty {
  struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_base;
};
static struct __pyx_vtabstruct_4kivy_10properties_OptionProperty *__pyx_vtabptr_4kivy_10properties_OptionProperty;


/* "/home/tito/code/kivy/kivy/properties.pyx":336
 * 
 * 
 * cdef class ReferenceListProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that allow to create tuple of other properties.
 * 
 */

struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty {
  struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_base;
  PyObject *(*trigger_change)(struct __pyx_obj_4kivy_10properties_ReferenceListProperty *, PyObject *, PyObject *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *__pyx_vtabptr_4kivy_10properties_ReferenceListProperty;


/* "/home/tito/code/kivy/kivy/properties.pyx":226
 *             raise ValueError('ListProperty accept only list')
 * 
 * cdef class ObjectProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent an Python object.
 * 
 */

struct __pyx_vtabstruct_4kivy_10properties_ObjectProperty {
  struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_base;
};
static struct __pyx_vtabstruct_4kivy_10properties_ObjectProperty *__pyx_vtabptr_4kivy_10properties_ObjectProperty;


/* "/home/tito/code/kivy/kivy/properties.pyx":209
 *             raise ValueError('StringProperty accept only str/unicode')
 * 
 * cdef class ListProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a list.
 * 
 */

struct __pyx_vtabstruct_4kivy_10properties_ListProperty {
  struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_base;
};
static struct __pyx_vtabstruct_4kivy_10properties_ListProperty *__pyx_vtabptr_4kivy_10properties_ListProperty;


/* "/home/tito/code/kivy/kivy/properties.pyx":175
 * 
 * 
 * cdef class NumericProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a numeric value
 * 
 */

struct __pyx_vtabstruct_4kivy_10properties_NumericProperty {
  struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_base;
};
static struct __pyx_vtabstruct_4kivy_10properties_NumericProperty *__pyx_vtabptr_4kivy_10properties_NumericProperty;


/* "/home/tito/code/kivy/kivy/properties.pyx":408
 * 
 * 
 * cdef class AliasProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Create a property with a custom getter and setter.
 * 
 */

struct __pyx_vtabstruct_4kivy_10properties_AliasProperty {
  struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_base;
  PyObject *(*trigger_change)(struct __pyx_obj_4kivy_10properties_AliasProperty *, PyObject *, PyObject *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_4kivy_10properties_AliasProperty *__pyx_vtabptr_4kivy_10properties_AliasProperty;


/* "/home/tito/code/kivy/kivy/properties.pyx":198
 * 
 * 
 * cdef class StringProperty(Property):             # <<<<<<<<<<<<<<
 *     '''Property that represent a string value.
 * 
 */

struct __pyx_vtabstruct_4kivy_10properties_StringProperty {
  struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_base;
};
static struct __pyx_vtabstruct_4kivy_10properties_StringProperty *__pyx_vtabptr_4kivy_10properties_StringProperty;

#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif

#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct * __Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule((char *)modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
  end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
  }
  #define __Pyx_RefNannySetupContext(name)           void *__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
  #define __Pyx_RefNannyFinishContext()           __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r);} } while(0)
#else
  #define __Pyx_RefNannySetupContext(name)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
#endif /* CYTHON_REFNANNY */
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);} } while(0)
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r);} } while(0)

static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name); /*proto*/

static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found); /*proto*/

static CYTHON_INLINE int __Pyx_CheckKeywordStrings(PyObject *kwdict,
    const char* function_name, int kw_allowed); /*proto*/

static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name, PyObject* kw_name); /*proto*/

static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],     PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,     const char* function_name); /*proto*/

static PyObject* __Pyx_PyDict_GetItemDefault(PyObject* d, PyObject* key, PyObject* default_value) {
    PyObject* value;
#if PY_MAJOR_VERSION >= 3
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (unlikely(PyErr_Occurred()))
            return NULL;
        value = default_value;
    }
    Py_INCREF(value);
#else
    if (PyString_CheckExact(key) || PyUnicode_CheckExact(key) || PyInt_CheckExact(key)) {
        /* these presumably have safe hash functions */
        value = PyDict_GetItem(d, key);
        if (unlikely(!value)) {
            value = default_value;
        }
        Py_INCREF(value);
    } else {
        PyObject *m;
        m = __Pyx_GetAttrString(d, "get");
        if (!m) return NULL;
        value = PyObject_CallFunctionObjArgs(m, key,
            (default_value == Py_None) ? NULL : default_value, NULL);
        Py_DECREF(m);
    }
#endif
    return value;
}

static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
    const char *name, int exact); /*proto*/

static CYTHON_INLINE long __Pyx_NegateNonNeg(long b) { return unlikely(b < 0) ? b : !b; }
static CYTHON_INLINE PyObject* __Pyx_PyBoolOrNull_FromLong(long b) {
    return unlikely(b < 0) ? NULL : __Pyx_PyBool_FromLong(b);
}

static CYTHON_INLINE void __Pyx_RaiseNoneIndexingError(void);

#if PY_MAJOR_VERSION >= 3
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    if (unlikely(d == Py_None)) {
        __Pyx_RaiseNoneIndexingError();
        return NULL;
    }
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (!PyErr_Occurred())
            PyErr_SetObject(PyExc_KeyError, key);
        return NULL;
    }
    Py_INCREF(value);
    return value;
}
#else
    #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#endif

static CYTHON_INLINE PyObject* __Pyx_PyObject_Append(PyObject* L, PyObject* x) {
    if (likely(PyList_CheckExact(L))) {
        if (PyList_Append(L, x) < 0) return NULL;
        Py_INCREF(Py_None);
        return Py_None; /* this is just to have an accurate signature */
    }
    else {
        PyObject *r, *m;
        m = __Pyx_GetAttrString(L, "append");
        if (!m) return NULL;
        r = PyObject_CallFunctionObjArgs(m, x, NULL);
        Py_DECREF(m);
        return r;
    }
}


static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!j) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}


#define __Pyx_GetItemInt_List(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
                                                    __Pyx_GetItemInt_List_Fast(o, i) : \
                                                    __Pyx_GetItemInt_Generic(o, to_py_func(i)))

static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i) {
    if (likely(o != Py_None)) {
        if (likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
            PyObject *r = PyList_GET_ITEM(o, i);
            Py_INCREF(r);
            return r;
        }
        else if ((-PyList_GET_SIZE(o) <= i) & (i < 0)) {
            PyObject *r = PyList_GET_ITEM(o, PyList_GET_SIZE(o) + i);
            Py_INCREF(r);
            return r;
        }
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

#define __Pyx_GetItemInt_Tuple(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
                                                    __Pyx_GetItemInt_Tuple_Fast(o, i) : \
                                                    __Pyx_GetItemInt_Generic(o, to_py_func(i)))

static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i) {
    if (likely(o != Py_None)) {
        if (likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, i);
            Py_INCREF(r);
            return r;
        }
        else if ((-PyTuple_GET_SIZE(o) <= i) & (i < 0)) {
            PyObject *r = PyTuple_GET_ITEM(o, PyTuple_GET_SIZE(o) + i);
            Py_INCREF(r);
            return r;
        }
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}


#define __Pyx_GetItemInt(o, i, size, to_py_func) (((size) <= sizeof(Py_ssize_t)) ? \
                                                    __Pyx_GetItemInt_Fast(o, i) : \
                                                    __Pyx_GetItemInt_Generic(o, to_py_func(i)))

static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i) {
    PyObject *r;
    if (PyList_CheckExact(o) && ((0 <= i) & (i < PyList_GET_SIZE(o)))) {
        r = PyList_GET_ITEM(o, i);
        Py_INCREF(r);
    }
    else if (PyTuple_CheckExact(o) && ((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
        r = PyTuple_GET_ITEM(o, i);
        Py_INCREF(r);
    }
    else if (Py_TYPE(o)->tp_as_sequence && Py_TYPE(o)->tp_as_sequence->sq_item && (likely(i >= 0))) {
        r = PySequence_GetItem(o, i);
    }
    else {
        r = __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
    }
    return r;
}

static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/

static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb); /*proto*/

static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *); /*proto*/

static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);

static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);

static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);

static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *);

static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *);

static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *);

static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);

static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);

static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);

static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject *);

static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);

static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);

static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *);

static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);

static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);

static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);

static int __Pyx_SetVtable(PyObject *dict, void *vtable); /*proto*/

static void __Pyx_AddTraceback(const char *funcname); /*proto*/

static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/
/* Module declarations from kivy.properties */

static PyTypeObject *__pyx_ptype_4kivy_10properties_Property = 0;
static PyTypeObject *__pyx_ptype_4kivy_10properties_NumericProperty = 0;
static PyTypeObject *__pyx_ptype_4kivy_10properties_StringProperty = 0;
static PyTypeObject *__pyx_ptype_4kivy_10properties_ListProperty = 0;
static PyTypeObject *__pyx_ptype_4kivy_10properties_ObjectProperty = 0;
static PyTypeObject *__pyx_ptype_4kivy_10properties_BooleanProperty = 0;
static PyTypeObject *__pyx_ptype_4kivy_10properties_BoundedNumericProperty = 0;
static PyTypeObject *__pyx_ptype_4kivy_10properties_OptionProperty = 0;
static PyTypeObject *__pyx_ptype_4kivy_10properties_ReferenceListProperty = 0;
static PyTypeObject *__pyx_ptype_4kivy_10properties_AliasProperty = 0;
#define __Pyx_MODULE_NAME "kivy.properties"
int __pyx_module_is_main_kivy__properties = 0;

/* Implementation of kivy.properties */
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_basestring;
static PyObject *__pyx_builtin_object;
static PyObject *__pyx_builtin_xrange;
static char __pyx_k_1[] = "";
static char __pyx_k_2[] = "None is not allowed";
static char __pyx_k_4[] = "NumericProperty accept only int/float";
static char __pyx_k_6[] = "StringProperty accept only str/unicode";
static char __pyx_k_8[] = "ListProperty accept only list";
static char __pyx_k_10[] = "ObjectProperty accept only object";
static char __pyx_k_12[] = "BooleanProperty accept only bool";
static char __pyx_k_14[] = "Value is below the minimum bound (%d)";
static char __pyx_k_15[] = "Value is below the maximum bound (%d)";
static char __pyx_k_16[] = "Value is not in available options";
static char __pyx_k_18[] = "Value must be a list or tuple";
static char __pyx_k_20[] = "Value must have the same size as beginning";
static char __pyx_k_22[] = "\nProperties\n==========\n\nThe properties classes are used for creating :class:`~kivy.uix.widget.Widget`.\nTheses classes are supporting:\n\n    Value checker\n        When you assign a new value to a property, the value is checked to pass\n        some contraints implemented in class. For example, an\n        :class:`OptionProperty` will check that your value is inside a list of\n        possibilities, :class:`NumericProperty` will check that your value is an\n        int or double, etc.\n\n    Observer pattern\n        You can bind your own function to the change of a :class:`Property`. If\n        you want to be called when the :class:`~kivy.uix.widget.Widget.pos`\n        property change, you can :class:`~kivy.uix.widget.Widget.bind` a\n        function to it.\n\n    Better memory management\n        The same instance of a property is shared across multiple widget\n        instance. The value storage is independant of the Widget.\n\n";
static char __pyx_k_23[] = "BoundedNumericProperty";
static char __pyx_k_24[] = "ReferenceListProperty";
static char __pyx_k__get[] = "get";
static char __pyx_k__max[] = "max";
static char __pyx_k__min[] = "min";
static char __pyx_k__obj[] = "obj";
static char __pyx_k__set[] = "set";
static char __pyx_k__bind[] = "bind";
static char __pyx_k__link[] = "link";
static char __pyx_k__name[] = "name";
static char __pyx_k____uid[] = "__uid";
static char __pyx_k___name[] = "_name";
static char __pyx_k__check[] = "check";
static char __pyx_k__range[] = "range";
static char __pyx_k__value[] = "value";
static char __pyx_k__append[] = "append";
static char __pyx_k__getter[] = "getter";
static char __pyx_k__object[] = "object";
static char __pyx_k__remove[] = "remove";
static char __pyx_k__setter[] = "setter";
static char __pyx_k__unbind[] = "unbind";
static char __pyx_k__unlink[] = "unlink";
static char __pyx_k__xrange[] = "xrange";
static char __pyx_k____all__[] = "__all__";
static char __pyx_k__convert[] = "convert";
static char __pyx_k__options[] = "options";
static char __pyx_k__storage[] = "storage";
static char __pyx_k__use_max[] = "use_max";
static char __pyx_k__use_min[] = "use_min";
static char __pyx_k__Property[] = "Property";
static char __pyx_k____init__[] = "__init__";
static char __pyx_k____main__[] = "__main__";
static char __pyx_k____test__[] = "__test__";
static char __pyx_k__dispatch[] = "dispatch";
static char __pyx_k__observer[] = "observer";
static char __pyx_k____class__[] = "__class__";
static char __pyx_k__allownone[] = "allownone";
static char __pyx_k__link_deps[] = "link_deps";
static char __pyx_k__observers[] = "observers";
static char __pyx_k__ValueError[] = "ValueError";
static char __pyx_k__basestring[] = "basestring";
static char __pyx_k__properties[] = "properties";
static char __pyx_k__stop_event[] = "stop_event";
static char __pyx_k__ListProperty[] = "ListProperty";
static char __pyx_k__bind_objects[] = "bind_objects";
static char __pyx_k__defaultvalue[] = "defaultvalue";
static char __pyx_k__init_storage[] = "init_storage";
static char __pyx_k__AliasProperty[] = "AliasProperty";
static char __pyx_k__compare_value[] = "compare_value";
static char __pyx_k__ObjectProperty[] = "ObjectProperty";
static char __pyx_k__OptionProperty[] = "OptionProperty";
static char __pyx_k__StringProperty[] = "StringProperty";
static char __pyx_k__trigger_change[] = "trigger_change";
static char __pyx_k__BooleanProperty[] = "BooleanProperty";
static char __pyx_k__NumericProperty[] = "NumericProperty";
static PyObject *__pyx_kp_s_1;
static PyObject *__pyx_kp_s_10;
static PyObject *__pyx_kp_s_12;
static PyObject *__pyx_kp_s_14;
static PyObject *__pyx_kp_s_15;
static PyObject *__pyx_kp_s_16;
static PyObject *__pyx_kp_s_18;
static PyObject *__pyx_kp_s_2;
static PyObject *__pyx_kp_s_20;
static PyObject *__pyx_n_s_23;
static PyObject *__pyx_n_s_24;
static PyObject *__pyx_kp_s_4;
static PyObject *__pyx_kp_s_6;
static PyObject *__pyx_kp_s_8;
static PyObject *__pyx_n_s__AliasProperty;
static PyObject *__pyx_n_s__BooleanProperty;
static PyObject *__pyx_n_s__ListProperty;
static PyObject *__pyx_n_s__NumericProperty;
static PyObject *__pyx_n_s__ObjectProperty;
static PyObject *__pyx_n_s__OptionProperty;
static PyObject *__pyx_n_s__Property;
static PyObject *__pyx_n_s__StringProperty;
static PyObject *__pyx_n_s__ValueError;
static PyObject *__pyx_n_s____all__;
static PyObject *__pyx_n_s____class__;
static PyObject *__pyx_n_s____init__;
static PyObject *__pyx_n_s____main__;
static PyObject *__pyx_n_s____test__;
static PyObject *__pyx_n_s____uid;
static PyObject *__pyx_n_s___name;
static PyObject *__pyx_n_s__allownone;
static PyObject *__pyx_n_s__append;
static PyObject *__pyx_n_s__basestring;
static PyObject *__pyx_n_s__bind;
static PyObject *__pyx_n_s__bind_objects;
static PyObject *__pyx_n_s__check;
static PyObject *__pyx_n_s__compare_value;
static PyObject *__pyx_n_s__convert;
static PyObject *__pyx_n_s__defaultvalue;
static PyObject *__pyx_n_s__dispatch;
static PyObject *__pyx_n_s__get;
static PyObject *__pyx_n_s__getter;
static PyObject *__pyx_n_s__init_storage;
static PyObject *__pyx_n_s__link;
static PyObject *__pyx_n_s__link_deps;
static PyObject *__pyx_n_s__max;
static PyObject *__pyx_n_s__min;
static PyObject *__pyx_n_s__name;
static PyObject *__pyx_n_s__obj;
static PyObject *__pyx_n_s__object;
static PyObject *__pyx_n_s__observer;
static PyObject *__pyx_n_s__observers;
static PyObject *__pyx_n_s__options;
static PyObject *__pyx_n_s__properties;
static PyObject *__pyx_n_s__range;
static PyObject *__pyx_n_s__remove;
static PyObject *__pyx_n_s__set;
static PyObject *__pyx_n_s__setter;
static PyObject *__pyx_n_s__stop_event;
static PyObject *__pyx_n_s__storage;
static PyObject *__pyx_n_s__trigger_change;
static PyObject *__pyx_n_s__unbind;
static PyObject *__pyx_n_s__unlink;
static PyObject *__pyx_n_s__use_max;
static PyObject *__pyx_n_s__use_min;
static PyObject *__pyx_n_s__value;
static PyObject *__pyx_n_s__xrange;
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_k_tuple_3;
static PyObject *__pyx_k_tuple_5;
static PyObject *__pyx_k_tuple_7;
static PyObject *__pyx_k_tuple_9;
static PyObject *__pyx_k_tuple_11;
static PyObject *__pyx_k_tuple_13;
static PyObject *__pyx_k_tuple_17;
static PyObject *__pyx_k_tuple_19;
static PyObject *__pyx_k_tuple_21;
static PyObject *__pyx_k_tuple_25;

/* "/home/tito/code/kivy/kivy/properties.pyx":49
 *     cdef dict storage
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self._name = ''
 *         self.allownone = 0
 */

static int __pyx_pf_4kivy_10properties_8Property_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_8Property_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__cinit__");
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;

  /* "/home/tito/code/kivy/kivy/properties.pyx":50
 * 
 *     def __cinit__(self):
 *         self._name = ''             # <<<<<<<<<<<<<<
 *         self.allownone = 0
 *         self.defaultvalue = None
 */
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_1));
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->_name);
  __Pyx_DECREF(((PyObject *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->_name));
  ((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->_name = __pyx_kp_s_1;

  /* "/home/tito/code/kivy/kivy/properties.pyx":51
 *     def __cinit__(self):
 *         self._name = ''
 *         self.allownone = 0             # <<<<<<<<<<<<<<
 *         self.defaultvalue = None
 *         self.storage = {}
 */
  ((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->allownone = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":52
 *         self._name = ''
 *         self.allownone = 0
 *         self.defaultvalue = None             # <<<<<<<<<<<<<<
 *         self.storage = {}
 * 
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->defaultvalue);
  __Pyx_DECREF(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->defaultvalue);
  ((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->defaultvalue = Py_None;

  /* "/home/tito/code/kivy/kivy/properties.pyx":53
 *         self.allownone = 0
 *         self.defaultvalue = None
 *         self.storage = {}             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, defaultvalue, **kw):
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->storage);
  __Pyx_DECREF(((PyObject *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->storage));
  ((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->storage = __pyx_t_1;
  __pyx_t_1 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.__cinit__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":55
 *         self.storage = {}
 * 
 *     def __init__(self, defaultvalue, **kw):             # <<<<<<<<<<<<<<
 *         self.defaultvalue = defaultvalue
 *         self.allownone = <int>kw.get('allownone', 0)
 */

static int __pyx_pf_4kivy_10properties_8Property_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_8Property_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_defaultvalue = 0;
  PyObject *__pyx_v_kw = 0;
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__defaultvalue,0};
  __Pyx_RefNannySetupContext("__init__");
  __pyx_v_kw = PyDict_New(); if (unlikely(!__pyx_v_kw)) return -1;
  __Pyx_GOTREF(__pyx_v_kw);
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[1] = {0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__defaultvalue);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kw, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_defaultvalue = values[0];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_defaultvalue = PyTuple_GET_ITEM(__pyx_args, 0);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_kw);
  __Pyx_AddTraceback("kivy.properties.Property.__init__");
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":56
 * 
 *     def __init__(self, defaultvalue, **kw):
 *         self.defaultvalue = defaultvalue             # <<<<<<<<<<<<<<
 *         self.allownone = <int>kw.get('allownone', 0)
 * 
 */
  __Pyx_INCREF(__pyx_v_defaultvalue);
  __Pyx_GIVEREF(__pyx_v_defaultvalue);
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->defaultvalue);
  __Pyx_DECREF(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->defaultvalue);
  ((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->defaultvalue = __pyx_v_defaultvalue;

  /* "/home/tito/code/kivy/kivy/properties.pyx":57
 *     def __init__(self, defaultvalue, **kw):
 *         self.defaultvalue = defaultvalue
 *         self.allownone = <int>kw.get('allownone', 0)             # <<<<<<<<<<<<<<
 * 
 *     property name:
 */
  if (unlikely(__pyx_v_kw == Py_None)) {
    PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'get'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(((PyObject *)__pyx_v_kw), ((PyObject *)__pyx_n_s__allownone), __pyx_int_0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyInt_AsInt(__pyx_t_1); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  ((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->allownone = __pyx_t_2;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.__init__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_kw);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":60
 * 
 *     property name:
 *         def __get__(self):             # <<<<<<<<<<<<<<
 *             return self._name
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_4name_0__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_8Property_4name_0__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannySetupContext("__get__");

  /* "/home/tito/code/kivy/kivy/properties.pyx":61
 *     property name:
 *         def __get__(self):
 *             return self._name             # <<<<<<<<<<<<<<
 * 
 *     cdef init_storage(self, dict storage):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->_name));
  __pyx_r = ((PyObject *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->_name);
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":63
 *             return self._name
 * 
 *     cdef init_storage(self, dict storage):             # <<<<<<<<<<<<<<
 *         storage['value'] = self.defaultvalue
 *         storage['allownone'] = self.allownone
 */

static  PyObject *__pyx_f_4kivy_10properties_8Property_init_storage(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_storage) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("init_storage");

  /* "/home/tito/code/kivy/kivy/properties.pyx":64
 * 
 *     cdef init_storage(self, dict storage):
 *         storage['value'] = self.defaultvalue             # <<<<<<<<<<<<<<
 *         storage['allownone'] = self.allownone
 *         storage['observers'] = []
 */
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__value), __pyx_v_self->defaultvalue) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/properties.pyx":65
 *     cdef init_storage(self, dict storage):
 *         storage['value'] = self.defaultvalue
 *         storage['allownone'] = self.allownone             # <<<<<<<<<<<<<<
 *         storage['observers'] = []
 * 
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->allownone); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__allownone), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":66
 *         storage['value'] = self.defaultvalue
 *         storage['allownone'] = self.allownone
 *         storage['observers'] = []             # <<<<<<<<<<<<<<
 * 
 *     cpdef link(self, object obj, str name):
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__observers), ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.init_storage");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":68
 *         storage['observers'] = []
 * 
 *     cpdef link(self, object obj, str name):             # <<<<<<<<<<<<<<
 *         '''Link the instance with his real name.
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_2link(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_8Property_link(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_name, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_d;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("link");
  __pyx_v_d = ((PyObject*)Py_None); __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__link); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_8Property_2link)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(((PyObject *)__pyx_v_name));
      PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_name));
      __Pyx_GIVEREF(((PyObject *)__pyx_v_name));
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":87
 *         of the property for this specific widget instance.
 *         '''
 *         d = dict()             # <<<<<<<<<<<<<<
 *         self._name = name
 *         self.init_storage(d)
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 87; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_DECREF(((PyObject *)__pyx_v_d));
  __pyx_v_d = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":88
 *         '''
 *         d = dict()
 *         self._name = name             # <<<<<<<<<<<<<<
 *         self.init_storage(d)
 *         self.storage[obj.__uid] = d
 */
  __Pyx_INCREF(((PyObject *)__pyx_v_name));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_name));
  __Pyx_GOTREF(__pyx_v_self->_name);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->_name));
  __pyx_v_self->_name = __pyx_v_name;

  /* "/home/tito/code/kivy/kivy/properties.pyx":89
 *         d = dict()
 *         self._name = name
 *         self.init_storage(d)             # <<<<<<<<<<<<<<
 *         self.storage[obj.__uid] = d
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)__pyx_v_self->__pyx_vtab)->init_storage(__pyx_v_self, __pyx_v_d); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":90
 *         self._name = name
 *         self.init_storage(d)
 *         self.storage[obj.__uid] = d             # <<<<<<<<<<<<<<
 * 
 *     cpdef link_deps(self, object obj, str name):
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(((PyObject *)__pyx_v_self->storage), __pyx_t_1, ((PyObject *)__pyx_v_d)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.Property.link");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_d);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":68
 *         storage['observers'] = []
 * 
 *     cpdef link(self, object obj, str name):             # <<<<<<<<<<<<<<
 *         '''Link the instance with his real name.
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_2link(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4kivy_10properties_8Property_2link[] = "Link the instance with his real name.\n\n        .. warning::\n\n            Internal usage only.\n\n        When a widget definition use a :class:`Property` class, the creation of\n        the property happen, but the instance don't know anything about his name\n        in the widget class ::\n\n            class MyWidget(Widget):\n                uid = NumericProperty(0)\n\n        On this example, the uid will be a NumericProperty() instance, but the\n        property instance don't know his name. That's why :func:`link` is used\n        in Widget.__new__. The link function is also used to create the storage\n        of the property for this specific widget instance.\n        ";
static PyObject *__pyx_pf_4kivy_10properties_8Property_2link(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__name,0};
  __Pyx_RefNannySetupContext("link");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("link", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "link") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_name = ((PyObject*)values[1]);
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_name = ((PyObject*)PyTuple_GET_ITEM(__pyx_args, 1));
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("link", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.Property.link");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->__pyx_vtab)->link(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.link");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":92
 *         self.storage[obj.__uid] = d
 * 
 *     cpdef link_deps(self, object obj, str name):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_3link_deps(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_8Property_link_deps(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_name, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("link_deps");
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__link_deps); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_8Property_3link_deps)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(((PyObject *)__pyx_v_name));
      PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_name));
      __Pyx_GIVEREF(((PyObject *)__pyx_v_name));
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":93
 * 
 *     cpdef link_deps(self, object obj, str name):
 *         pass             # <<<<<<<<<<<<<<
 * 
 *     cpdef unlink(self, obj):
 */

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.Property.link_deps");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":92
 *         self.storage[obj.__uid] = d
 * 
 *     cpdef link_deps(self, object obj, str name):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_3link_deps(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_8Property_3link_deps(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__name,0};
  __Pyx_RefNannySetupContext("link_deps");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("link_deps", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "link_deps") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_name = ((PyObject*)values[1]);
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_name = ((PyObject*)PyTuple_GET_ITEM(__pyx_args, 1));
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("link_deps", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.Property.link_deps");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->__pyx_vtab)->link_deps(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.link_deps");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":95
 *         pass
 * 
 *     cpdef unlink(self, obj):             # <<<<<<<<<<<<<<
 *         '''Destroy the storage of a widget
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_4unlink(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_8Property_unlink(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("unlink");
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__unlink); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_8Property_4unlink)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":98
 *         '''Destroy the storage of a widget
 *         '''
 *         if obj in self.storage:             # <<<<<<<<<<<<<<
 *             del self.storage[obj.__uid]
 * 
 */
  if (unlikely(__pyx_v_self->storage == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_4 = ((PyDict_Contains(((PyObject *)__pyx_v_self->storage), __pyx_v_obj))); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_4) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":99
 *         '''
 *         if obj in self.storage:
 *             del self.storage[obj.__uid]             # <<<<<<<<<<<<<<
 * 
 *     cpdef bind(self, obj, observer):
 */
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (PyDict_DelItem(((PyObject *)__pyx_v_self->storage), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.Property.unlink");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":95
 *         pass
 * 
 *     cpdef unlink(self, obj):             # <<<<<<<<<<<<<<
 *         '''Destroy the storage of a widget
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_4unlink(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static char __pyx_doc_4kivy_10properties_8Property_4unlink[] = "Destroy the storage of a widget\n        ";
static PyObject *__pyx_pf_4kivy_10properties_8Property_4unlink(PyObject *__pyx_v_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("unlink");
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->__pyx_vtab)->unlink(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.unlink");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":101
 *             del self.storage[obj.__uid]
 * 
 *     cpdef bind(self, obj, observer):             # <<<<<<<<<<<<<<
 *         '''Add a new observer to be called only when the value is changed
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_5bind(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_8Property_bind(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_observer, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_observers;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("bind");
  __pyx_v_observers = Py_None; __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__bind); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_8Property_5bind)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(__pyx_v_observer);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_observer);
      __Pyx_GIVEREF(__pyx_v_observer);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":104
 *         '''Add a new observer to be called only when the value is changed
 *         '''
 *         observers = self.storage[obj.__uid]['observers']             # <<<<<<<<<<<<<<
 *         if not observer in observers:
 *             observers.append(observer)
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->storage), __pyx_t_1); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_GetItem(__pyx_t_3, ((PyObject *)__pyx_n_s__observers)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_v_observers);
  __pyx_v_observers = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":105
 *         '''
 *         observers = self.storage[obj.__uid]['observers']
 *         if not observer in observers:             # <<<<<<<<<<<<<<
 *             observers.append(observer)
 * 
 */
  __pyx_t_4 = ((PySequence_Contains(__pyx_v_observers, __pyx_v_observer))); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_5 = (!__pyx_t_4);
  if (__pyx_t_5) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":106
 *         observers = self.storage[obj.__uid]['observers']
 *         if not observer in observers:
 *             observers.append(observer)             # <<<<<<<<<<<<<<
 * 
 *     cpdef unbind(self, obj, observer):
 */
    __pyx_t_1 = __Pyx_PyObject_Append(__pyx_v_observers, __pyx_v_observer); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.Property.bind");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_observers);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":101
 *             del self.storage[obj.__uid]
 * 
 *     cpdef bind(self, obj, observer):             # <<<<<<<<<<<<<<
 *         '''Add a new observer to be called only when the value is changed
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_5bind(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4kivy_10properties_8Property_5bind[] = "Add a new observer to be called only when the value is changed\n        ";
static PyObject *__pyx_pf_4kivy_10properties_8Property_5bind(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_observer = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__observer,0};
  __Pyx_RefNannySetupContext("bind");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__observer);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("bind", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "bind") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_observer = values[1];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_observer = PyTuple_GET_ITEM(__pyx_args, 1);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("bind", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.Property.bind");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->__pyx_vtab)->bind(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_observer, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.bind");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":108
 *             observers.append(observer)
 * 
 *     cpdef unbind(self, obj, observer):             # <<<<<<<<<<<<<<
 *         '''Remove the observer from our widget observer list
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_6unbind(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_8Property_unbind(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_observer, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_observers;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("unbind");
  __pyx_v_observers = Py_None; __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__unbind); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_8Property_6unbind)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(__pyx_v_observer);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_observer);
      __Pyx_GIVEREF(__pyx_v_observer);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":111
 *         '''Remove the observer from our widget observer list
 *         '''
 *         if obj not in self.storage:             # <<<<<<<<<<<<<<
 *             return
 *         observers = self.storage[obj.__uid]['observers']
 */
  if (unlikely(__pyx_v_self->storage == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_4 = (__Pyx_NegateNonNeg(PyDict_Contains(((PyObject *)__pyx_v_self->storage), __pyx_v_obj))); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_4) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":112
 *         '''
 *         if obj not in self.storage:
 *             return             # <<<<<<<<<<<<<<
 *         observers = self.storage[obj.__uid]['observers']
 *         if observer in observers:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":113
 *         if obj not in self.storage:
 *             return
 *         observers = self.storage[obj.__uid]['observers']             # <<<<<<<<<<<<<<
 *         if observer in observers:
 *             observers.remove(observer)
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->storage), __pyx_t_1); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_GetItem(__pyx_t_3, ((PyObject *)__pyx_n_s__observers)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_v_observers);
  __pyx_v_observers = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":114
 *             return
 *         observers = self.storage[obj.__uid]['observers']
 *         if observer in observers:             # <<<<<<<<<<<<<<
 *             observers.remove(observer)
 * 
 */
  __pyx_t_4 = ((PySequence_Contains(__pyx_v_observers, __pyx_v_observer))); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_t_4) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":115
 *         observers = self.storage[obj.__uid]['observers']
 *         if observer in observers:
 *             observers.remove(observer)             # <<<<<<<<<<<<<<
 * 
 *     def __set__(self, obj, val):
 */
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_observers, __pyx_n_s__remove); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_INCREF(__pyx_v_observer);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_observer);
    __Pyx_GIVEREF(__pyx_v_observer);
    __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    goto __pyx_L4;
  }
  __pyx_L4:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.Property.unbind");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_observers);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":108
 *             observers.append(observer)
 * 
 *     cpdef unbind(self, obj, observer):             # <<<<<<<<<<<<<<
 *         '''Remove the observer from our widget observer list
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_6unbind(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4kivy_10properties_8Property_6unbind[] = "Remove the observer from our widget observer list\n        ";
static PyObject *__pyx_pf_4kivy_10properties_8Property_6unbind(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_observer = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__observer,0};
  __Pyx_RefNannySetupContext("unbind");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__observer);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("unbind", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "unbind") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_observer = values[1];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_observer = PyTuple_GET_ITEM(__pyx_args, 1);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("unbind", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.Property.unbind");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->__pyx_vtab)->unbind(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_observer, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.unbind");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":117
 *             observers.remove(observer)
 * 
 *     def __set__(self, obj, val):             # <<<<<<<<<<<<<<
 *         self.set(obj, val)
 * 
 */

static int __pyx_pf_4kivy_10properties_8Property_7__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_val); /*proto*/
static int __pyx_pf_4kivy_10properties_8Property_7__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_val) {
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__");

  /* "/home/tito/code/kivy/kivy/properties.pyx":118
 * 
 *     def __set__(self, obj, val):
 *         self.set(obj, val)             # <<<<<<<<<<<<<<
 * 
 *     def __get__(self, obj, objtype):
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->__pyx_vtab)->set(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_val, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.__set__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":120
 *         self.set(obj, val)
 * 
 *     def __get__(self, obj, objtype):             # <<<<<<<<<<<<<<
 *         if obj is None:
 *             return self
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_8__get__(PyObject *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_objtype); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_8Property_8__get__(PyObject *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_objtype) {
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("__get__");

  /* "/home/tito/code/kivy/kivy/properties.pyx":121
 * 
 *     def __get__(self, obj, objtype):
 *         if obj is None:             # <<<<<<<<<<<<<<
 *             return self
 *         return self.get(obj)
 */
  __pyx_t_1 = (__pyx_v_obj == Py_None);
  if (__pyx_t_1) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":122
 *     def __get__(self, obj, objtype):
 *         if obj is None:
 *             return self             # <<<<<<<<<<<<<<
 *         return self.get(obj)
 * 
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(__pyx_v_self);
    __pyx_r = __pyx_v_self;
    goto __pyx_L0;
    goto __pyx_L5;
  }
  __pyx_L5:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":123
 *         if obj is None:
 *             return self
 *         return self.get(obj)             # <<<<<<<<<<<<<<
 * 
 *     cdef compare_value(self, a, b):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->__pyx_vtab)->get(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("kivy.properties.Property.__get__");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":125
 *         return self.get(obj)
 * 
 *     cdef compare_value(self, a, b):             # <<<<<<<<<<<<<<
 *         return a == b
 * 
 */

static  PyObject *__pyx_f_4kivy_10properties_8Property_compare_value(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("compare_value");

  /* "/home/tito/code/kivy/kivy/properties.pyx":126
 * 
 *     cdef compare_value(self, a, b):
 *         return a == b             # <<<<<<<<<<<<<<
 * 
 *     cpdef set(self, obj, value):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyObject_RichCompare(__pyx_v_a, __pyx_v_b, Py_EQ); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 126; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.compare_value");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":128
 *         return a == b
 * 
 *     cpdef set(self, obj, value):             # <<<<<<<<<<<<<<
 *         '''Set a new value for the property
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_9set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_8Property_set(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_d;
  PyObject *__pyx_v_realvalue;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("set");
  __Pyx_INCREF(__pyx_v_value);
  __pyx_v_d = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_realvalue = Py_None; __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__set); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_8Property_9set)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(__pyx_v_value);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_value);
      __Pyx_GIVEREF(__pyx_v_value);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":131
 *         '''Set a new value for the property
 *         '''
 *         value = self.convert(obj, value)             # <<<<<<<<<<<<<<
 *         d = self.storage[obj.__uid]
 *         realvalue = d['value']
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)__pyx_v_self->__pyx_vtab)->convert(__pyx_v_self, __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_v_value);
  __pyx_v_value = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":132
 *         '''
 *         value = self.convert(obj, value)
 *         d = self.storage[obj.__uid]             # <<<<<<<<<<<<<<
 *         realvalue = d['value']
 *         if self.compare_value(realvalue, value):
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->storage), __pyx_t_1); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_v_d);
  __pyx_v_d = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":133
 *         value = self.convert(obj, value)
 *         d = self.storage[obj.__uid]
 *         realvalue = d['value']             # <<<<<<<<<<<<<<
 *         if self.compare_value(realvalue, value):
 *             return False
 */
  __pyx_t_3 = PyObject_GetItem(__pyx_v_d, ((PyObject *)__pyx_n_s__value)); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 133; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_v_realvalue);
  __pyx_v_realvalue = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":134
 *         d = self.storage[obj.__uid]
 *         realvalue = d['value']
 *         if self.compare_value(realvalue, value):             # <<<<<<<<<<<<<<
 *             return False
 *         self.check(obj, value)
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)__pyx_v_self->__pyx_vtab)->compare_value(__pyx_v_self, __pyx_v_realvalue, __pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_4) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":135
 *         realvalue = d['value']
 *         if self.compare_value(realvalue, value):
 *             return False             # <<<<<<<<<<<<<<
 *         self.check(obj, value)
 *         d['value'] = value
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_3 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_r = __pyx_t_3;
    __pyx_t_3 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":136
 *         if self.compare_value(realvalue, value):
 *             return False
 *         self.check(obj, value)             # <<<<<<<<<<<<<<
 *         d['value'] = value
 *         self.dispatch(obj)
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)__pyx_v_self->__pyx_vtab)->check(__pyx_v_self, __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":137
 *             return False
 *         self.check(obj, value)
 *         d['value'] = value             # <<<<<<<<<<<<<<
 *         self.dispatch(obj)
 *         return True
 */
  if (PyObject_SetItem(__pyx_v_d, ((PyObject *)__pyx_n_s__value), __pyx_v_value) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/properties.pyx":138
 *         self.check(obj, value)
 *         d['value'] = value
 *         self.dispatch(obj)             # <<<<<<<<<<<<<<
 *         return True
 * 
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)__pyx_v_self->__pyx_vtab)->dispatch(__pyx_v_self, __pyx_v_obj); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":139
 *         d['value'] = value
 *         self.dispatch(obj)
 *         return True             # <<<<<<<<<<<<<<
 * 
 *     cpdef get(self, obj):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_r = __pyx_t_3;
  __pyx_t_3 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.Property.set");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_d);
  __Pyx_DECREF(__pyx_v_realvalue);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":128
 *         return a == b
 * 
 *     cpdef set(self, obj, value):             # <<<<<<<<<<<<<<
 *         '''Set a new value for the property
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_9set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_4kivy_10properties_8Property_9set[] = "Set a new value for the property\n        ";
static PyObject *__pyx_pf_4kivy_10properties_8Property_9set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__value,0};
  __Pyx_RefNannySetupContext("set");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_value = values[1];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_value = PyTuple_GET_ITEM(__pyx_args, 1);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.Property.set");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->__pyx_vtab)->set(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.set");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":141
 *         return True
 * 
 *     cpdef get(self, obj):             # <<<<<<<<<<<<<<
 *         '''Return the value of the property
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_10get(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_8Property_get(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("get");
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__get); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_8Property_10get)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":144
 *         '''Return the value of the property
 *         '''
 *         return self.storage[obj.__uid]['value']             # <<<<<<<<<<<<<<
 * 
 *     #
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->storage), __pyx_t_1); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_GetItem(__pyx_t_3, ((PyObject *)__pyx_n_s__value)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.Property.get");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":141
 *         return True
 * 
 *     cpdef get(self, obj):             # <<<<<<<<<<<<<<
 *         '''Return the value of the property
 *         '''
 */

static PyObject *__pyx_pf_4kivy_10properties_8Property_10get(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static char __pyx_doc_4kivy_10properties_8Property_10get[] = "Return the value of the property\n        ";
static PyObject *__pyx_pf_4kivy_10properties_8Property_10get(PyObject *__pyx_v_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("get");
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_Property *)((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self)->__pyx_vtab)->get(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.Property.get");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":150
 *     #
 * 
 *     cdef check(self, obj, x):             # <<<<<<<<<<<<<<
 *         '''Check if the value is correct or not, depending the settings of the
 *         property class.
 */

static  PyObject *__pyx_f_4kivy_10properties_8Property_check(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_x) {
  PyObject *__pyx_r = NULL;
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  __Pyx_RefNannySetupContext("check");

  /* "/home/tito/code/kivy/kivy/properties.pyx":154
 *         property class.
 *         '''
 *         if x is None:             # <<<<<<<<<<<<<<
 *             if not self.storage[obj.__uid]['allownone']:
 *                 raise ValueError('None is not allowed')
 */
  __pyx_t_1 = (__pyx_v_x == Py_None);
  if (__pyx_t_1) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":155
 *         '''
 *         if x is None:
 *             if not self.storage[obj.__uid]['allownone']:             # <<<<<<<<<<<<<<
 *                 raise ValueError('None is not allowed')
 *             else:
 */
    __pyx_t_2 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->storage), __pyx_t_2); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_2 = PyObject_GetItem(__pyx_t_3, ((PyObject *)__pyx_n_s__allownone)); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_4 = (!__pyx_t_1);
    if (__pyx_t_4) {

      /* "/home/tito/code/kivy/kivy/properties.pyx":156
 *         if x is None:
 *             if not self.storage[obj.__uid]['allownone']:
 *                 raise ValueError('None is not allowed')             # <<<<<<<<<<<<<<
 *             else:
 *                 return True
 */
      __pyx_t_2 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_Raise(__pyx_t_2, 0, 0);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L4;
    }
    /*else*/ {

      /* "/home/tito/code/kivy/kivy/properties.pyx":158
 *                 raise ValueError('None is not allowed')
 *             else:
 *                 return True             # <<<<<<<<<<<<<<
 * 
 *     cdef convert(self, obj, x):
 */
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      goto __pyx_L0;
    }
    __pyx_L4:;
    goto __pyx_L3;
  }
  __pyx_L3:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.Property.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":160
 *                 return True
 * 
 *     cdef convert(self, obj, x):             # <<<<<<<<<<<<<<
 *         '''Convert the initial value to a correct value.
 *         Can be used for multiple type of argument, and simplify into only one.
 */

static  PyObject *__pyx_f_4kivy_10properties_8Property_convert(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_x) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannySetupContext("convert");

  /* "/home/tito/code/kivy/kivy/properties.pyx":164
 *         Can be used for multiple type of argument, and simplify into only one.
 *         '''
 *         return x             # <<<<<<<<<<<<<<
 * 
 *     cdef dispatch(self, obj):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_x);
  __pyx_r = __pyx_v_x;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":166
 *         return x
 * 
 *     cdef dispatch(self, obj):             # <<<<<<<<<<<<<<
 *         '''Dispatch the value change to all observers
 *         '''
 */

static  PyObject *__pyx_f_4kivy_10properties_8Property_dispatch(struct __pyx_obj_4kivy_10properties_Property *__pyx_v_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_v_observers;
  PyObject *__pyx_v_value;
  PyObject *__pyx_v_observer;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  Py_ssize_t __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("dispatch");
  __pyx_v_observers = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_observer = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/tito/code/kivy/kivy/properties.pyx":169
 *         '''Dispatch the value change to all observers
 *         '''
 *         observers = self.storage[obj.__uid]['observers']             # <<<<<<<<<<<<<<
 *         value = self.storage[obj.__uid]['value']
 *         for observer in observers:
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->storage), __pyx_t_1); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_GetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__observers)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_v_observers);
  __pyx_v_observers = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":170
 *         '''
 *         observers = self.storage[obj.__uid]['observers']
 *         value = self.storage[obj.__uid]['value']             # <<<<<<<<<<<<<<
 *         for observer in observers:
 *             observer(obj, value)
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->storage), __pyx_t_1); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_GetItem(__pyx_t_2, ((PyObject *)__pyx_n_s__value)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_v_value);
  __pyx_v_value = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":171
 *         observers = self.storage[obj.__uid]['observers']
 *         value = self.storage[obj.__uid]['value']
 *         for observer in observers:             # <<<<<<<<<<<<<<
 *             observer(obj, value)
 * 
 */
  if (PyList_CheckExact(__pyx_v_observers) || PyTuple_CheckExact(__pyx_v_observers)) {
    __pyx_t_3 = 0; __pyx_t_1 = __pyx_v_observers; __Pyx_INCREF(__pyx_t_1);
  } else {
    __pyx_t_3 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_observers); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
  }
  for (;;) {
    if (likely(PyList_CheckExact(__pyx_t_1))) {
      if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_1)) break;
      __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
    } else if (likely(PyTuple_CheckExact(__pyx_t_1))) {
      if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
      __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_3); __Pyx_INCREF(__pyx_t_2); __pyx_t_3++;
    } else {
      __pyx_t_2 = PyIter_Next(__pyx_t_1);
      if (!__pyx_t_2) {
        if (unlikely(PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
        break;
      }
      __Pyx_GOTREF(__pyx_t_2);
    }
    __Pyx_DECREF(__pyx_v_observer);
    __pyx_v_observer = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":172
 *         value = self.storage[obj.__uid]['value']
 *         for observer in observers:
 *             observer(obj, value)             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_INCREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
    __Pyx_GIVEREF(__pyx_v_obj);
    __Pyx_INCREF(__pyx_v_value);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_value);
    __Pyx_GIVEREF(__pyx_v_value);
    __pyx_t_4 = PyObject_Call(__pyx_v_observer, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.properties.Property.dispatch");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_observers);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_DECREF(__pyx_v_observer);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":191
 *         ValueError: NumericProperty accept only int/float
 *     '''
 *     cdef check(self, obj, value):             # <<<<<<<<<<<<<<
 *         if Property.check(self, obj, value):
 *             return True
 */

static  PyObject *__pyx_f_4kivy_10properties_15NumericProperty_check(struct __pyx_obj_4kivy_10properties_NumericProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("check");

  /* "/home/tito/code/kivy/kivy/properties.pyx":192
 *     '''
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):             # <<<<<<<<<<<<<<
 *             return True
 *         if type(value) not in (int, float):
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->check(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 192; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 192; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":193
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):
 *             return True             # <<<<<<<<<<<<<<
 *         if type(value) not in (int, float):
 *             raise ValueError('NumericProperty accept only int/float')
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":194
 *         if Property.check(self, obj, value):
 *             return True
 *         if type(value) not in (int, float):             # <<<<<<<<<<<<<<
 *             raise ValueError('NumericProperty accept only int/float')
 * 
 */
  __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_value)));
  __pyx_t_1 = ((PyObject *)Py_TYPE(__pyx_v_value));
  __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_t_1), ((PyObject *)((PyObject*)(&PyInt_Type))), Py_NE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __pyx_t_2;
  if (__pyx_t_4) {
    __pyx_t_3 = PyObject_RichCompare(((PyObject *)__pyx_t_1), ((PyObject *)((PyObject*)(&PyFloat_Type))), Py_NE); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely((__pyx_t_2 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 194; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_5 = __pyx_t_2;
    __pyx_t_2 = __pyx_t_5;
  } else {
    __pyx_t_2 = __pyx_t_4;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_t_2;
  if (__pyx_t_4) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":195
 *             return True
 *         if type(value) not in (int, float):
 *             raise ValueError('NumericProperty accept only int/float')             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_5), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L4;
  }
  __pyx_L4:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.NumericProperty.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":203
 *     Only string or unicode are accepted.
 *     '''
 *     cdef check(self, obj, value):             # <<<<<<<<<<<<<<
 *         if Property.check(self, obj, value):
 *             return True
 */

static  PyObject *__pyx_f_4kivy_10properties_14StringProperty_check(struct __pyx_obj_4kivy_10properties_StringProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("check");

  /* "/home/tito/code/kivy/kivy/properties.pyx":204
 *     '''
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):             # <<<<<<<<<<<<<<
 *             return True
 *         if not isinstance(value, basestring):
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->check(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 204; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":205
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):
 *             return True             # <<<<<<<<<<<<<<
 *         if not isinstance(value, basestring):
 *             raise ValueError('StringProperty accept only str/unicode')
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":206
 *         if Property.check(self, obj, value):
 *             return True
 *         if not isinstance(value, basestring):             # <<<<<<<<<<<<<<
 *             raise ValueError('StringProperty accept only str/unicode')
 * 
 */
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_value, __pyx_builtin_basestring); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_3 = (!__pyx_t_2);
  if (__pyx_t_3) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":207
 *             return True
 *         if not isinstance(value, basestring):
 *             raise ValueError('StringProperty accept only str/unicode')             # <<<<<<<<<<<<<<
 * 
 * cdef class ListProperty(Property):
 */
    __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_7), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L4;
  }
  __pyx_L4:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.StringProperty.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":220
 *         remove() and pop() functions.
 *     '''
 *     cdef check(self, obj, value):             # <<<<<<<<<<<<<<
 *         if Property.check(self, obj, value):
 *             return True
 */

static  PyObject *__pyx_f_4kivy_10properties_12ListProperty_check(struct __pyx_obj_4kivy_10properties_ListProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("check");

  /* "/home/tito/code/kivy/kivy/properties.pyx":221
 *     '''
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):             # <<<<<<<<<<<<<<
 *             return True
 *         if type(value) is not list:
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->check(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":222
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):
 *             return True             # <<<<<<<<<<<<<<
 *         if type(value) is not list:
 *             raise ValueError('ListProperty accept only list')
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":223
 *         if Property.check(self, obj, value):
 *             return True
 *         if type(value) is not list:             # <<<<<<<<<<<<<<
 *             raise ValueError('ListProperty accept only list')
 * 
 */
  __pyx_t_2 = (((PyObject *)Py_TYPE(__pyx_v_value)) != ((PyObject *)((PyObject*)(&PyList_Type))));
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":224
 *             return True
 *         if type(value) is not list:
 *             raise ValueError('ListProperty accept only list')             # <<<<<<<<<<<<<<
 * 
 * cdef class ObjectProperty(Property):
 */
    __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_9), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L4;
  }
  __pyx_L4:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.ListProperty.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":233
 *         To mark the property as changed, you must reassign a new python object.
 *     '''
 *     cdef check(self, obj, value):             # <<<<<<<<<<<<<<
 *         if Property.check(self, obj, value):
 *             return True
 */

static  PyObject *__pyx_f_4kivy_10properties_14ObjectProperty_check(struct __pyx_obj_4kivy_10properties_ObjectProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("check");

  /* "/home/tito/code/kivy/kivy/properties.pyx":234
 *     '''
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):             # <<<<<<<<<<<<<<
 *             return True
 *         if not isinstance(value, object):
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->check(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 234; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":235
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):
 *             return True             # <<<<<<<<<<<<<<
 *         if not isinstance(value, object):
 *             raise ValueError('ObjectProperty accept only object')
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":236
 *         if Property.check(self, obj, value):
 *             return True
 *         if not isinstance(value, object):             # <<<<<<<<<<<<<<
 *             raise ValueError('ObjectProperty accept only object')
 * 
 */
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_value, __pyx_builtin_object); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_3 = (!__pyx_t_2);
  if (__pyx_t_3) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":237
 *             return True
 *         if not isinstance(value, object):
 *             raise ValueError('ObjectProperty accept only object')             # <<<<<<<<<<<<<<
 * 
 * cdef class BooleanProperty(Property):
 */
    __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_11), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L4;
  }
  __pyx_L4:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.ObjectProperty.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":242
 *     '''Property that represent only boolean
 *     '''
 *     cdef check(self, obj, value):             # <<<<<<<<<<<<<<
 *         if Property.check(self, obj, value):
 *             return True
 */

static  PyObject *__pyx_f_4kivy_10properties_15BooleanProperty_check(struct __pyx_obj_4kivy_10properties_BooleanProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  __Pyx_RefNannySetupContext("check");

  /* "/home/tito/code/kivy/kivy/properties.pyx":243
 *     '''
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):             # <<<<<<<<<<<<<<
 *             return True
 *         if not isinstance(value, object):
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->check(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":244
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):
 *             return True             # <<<<<<<<<<<<<<
 *         if not isinstance(value, object):
 *             raise ValueError('BooleanProperty accept only bool')
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 244; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":245
 *         if Property.check(self, obj, value):
 *             return True
 *         if not isinstance(value, object):             # <<<<<<<<<<<<<<
 *             raise ValueError('BooleanProperty accept only bool')
 * 
 */
  __pyx_t_2 = PyObject_IsInstance(__pyx_v_value, __pyx_builtin_object); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_3 = (!__pyx_t_2);
  if (__pyx_t_3) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":246
 *             return True
 *         if not isinstance(value, object):
 *             raise ValueError('BooleanProperty accept only bool')             # <<<<<<<<<<<<<<
 * 
 * cdef class BoundedNumericProperty(Property):
 */
    __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_13), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L4;
  }
  __pyx_L4:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.BooleanProperty.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":263
 *     cdef long max
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.use_min = 0
 *         self.use_max = 0
 */

static int __pyx_pf_4kivy_10properties_22BoundedNumericProperty_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_22BoundedNumericProperty_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  __Pyx_RefNannySetupContext("__cinit__");
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;

  /* "/home/tito/code/kivy/kivy/properties.pyx":264
 * 
 *     def __cinit__(self):
 *         self.use_min = 0             # <<<<<<<<<<<<<<
 *         self.use_max = 0
 *         self.min = 0
 */
  ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->use_min = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":265
 *     def __cinit__(self):
 *         self.use_min = 0
 *         self.use_max = 0             # <<<<<<<<<<<<<<
 *         self.min = 0
 *         self.max = 0
 */
  ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->use_max = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":266
 *         self.use_min = 0
 *         self.use_max = 0
 *         self.min = 0             # <<<<<<<<<<<<<<
 *         self.max = 0
 * 
 */
  ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->min = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":267
 *         self.use_max = 0
 *         self.min = 0
 *         self.max = 0             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *largs, **kw):
 */
  ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->max = 0;

  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":269
 *         self.max = 0
 * 
 *     def __init__(self, *largs, **kw):             # <<<<<<<<<<<<<<
 *         value = kw.get('min', None)
 *         if value is None:
 */

static int __pyx_pf_4kivy_10properties_22BoundedNumericProperty_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_22BoundedNumericProperty_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_largs = 0;
  PyObject *__pyx_v_kw = 0;
  PyObject *__pyx_v_value;
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  long __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("__init__");
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kw = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New();
  if (unlikely(!__pyx_v_kw)) return -1;
  __Pyx_GOTREF(__pyx_v_kw);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_largs = __pyx_args;
  __pyx_v_value = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/tito/code/kivy/kivy/properties.pyx":270
 * 
 *     def __init__(self, *largs, **kw):
 *         value = kw.get('min', None)             # <<<<<<<<<<<<<<
 *         if value is None:
 *             self.use_min = 0
 */
  if (unlikely(__pyx_v_kw == Py_None)) {
    PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'get'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(((PyObject *)__pyx_v_kw), ((PyObject *)__pyx_n_s__min), Py_None); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_v_value);
  __pyx_v_value = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":271
 *     def __init__(self, *largs, **kw):
 *         value = kw.get('min', None)
 *         if value is None:             # <<<<<<<<<<<<<<
 *             self.use_min = 0
 *         else:
 */
  __pyx_t_2 = (__pyx_v_value == Py_None);
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":272
 *         value = kw.get('min', None)
 *         if value is None:
 *             self.use_min = 0             # <<<<<<<<<<<<<<
 *         else:
 *             self.use_min = 1
 */
    ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->use_min = 0;
    goto __pyx_L5;
  }
  /*else*/ {

    /* "/home/tito/code/kivy/kivy/properties.pyx":274
 *             self.use_min = 0
 *         else:
 *             self.use_min = 1             # <<<<<<<<<<<<<<
 *             self.min = value
 *         value = kw.get('max', None)
 */
    ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->use_min = 1;

    /* "/home/tito/code/kivy/kivy/properties.pyx":275
 *         else:
 *             self.use_min = 1
 *             self.min = value             # <<<<<<<<<<<<<<
 *         value = kw.get('max', None)
 *         if value is None:
 */
    __pyx_t_3 = __Pyx_PyInt_AsLong(__pyx_v_value); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->min = __pyx_t_3;
  }
  __pyx_L5:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":276
 *             self.use_min = 1
 *             self.min = value
 *         value = kw.get('max', None)             # <<<<<<<<<<<<<<
 *         if value is None:
 *             self.use_max = 0
 */
  if (unlikely(__pyx_v_kw == Py_None)) {
    PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'get'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_1 = __Pyx_PyDict_GetItemDefault(((PyObject *)__pyx_v_kw), ((PyObject *)__pyx_n_s__max), Py_None); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_v_value);
  __pyx_v_value = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":277
 *             self.min = value
 *         value = kw.get('max', None)
 *         if value is None:             # <<<<<<<<<<<<<<
 *             self.use_max = 0
 *         else:
 */
  __pyx_t_2 = (__pyx_v_value == Py_None);
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":278
 *         value = kw.get('max', None)
 *         if value is None:
 *             self.use_max = 0             # <<<<<<<<<<<<<<
 *         else:
 *             self.use_max = 1
 */
    ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->use_max = 0;
    goto __pyx_L6;
  }
  /*else*/ {

    /* "/home/tito/code/kivy/kivy/properties.pyx":280
 *             self.use_max = 0
 *         else:
 *             self.use_max = 1             # <<<<<<<<<<<<<<
 *             self.max = value
 *         Property.__init__(self, *largs, **kw)
 */
    ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->use_max = 1;

    /* "/home/tito/code/kivy/kivy/properties.pyx":281
 *         else:
 *             self.use_max = 1
 *             self.max = value             # <<<<<<<<<<<<<<
 *         Property.__init__(self, *largs, **kw)
 * 
 */
    __pyx_t_3 = __Pyx_PyInt_AsLong(__pyx_v_value); if (unlikely((__pyx_t_3 == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)__pyx_v_self)->max = __pyx_t_3;
  }
  __pyx_L6:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":282
 *             self.use_max = 1
 *             self.max = value
 *         Property.__init__(self, *largs, **kw)             # <<<<<<<<<<<<<<
 * 
 *     cdef init_storage(self, dict storage):
 */
  __pyx_t_1 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_4kivy_10properties_Property)), __pyx_n_s____init__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __Pyx_INCREF(__pyx_v_self);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_self);
  __Pyx_GIVEREF(__pyx_v_self);
  __pyx_t_5 = PySequence_Tuple(((PyObject *)__pyx_v_largs)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_5));
  __pyx_t_6 = PyNumber_Add(((PyObject *)__pyx_t_4), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_6));
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyEval_CallObjectWithKeywords(__pyx_t_1, ((PyObject *)__pyx_t_6), ((PyObject *)__pyx_v_kw)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.properties.BoundedNumericProperty.__init__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_largs);
  __Pyx_DECREF(__pyx_v_kw);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":284
 *         Property.__init__(self, *largs, **kw)
 * 
 *     cdef init_storage(self, dict storage):             # <<<<<<<<<<<<<<
 *         Property.init_storage(self, storage)
 *         storage['min'] = self.min
 */

static  PyObject *__pyx_f_4kivy_10properties_22BoundedNumericProperty_init_storage(struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *__pyx_v_self, PyObject *__pyx_v_storage) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("init_storage");

  /* "/home/tito/code/kivy/kivy/properties.pyx":285
 * 
 *     cdef init_storage(self, dict storage):
 *         Property.init_storage(self, storage)             # <<<<<<<<<<<<<<
 *         storage['min'] = self.min
 *         storage['max'] = self.max
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->init_storage(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_storage); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":286
 *     cdef init_storage(self, dict storage):
 *         Property.init_storage(self, storage)
 *         storage['min'] = self.min             # <<<<<<<<<<<<<<
 *         storage['max'] = self.max
 *         storage['use_min'] = self.use_min
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->min); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__min), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 286; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":287
 *         Property.init_storage(self, storage)
 *         storage['min'] = self.min
 *         storage['max'] = self.max             # <<<<<<<<<<<<<<
 *         storage['use_min'] = self.use_min
 *         storage['use_max'] = self.use_max
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->max); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__max), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 287; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":288
 *         storage['min'] = self.min
 *         storage['max'] = self.max
 *         storage['use_min'] = self.use_min             # <<<<<<<<<<<<<<
 *         storage['use_max'] = self.use_max
 * 
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->use_min); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__use_min), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":289
 *         storage['max'] = self.max
 *         storage['use_min'] = self.use_min
 *         storage['use_max'] = self.use_max             # <<<<<<<<<<<<<<
 * 
 *     cdef check(self, obj, value):
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_self->use_max); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__use_max), __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 289; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.BoundedNumericProperty.init_storage");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":291
 *         storage['use_max'] = self.use_max
 * 
 *     cdef check(self, obj, value):             # <<<<<<<<<<<<<<
 *         if Property.check(self, obj, value):
 *             return True
 */

static  PyObject *__pyx_f_4kivy_10properties_22BoundedNumericProperty_check(struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_v_s;
  PyObject *__pyx_v__min;
  PyObject *__pyx_v__max;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  int __pyx_t_3;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("check");
  __pyx_v_s = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v__min = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v__max = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/tito/code/kivy/kivy/properties.pyx":292
 * 
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):             # <<<<<<<<<<<<<<
 *             return True
 *         s = self.storage['obj']
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->check(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":293
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):
 *             return True             # <<<<<<<<<<<<<<
 *         s = self.storage['obj']
 *         if s['use_min']:
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":294
 *         if Property.check(self, obj, value):
 *             return True
 *         s = self.storage['obj']             # <<<<<<<<<<<<<<
 *         if s['use_min']:
 *             _min = s['min']
 */
  __pyx_t_1 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->__pyx_base.storage), ((PyObject *)__pyx_n_s__obj)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_v_s);
  __pyx_v_s = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":295
 *             return True
 *         s = self.storage['obj']
 *         if s['use_min']:             # <<<<<<<<<<<<<<
 *             _min = s['min']
 *             if _min and value < _min:
 */
  __pyx_t_1 = PyObject_GetItem(__pyx_v_s, ((PyObject *)__pyx_n_s__use_min)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":296
 *         s = self.storage['obj']
 *         if s['use_min']:
 *             _min = s['min']             # <<<<<<<<<<<<<<
 *             if _min and value < _min:
 *                 raise ValueError('Value is below the minimum bound (%d)' % _min)
 */
    __pyx_t_1 = PyObject_GetItem(__pyx_v_s, ((PyObject *)__pyx_n_s__min)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v__min);
    __pyx_v__min = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":297
 *         if s['use_min']:
 *             _min = s['min']
 *             if _min and value < _min:             # <<<<<<<<<<<<<<
 *                 raise ValueError('Value is below the minimum bound (%d)' % _min)
 *         if s['use_max']:
 */
    __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v__min); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    if (__pyx_t_2) {
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_value, __pyx_v__min, Py_LT); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_4 = __pyx_t_3;
    } else {
      __pyx_t_4 = __pyx_t_2;
    }
    if (__pyx_t_4) {

      /* "/home/tito/code/kivy/kivy/properties.pyx":298
 *             _min = s['min']
 *             if _min and value < _min:
 *                 raise ValueError('Value is below the minimum bound (%d)' % _min)             # <<<<<<<<<<<<<<
 *         if s['use_max']:
 *             _max = s['max']
 */
      __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_14), __pyx_v__min); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_5));
      PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_t_1));
      __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
      __pyx_t_1 = 0;
      __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
      __Pyx_Raise(__pyx_t_1, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L5;
    }
    __pyx_L5:;
    goto __pyx_L4;
  }
  __pyx_L4:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":299
 *             if _min and value < _min:
 *                 raise ValueError('Value is below the minimum bound (%d)' % _min)
 *         if s['use_max']:             # <<<<<<<<<<<<<<
 *             _max = s['max']
 *             if _max and value > _max:
 */
  __pyx_t_1 = PyObject_GetItem(__pyx_v_s, ((PyObject *)__pyx_n_s__use_max)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 299; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":300
 *                 raise ValueError('Value is below the minimum bound (%d)' % _min)
 *         if s['use_max']:
 *             _max = s['max']             # <<<<<<<<<<<<<<
 *             if _max and value > _max:
 *                 raise ValueError('Value is below the maximum bound (%d)' % _max)
 */
    __pyx_t_1 = PyObject_GetItem(__pyx_v_s, ((PyObject *)__pyx_n_s__max)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v__max);
    __pyx_v__max = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":301
 *         if s['use_max']:
 *             _max = s['max']
 *             if _max and value > _max:             # <<<<<<<<<<<<<<
 *                 raise ValueError('Value is below the maximum bound (%d)' % _max)
 *         return True
 */
    __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v__max); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    if (__pyx_t_4) {
      __pyx_t_1 = PyObject_RichCompare(__pyx_v_value, __pyx_v__max, Py_GT); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 301; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      __pyx_t_3 = __pyx_t_2;
    } else {
      __pyx_t_3 = __pyx_t_4;
    }
    if (__pyx_t_3) {

      /* "/home/tito/code/kivy/kivy/properties.pyx":302
 *             _max = s['max']
 *             if _max and value > _max:
 *                 raise ValueError('Value is below the maximum bound (%d)' % _max)             # <<<<<<<<<<<<<<
 *         return True
 * 
 */
      __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_15), __pyx_v__max); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_1));
      __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_5));
      PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_t_1));
      __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
      __pyx_t_1 = 0;
      __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
      __Pyx_Raise(__pyx_t_1, 0, 0);
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      goto __pyx_L7;
    }
    __pyx_L7:;
    goto __pyx_L6;
  }
  __pyx_L6:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":303
 *             if _max and value > _max:
 *                 raise ValueError('Value is below the maximum bound (%d)' % _max)
 *         return True             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.properties.BoundedNumericProperty.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_s);
  __Pyx_DECREF(__pyx_v__min);
  __Pyx_DECREF(__pyx_v__max);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":318
 *     cdef list options
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.options = []
 * 
 */

static int __pyx_pf_4kivy_10properties_14OptionProperty_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_14OptionProperty_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__cinit__");
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;

  /* "/home/tito/code/kivy/kivy/properties.pyx":319
 * 
 *     def __cinit__(self):
 *         self.options = []             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *largs, **kw):
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 319; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_OptionProperty *)__pyx_v_self)->options);
  __Pyx_DECREF(((PyObject *)((struct __pyx_obj_4kivy_10properties_OptionProperty *)__pyx_v_self)->options));
  ((struct __pyx_obj_4kivy_10properties_OptionProperty *)__pyx_v_self)->options = __pyx_t_1;
  __pyx_t_1 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.OptionProperty.__cinit__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":321
 *         self.options = []
 * 
 *     def __init__(self, *largs, **kw):             # <<<<<<<<<<<<<<
 *         self.options = <list>(kw.get('options', []))
 *         Property.__init__(self, *largs, **kw)
 */

static int __pyx_pf_4kivy_10properties_14OptionProperty_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_14OptionProperty_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_largs = 0;
  PyObject *__pyx_v_kw = 0;
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("__init__");
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kw = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New();
  if (unlikely(!__pyx_v_kw)) return -1;
  __Pyx_GOTREF(__pyx_v_kw);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_largs = __pyx_args;

  /* "/home/tito/code/kivy/kivy/properties.pyx":322
 * 
 *     def __init__(self, *largs, **kw):
 *         self.options = <list>(kw.get('options', []))             # <<<<<<<<<<<<<<
 *         Property.__init__(self, *largs, **kw)
 * 
 */
  if (unlikely(__pyx_v_kw == Py_None)) {
    PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'get'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __pyx_t_2 = __Pyx_PyDict_GetItemDefault(((PyObject *)__pyx_v_kw), ((PyObject *)__pyx_n_s__options), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_t_2)));
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_OptionProperty *)__pyx_v_self)->options);
  __Pyx_DECREF(((PyObject *)((struct __pyx_obj_4kivy_10properties_OptionProperty *)__pyx_v_self)->options));
  ((struct __pyx_obj_4kivy_10properties_OptionProperty *)__pyx_v_self)->options = ((PyObject*)__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":323
 *     def __init__(self, *largs, **kw):
 *         self.options = <list>(kw.get('options', []))
 *         Property.__init__(self, *largs, **kw)             # <<<<<<<<<<<<<<
 * 
 *     cdef init_storage(self, dict storage):
 */
  __pyx_t_2 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_4kivy_10properties_Property)), __pyx_n_s____init__); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_INCREF(__pyx_v_self);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_self);
  __Pyx_GIVEREF(__pyx_v_self);
  __pyx_t_3 = PySequence_Tuple(((PyObject *)__pyx_v_largs)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __pyx_t_4 = PyNumber_Add(((PyObject *)__pyx_t_1), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_4));
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_t_2, ((PyObject *)__pyx_t_4), ((PyObject *)__pyx_v_kw)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.properties.OptionProperty.__init__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_largs);
  __Pyx_DECREF(__pyx_v_kw);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":325
 *         Property.__init__(self, *largs, **kw)
 * 
 *     cdef init_storage(self, dict storage):             # <<<<<<<<<<<<<<
 *         Property.init_storage(self, storage)
 *         storage['options'] = self.options[:]
 */

static  PyObject *__pyx_f_4kivy_10properties_14OptionProperty_init_storage(struct __pyx_obj_4kivy_10properties_OptionProperty *__pyx_v_self, PyObject *__pyx_v_storage) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("init_storage");

  /* "/home/tito/code/kivy/kivy/properties.pyx":326
 * 
 *     cdef init_storage(self, dict storage):
 *         Property.init_storage(self, storage)             # <<<<<<<<<<<<<<
 *         storage['options'] = self.options[:]
 * 
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->init_storage(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_storage); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":327
 *     cdef init_storage(self, dict storage):
 *         Property.init_storage(self, storage)
 *         storage['options'] = self.options[:]             # <<<<<<<<<<<<<<
 * 
 *     cdef check(self, obj, value):
 */
  __pyx_t_1 = __Pyx_PySequence_GetSlice(((PyObject *)__pyx_v_self->options), 0, PY_SSIZE_T_MAX); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__options), ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.OptionProperty.init_storage");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":329
 *         storage['options'] = self.options[:]
 * 
 *     cdef check(self, obj, value):             # <<<<<<<<<<<<<<
 *         if Property.check(self, obj, value):
 *             return True
 */

static  PyObject *__pyx_f_4kivy_10properties_14OptionProperty_check(struct __pyx_obj_4kivy_10properties_OptionProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("check");

  /* "/home/tito/code/kivy/kivy/properties.pyx":330
 * 
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):             # <<<<<<<<<<<<<<
 *             return True
 *         if value not in self.storage[obj.__uid]['options']:
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->check(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":331
 *     cdef check(self, obj, value):
 *         if Property.check(self, obj, value):
 *             return True             # <<<<<<<<<<<<<<
 *         if value not in self.storage[obj.__uid]['options']:
 *             raise ValueError('Value is not in available options')
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":332
 *         if Property.check(self, obj, value):
 *             return True
 *         if value not in self.storage[obj.__uid]['options']:             # <<<<<<<<<<<<<<
 *             raise ValueError('Value is not in available options')
 * 
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->__pyx_base.storage), __pyx_t_1); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_GetItem(__pyx_t_3, ((PyObject *)__pyx_n_s__options)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_2 = (__Pyx_NegateNonNeg(PySequence_Contains(__pyx_t_1, __pyx_v_value))); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_2) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":333
 *             return True
 *         if value not in self.storage[obj.__uid]['options']:
 *             raise ValueError('Value is not in available options')             # <<<<<<<<<<<<<<
 * 
 * 
 */
    __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_17), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L4;
  }
  __pyx_L4:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.OptionProperty.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":346
 *     cdef list properties
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.properties = list()
 * 
 */

static int __pyx_pf_4kivy_10properties_21ReferenceListProperty_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_21ReferenceListProperty_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__cinit__");
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;

  /* "/home/tito/code/kivy/kivy/properties.pyx":347
 * 
 *     def __cinit__(self):
 *         self.properties = list()             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, *largs, **kw):
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self)->properties);
  __Pyx_DECREF(((PyObject *)((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self)->properties));
  ((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self)->properties = __pyx_t_1;
  __pyx_t_1 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.__cinit__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":349
 *         self.properties = list()
 * 
 *     def __init__(self, *largs, **kw):             # <<<<<<<<<<<<<<
 *         for prop in largs:
 *             self.properties.append(prop)
 */

static int __pyx_pf_4kivy_10properties_21ReferenceListProperty_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_21ReferenceListProperty_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_largs = 0;
  PyObject *__pyx_v_kw = 0;
  PyObject *__pyx_v_prop;
  int __pyx_r;
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("__init__");
  if (unlikely(__pyx_kwds) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__init__", 1))) return -1;
  __pyx_v_kw = (__pyx_kwds) ? PyDict_Copy(__pyx_kwds) : PyDict_New();
  if (unlikely(!__pyx_v_kw)) return -1;
  __Pyx_GOTREF(__pyx_v_kw);
  __Pyx_INCREF(__pyx_args);
  __pyx_v_largs = __pyx_args;
  __pyx_v_prop = Py_None; __Pyx_INCREF(Py_None);

  /* "/home/tito/code/kivy/kivy/properties.pyx":350
 * 
 *     def __init__(self, *largs, **kw):
 *         for prop in largs:             # <<<<<<<<<<<<<<
 *             self.properties.append(prop)
 *         Property.__init__(self, largs, **kw)
 */
  if (unlikely(__pyx_v_largs == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_1 = 0; __pyx_t_2 = ((PyObject *)__pyx_v_largs); __Pyx_INCREF(__pyx_t_2);
  for (;;) {
    if (__pyx_t_1 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
    __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_1); __Pyx_INCREF(__pyx_t_3); __pyx_t_1++;
    __Pyx_DECREF(__pyx_v_prop);
    __pyx_v_prop = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":351
 *     def __init__(self, *largs, **kw):
 *         for prop in largs:
 *             self.properties.append(prop)             # <<<<<<<<<<<<<<
 *         Property.__init__(self, largs, **kw)
 * 
 */
    if (unlikely(((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self)->properties == Py_None)) {
      PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'append'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
    }
    __pyx_t_4 = PyList_Append(((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self)->properties, __pyx_v_prop); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":352
 *         for prop in largs:
 *             self.properties.append(prop)
 *         Property.__init__(self, largs, **kw)             # <<<<<<<<<<<<<<
 * 
 *     cdef init_storage(self, dict storage):
 */
  __pyx_t_2 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_4kivy_10properties_Property)), __pyx_n_s____init__); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __Pyx_INCREF(__pyx_v_self);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_self);
  __Pyx_GIVEREF(__pyx_v_self);
  __Pyx_INCREF(((PyObject *)__pyx_v_largs));
  PyTuple_SET_ITEM(__pyx_t_3, 1, ((PyObject *)__pyx_v_largs));
  __Pyx_GIVEREF(((PyObject *)__pyx_v_largs));
  __pyx_t_5 = PyEval_CallObjectWithKeywords(__pyx_t_2, ((PyObject *)__pyx_t_3), ((PyObject *)__pyx_v_kw)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 352; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.__init__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_largs);
  __Pyx_DECREF(__pyx_v_kw);
  __Pyx_DECREF(__pyx_v_prop);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":354
 *         Property.__init__(self, largs, **kw)
 * 
 *     cdef init_storage(self, dict storage):             # <<<<<<<<<<<<<<
 *         Property.init_storage(self, storage)
 *         storage['properties'] = self.properties
 */

static  PyObject *__pyx_f_4kivy_10properties_21ReferenceListProperty_init_storage(struct __pyx_obj_4kivy_10properties_ReferenceListProperty *__pyx_v_self, PyObject *__pyx_v_storage) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("init_storage");

  /* "/home/tito/code/kivy/kivy/properties.pyx":355
 * 
 *     cdef init_storage(self, dict storage):
 *         Property.init_storage(self, storage)             # <<<<<<<<<<<<<<
 *         storage['properties'] = self.properties
 *         storage['stop_event'] = 0
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->init_storage(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_storage); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":356
 *     cdef init_storage(self, dict storage):
 *         Property.init_storage(self, storage)
 *         storage['properties'] = self.properties             # <<<<<<<<<<<<<<
 *         storage['stop_event'] = 0
 * 
 */
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__properties), ((PyObject *)__pyx_v_self->properties)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 356; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/properties.pyx":357
 *         Property.init_storage(self, storage)
 *         storage['properties'] = self.properties
 *         storage['stop_event'] = 0             # <<<<<<<<<<<<<<
 * 
 *     cpdef link_deps(self, object obj, str name):
 */
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__stop_event), __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.init_storage");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":359
 *         storage['stop_event'] = 0
 * 
 *     cpdef link_deps(self, object obj, str name):             # <<<<<<<<<<<<<<
 *         Property.link_deps(self, obj, name)
 *         for prop in self.properties:
 */

static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_2link_deps(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_21ReferenceListProperty_link_deps(struct __pyx_obj_4kivy_10properties_ReferenceListProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_name, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_prop;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("link_deps");
  __pyx_v_prop = Py_None; __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__link_deps); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_21ReferenceListProperty_2link_deps)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(((PyObject *)__pyx_v_name));
      PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_name));
      __Pyx_GIVEREF(((PyObject *)__pyx_v_name));
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":360
 * 
 *     cpdef link_deps(self, object obj, str name):
 *         Property.link_deps(self, obj, name)             # <<<<<<<<<<<<<<
 *         for prop in self.properties:
 *             prop.bind(obj, self.trigger_change)
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->link_deps(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":361
 *     cpdef link_deps(self, object obj, str name):
 *         Property.link_deps(self, obj, name)
 *         for prop in self.properties:             # <<<<<<<<<<<<<<
 *             prop.bind(obj, self.trigger_change)
 *         self.trigger_change(obj, None)
 */
  if (unlikely(__pyx_v_self->properties == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 361; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_4 = 0; __pyx_t_1 = ((PyObject *)__pyx_v_self->properties); __Pyx_INCREF(__pyx_t_1);
  for (;;) {
    if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
    __Pyx_DECREF(__pyx_v_prop);
    __pyx_v_prop = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":362
 *         Property.link_deps(self, obj, name)
 *         for prop in self.properties:
 *             prop.bind(obj, self.trigger_change)             # <<<<<<<<<<<<<<
 *         self.trigger_change(obj, None)
 * 
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_prop, __pyx_n_s__bind); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__trigger_change); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_INCREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_obj);
    __Pyx_GIVEREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_2 = 0;
    __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":363
 *         for prop in self.properties:
 *             prop.bind(obj, self.trigger_change)
 *         self.trigger_change(obj, None)             # <<<<<<<<<<<<<<
 * 
 *     cpdef unlink(self, obj):
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)__pyx_v_self->__pyx_base.__pyx_vtab)->trigger_change(__pyx_v_self, __pyx_v_obj, Py_None, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.link_deps");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_prop);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":359
 *         storage['stop_event'] = 0
 * 
 *     cpdef link_deps(self, object obj, str name):             # <<<<<<<<<<<<<<
 *         Property.link_deps(self, obj, name)
 *         for prop in self.properties:
 */

static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_2link_deps(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_2link_deps(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__name,0};
  __Pyx_RefNannySetupContext("link_deps");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("link_deps", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "link_deps") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_name = ((PyObject*)values[1]);
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_name = ((PyObject*)PyTuple_GET_ITEM(__pyx_args, 1));
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("link_deps", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.link_deps");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self)->__pyx_base.__pyx_vtab)->__pyx_base.link_deps(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.link_deps");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":365
 *         self.trigger_change(obj, None)
 * 
 *     cpdef unlink(self, obj):             # <<<<<<<<<<<<<<
 *         for prop in self.properties:
 *             prop.unbind(obj, self.trigger_change)
 */

static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_3unlink(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_21ReferenceListProperty_unlink(struct __pyx_obj_4kivy_10properties_ReferenceListProperty *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_prop;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("unlink");
  __pyx_v_prop = Py_None; __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__unlink); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_21ReferenceListProperty_3unlink)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":366
 * 
 *     cpdef unlink(self, obj):
 *         for prop in self.properties:             # <<<<<<<<<<<<<<
 *             prop.unbind(obj, self.trigger_change)
 *         Property.unlink(self, obj)
 */
  if (unlikely(__pyx_v_self->properties == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 366; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_4 = 0; __pyx_t_1 = ((PyObject *)__pyx_v_self->properties); __Pyx_INCREF(__pyx_t_1);
  for (;;) {
    if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
    __Pyx_DECREF(__pyx_v_prop);
    __pyx_v_prop = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":367
 *     cpdef unlink(self, obj):
 *         for prop in self.properties:
 *             prop.unbind(obj, self.trigger_change)             # <<<<<<<<<<<<<<
 *         Property.unlink(self, obj)
 * 
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_prop, __pyx_n_s__unbind); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__trigger_change); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_INCREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_obj);
    __Pyx_GIVEREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_2 = 0;
    __pyx_t_2 = PyObject_Call(__pyx_t_3, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":368
 *         for prop in self.properties:
 *             prop.unbind(obj, self.trigger_change)
 *         Property.unlink(self, obj)             # <<<<<<<<<<<<<<
 * 
 *     cpdef trigger_change(self, obj, value):
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->unlink(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.unlink");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_prop);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":365
 *         self.trigger_change(obj, None)
 * 
 *     cpdef unlink(self, obj):             # <<<<<<<<<<<<<<
 *         for prop in self.properties:
 *             prop.unbind(obj, self.trigger_change)
 */

static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_3unlink(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_3unlink(PyObject *__pyx_v_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("unlink");
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self)->__pyx_base.__pyx_vtab)->__pyx_base.unlink(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.unlink");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":370
 *         Property.unlink(self, obj)
 * 
 *     cpdef trigger_change(self, obj, value):             # <<<<<<<<<<<<<<
 *         s = self.storage[obj.__uid]
 *         p = s['properties']
 */

static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_4trigger_change(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_21ReferenceListProperty_trigger_change(struct __pyx_obj_4kivy_10properties_ReferenceListProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_s;
  PyObject *__pyx_v_p;
  Py_ssize_t __pyx_v_x;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  Py_ssize_t __pyx_t_6;
  PyObject *__pyx_t_7 = NULL;
  __Pyx_RefNannySetupContext("trigger_change");
  __pyx_v_s = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_p = Py_None; __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__trigger_change); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_21ReferenceListProperty_4trigger_change)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(__pyx_v_value);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_value);
      __Pyx_GIVEREF(__pyx_v_value);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":371
 * 
 *     cpdef trigger_change(self, obj, value):
 *         s = self.storage[obj.__uid]             # <<<<<<<<<<<<<<
 *         p = s['properties']
 *         if s['stop_event']:
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->__pyx_base.storage), __pyx_t_1); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 371; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_v_s);
  __pyx_v_s = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":372
 *     cpdef trigger_change(self, obj, value):
 *         s = self.storage[obj.__uid]
 *         p = s['properties']             # <<<<<<<<<<<<<<
 *         if s['stop_event']:
 *             return
 */
  __pyx_t_3 = PyObject_GetItem(__pyx_v_s, ((PyObject *)__pyx_n_s__properties)); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_v_p);
  __pyx_v_p = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":373
 *         s = self.storage[obj.__uid]
 *         p = s['properties']
 *         if s['stop_event']:             # <<<<<<<<<<<<<<
 *             return
 *         s['value'] = [p[x].get(obj) for x in xrange(len(p))]
 */
  __pyx_t_3 = PyObject_GetItem(__pyx_v_s, ((PyObject *)__pyx_n_s__stop_event)); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (__pyx_t_4) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":374
 *         p = s['properties']
 *         if s['stop_event']:
 *             return             # <<<<<<<<<<<<<<
 *         s['value'] = [p[x].get(obj) for x in xrange(len(p))]
 *         self.dispatch(obj)
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_r = Py_None; __Pyx_INCREF(Py_None);
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":375
 *         if s['stop_event']:
 *             return
 *         s['value'] = [p[x].get(obj) for x in xrange(len(p))]             # <<<<<<<<<<<<<<
 *         self.dispatch(obj)
 * 
 */
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __pyx_t_5 = PyObject_Length(__pyx_v_p); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_x = __pyx_t_6;
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_p, __pyx_v_x, sizeof(Py_ssize_t), PyInt_FromSsize_t); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyObject_GetAttr(__pyx_t_1, __pyx_n_s__get); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_INCREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_obj);
    __Pyx_GIVEREF(__pyx_v_obj);
    __pyx_t_7 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_1), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_7);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (unlikely(PyList_Append(__pyx_t_3, (PyObject*)__pyx_t_7))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  }
  if (PyObject_SetItem(__pyx_v_s, ((PyObject *)__pyx_n_s__value), ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":376
 *             return
 *         s['value'] = [p[x].get(obj) for x in xrange(len(p))]
 *         self.dispatch(obj)             # <<<<<<<<<<<<<<
 * 
 *     cdef convert(self, obj, value):
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.dispatch(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 376; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.trigger_change");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_s);
  __Pyx_DECREF(__pyx_v_p);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":370
 *         Property.unlink(self, obj)
 * 
 *     cpdef trigger_change(self, obj, value):             # <<<<<<<<<<<<<<
 *         s = self.storage[obj.__uid]
 *         p = s['properties']
 */

static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_4trigger_change(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_4trigger_change(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__value,0};
  __Pyx_RefNannySetupContext("trigger_change");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("trigger_change", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "trigger_change") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_value = values[1];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_value = PyTuple_GET_ITEM(__pyx_args, 1);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("trigger_change", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.trigger_change");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self)->__pyx_base.__pyx_vtab)->trigger_change(((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self), __pyx_v_obj, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.trigger_change");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":378
 *         self.dispatch(obj)
 * 
 *     cdef convert(self, obj, value):             # <<<<<<<<<<<<<<
 *         if type(value) not in (list, tuple):
 *             raise ValueError('Value must be a list or tuple')
 */

static  PyObject *__pyx_f_4kivy_10properties_21ReferenceListProperty_convert(struct __pyx_obj_4kivy_10properties_ReferenceListProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  int __pyx_t_4;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("convert");

  /* "/home/tito/code/kivy/kivy/properties.pyx":379
 * 
 *     cdef convert(self, obj, value):
 *         if type(value) not in (list, tuple):             # <<<<<<<<<<<<<<
 *             raise ValueError('Value must be a list or tuple')
 *         return <list>value
 */
  __Pyx_INCREF(((PyObject *)Py_TYPE(__pyx_v_value)));
  __pyx_t_1 = ((PyObject *)Py_TYPE(__pyx_v_value));
  __pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_t_1), ((PyObject *)((PyObject*)(&PyList_Type))), Py_NE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_4 = __pyx_t_3;
  if (__pyx_t_4) {
    __pyx_t_2 = PyObject_RichCompare(((PyObject *)__pyx_t_1), ((PyObject *)((PyObject*)(&PyTuple_Type))), Py_NE); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely((__pyx_t_3 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __pyx_t_5 = __pyx_t_3;
    __pyx_t_3 = __pyx_t_5;
  } else {
    __pyx_t_3 = __pyx_t_4;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_4 = __pyx_t_3;
  if (__pyx_t_4) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":380
 *     cdef convert(self, obj, value):
 *         if type(value) not in (list, tuple):
 *             raise ValueError('Value must be a list or tuple')             # <<<<<<<<<<<<<<
 *         return <list>value
 * 
 */
    __pyx_t_1 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_19), NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_Raise(__pyx_t_1, 0, 0);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":381
 *         if type(value) not in (list, tuple):
 *             raise ValueError('Value must be a list or tuple')
 *         return <list>value             # <<<<<<<<<<<<<<
 * 
 *     cdef check(self, obj, value):
 */
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_v_value)));
  __pyx_r = __pyx_v_value;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.convert");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":383
 *         return <list>value
 * 
 *     cdef check(self, obj, value):             # <<<<<<<<<<<<<<
 *         if len(value) != len(self.storage[obj.__uid]['properties']):
 *             raise ValueError('Value must have the same size as beginning')
 */

static  PyObject *__pyx_f_4kivy_10properties_21ReferenceListProperty_check(struct __pyx_obj_4kivy_10properties_ReferenceListProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  Py_ssize_t __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("check");

  /* "/home/tito/code/kivy/kivy/properties.pyx":384
 * 
 *     cdef check(self, obj, value):
 *         if len(value) != len(self.storage[obj.__uid]['properties']):             # <<<<<<<<<<<<<<
 *             raise ValueError('Value must have the same size as beginning')
 * 
 */
  __pyx_t_1 = PyObject_Length(__pyx_v_value); if (unlikely(__pyx_t_1 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_t_2 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->__pyx_base.storage), __pyx_t_2); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_GetItem(__pyx_t_3, ((PyObject *)__pyx_n_s__properties)); if (!__pyx_t_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = PyObject_Length(__pyx_t_2); if (unlikely(__pyx_t_4 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_5 = (__pyx_t_1 != __pyx_t_4);
  if (__pyx_t_5) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":385
 *     cdef check(self, obj, value):
 *         if len(value) != len(self.storage[obj.__uid]['properties']):
 *             raise ValueError('Value must have the same size as beginning')             # <<<<<<<<<<<<<<
 * 
 *     cpdef set(self, obj, value):
 */
    __pyx_t_2 = PyObject_Call(__pyx_builtin_ValueError, ((PyObject *)__pyx_k_tuple_21), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    goto __pyx_L3;
  }
  __pyx_L3:;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":387
 *             raise ValueError('Value must have the same size as beginning')
 * 
 *     cpdef set(self, obj, value):             # <<<<<<<<<<<<<<
 *         cdef int idx
 *         storage = self.storage[obj.__uid]
 */

static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_5set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_21ReferenceListProperty_set(struct __pyx_obj_4kivy_10properties_ReferenceListProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  int __pyx_v_idx;
  PyObject *__pyx_v_storage;
  PyObject *__pyx_v_props;
  PyObject *__pyx_v_prop;
  PyObject *__pyx_v_x;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  Py_ssize_t __pyx_t_5;
  int __pyx_t_6;
  __Pyx_RefNannySetupContext("set");
  __Pyx_INCREF(__pyx_v_value);
  __pyx_v_storage = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_props = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_prop = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_x = Py_None; __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__set); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_21ReferenceListProperty_5set)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(__pyx_v_value);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_value);
      __Pyx_GIVEREF(__pyx_v_value);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":389
 *     cpdef set(self, obj, value):
 *         cdef int idx
 *         storage = self.storage[obj.__uid]             # <<<<<<<<<<<<<<
 *         value = self.convert(obj, value)
 *         if self.compare_value(storage['value'], value):
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->__pyx_base.storage), __pyx_t_1); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_v_storage);
  __pyx_v_storage = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":390
 *         cdef int idx
 *         storage = self.storage[obj.__uid]
 *         value = self.convert(obj, value)             # <<<<<<<<<<<<<<
 *         if self.compare_value(storage['value'], value):
 *             return False
 */
  __pyx_t_3 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.convert(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_v_value);
  __pyx_v_value = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":391
 *         storage = self.storage[obj.__uid]
 *         value = self.convert(obj, value)
 *         if self.compare_value(storage['value'], value):             # <<<<<<<<<<<<<<
 *             return False
 *         self.check(obj, value)
 */
  __pyx_t_3 = PyObject_GetItem(__pyx_v_storage, ((PyObject *)__pyx_n_s__value)); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.compare_value(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_t_3, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_t_4) {

    /* "/home/tito/code/kivy/kivy/properties.pyx":392
 *         value = self.convert(obj, value)
 *         if self.compare_value(storage['value'], value):
 *             return False             # <<<<<<<<<<<<<<
 *         self.check(obj, value)
 *         # prevent dependice loop
 */
    __Pyx_XDECREF(__pyx_r);
    __pyx_t_1 = __Pyx_PyBool_FromLong(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_r = __pyx_t_1;
    __pyx_t_1 = 0;
    goto __pyx_L0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":393
 *         if self.compare_value(storage['value'], value):
 *             return False
 *         self.check(obj, value)             # <<<<<<<<<<<<<<
 *         # prevent dependice loop
 *         storage['stop_event'] = 1
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.check(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":395
 *         self.check(obj, value)
 *         # prevent dependice loop
 *         storage['stop_event'] = 1             # <<<<<<<<<<<<<<
 *         props = storage['properties']
 *         for idx in xrange(len(props)):
 */
  if (PyObject_SetItem(__pyx_v_storage, ((PyObject *)__pyx_n_s__stop_event), __pyx_int_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/properties.pyx":396
 *         # prevent dependice loop
 *         storage['stop_event'] = 1
 *         props = storage['properties']             # <<<<<<<<<<<<<<
 *         for idx in xrange(len(props)):
 *             prop = props[idx]
 */
  __pyx_t_1 = PyObject_GetItem(__pyx_v_storage, ((PyObject *)__pyx_n_s__properties)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_v_props);
  __pyx_v_props = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":397
 *         storage['stop_event'] = 1
 *         props = storage['properties']
 *         for idx in xrange(len(props)):             # <<<<<<<<<<<<<<
 *             prop = props[idx]
 *             x = value[idx]
 */
  __pyx_t_5 = PyObject_Length(__pyx_v_props); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
    __pyx_v_idx = __pyx_t_6;

    /* "/home/tito/code/kivy/kivy/properties.pyx":398
 *         props = storage['properties']
 *         for idx in xrange(len(props)):
 *             prop = props[idx]             # <<<<<<<<<<<<<<
 *             x = value[idx]
 *             prop.set(obj, x)
 */
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_props, __pyx_v_idx, sizeof(int), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_prop);
    __pyx_v_prop = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":399
 *         for idx in xrange(len(props)):
 *             prop = props[idx]
 *             x = value[idx]             # <<<<<<<<<<<<<<
 *             prop.set(obj, x)
 *         storage['stop_event'] = 0
 */
    __pyx_t_1 = __Pyx_GetItemInt(__pyx_v_value, __pyx_v_idx, sizeof(int), PyInt_FromLong); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 399; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_v_x);
    __pyx_v_x = __pyx_t_1;
    __pyx_t_1 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":400
 *             prop = props[idx]
 *             x = value[idx]
 *             prop.set(obj, x)             # <<<<<<<<<<<<<<
 *         storage['stop_event'] = 0
 *         storage['value'] = value
 */
    __pyx_t_1 = PyObject_GetAttr(__pyx_v_prop, __pyx_n_s__set); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_INCREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_obj);
    __Pyx_GIVEREF(__pyx_v_obj);
    __Pyx_INCREF(__pyx_v_x);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_x);
    __Pyx_GIVEREF(__pyx_v_x);
    __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":401
 *             x = value[idx]
 *             prop.set(obj, x)
 *         storage['stop_event'] = 0             # <<<<<<<<<<<<<<
 *         storage['value'] = value
 *         self.dispatch(obj)
 */
  if (PyObject_SetItem(__pyx_v_storage, ((PyObject *)__pyx_n_s__stop_event), __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 401; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/properties.pyx":402
 *             prop.set(obj, x)
 *         storage['stop_event'] = 0
 *         storage['value'] = value             # <<<<<<<<<<<<<<
 *         self.dispatch(obj)
 *         return True
 */
  if (PyObject_SetItem(__pyx_v_storage, ((PyObject *)__pyx_n_s__value), __pyx_v_value) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/properties.pyx":403
 *         storage['stop_event'] = 0
 *         storage['value'] = value
 *         self.dispatch(obj)             # <<<<<<<<<<<<<<
 *         return True
 * 
 */
  __pyx_t_2 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.dispatch(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":404
 *         storage['value'] = value
 *         self.dispatch(obj)
 *         return True             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.set");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_storage);
  __Pyx_DECREF(__pyx_v_props);
  __Pyx_DECREF(__pyx_v_prop);
  __Pyx_DECREF(__pyx_v_x);
  __Pyx_DECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":387
 *             raise ValueError('Value must have the same size as beginning')
 * 
 *     cpdef set(self, obj, value):             # <<<<<<<<<<<<<<
 *         cdef int idx
 *         storage = self.storage[obj.__uid]
 */

static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_5set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_21ReferenceListProperty_5set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__value,0};
  __Pyx_RefNannySetupContext("set");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_value = values[1];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_value = PyTuple_GET_ITEM(__pyx_args, 1);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.set");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty *)((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)__pyx_v_self)->__pyx_base.__pyx_vtab)->__pyx_base.set(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.ReferenceListProperty.set");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":434
 *     cdef list bind_objects
 * 
 *     def __cinit__(self):             # <<<<<<<<<<<<<<
 *         self.getter = None
 *         self.setter = None
 */

static int __pyx_pf_4kivy_10properties_13AliasProperty_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_13AliasProperty_0__cinit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__cinit__");
  if (unlikely(PyTuple_GET_SIZE(__pyx_args) > 0)) {
    __Pyx_RaiseArgtupleInvalid("__cinit__", 1, 0, 0, PyTuple_GET_SIZE(__pyx_args)); return -1;}
  if (unlikely(__pyx_kwds) && unlikely(PyDict_Size(__pyx_kwds) > 0) && unlikely(!__Pyx_CheckKeywordStrings(__pyx_kwds, "__cinit__", 0))) return -1;

  /* "/home/tito/code/kivy/kivy/properties.pyx":435
 * 
 *     def __cinit__(self):
 *         self.getter = None             # <<<<<<<<<<<<<<
 *         self.setter = None
 *         self.bind_objects = list()
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->getter);
  __Pyx_DECREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->getter);
  ((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->getter = Py_None;

  /* "/home/tito/code/kivy/kivy/properties.pyx":436
 *     def __cinit__(self):
 *         self.getter = None
 *         self.setter = None             # <<<<<<<<<<<<<<
 *         self.bind_objects = list()
 * 
 */
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->setter);
  __Pyx_DECREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->setter);
  ((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->setter = Py_None;

  /* "/home/tito/code/kivy/kivy/properties.pyx":437
 *         self.getter = None
 *         self.setter = None
 *         self.bind_objects = list()             # <<<<<<<<<<<<<<
 * 
 *     def __init__(self, getter, setter, **kwargs):
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_t_1));
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->bind_objects);
  __Pyx_DECREF(((PyObject *)((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->bind_objects));
  ((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->bind_objects = __pyx_t_1;
  __pyx_t_1 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.__cinit__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":439
 *         self.bind_objects = list()
 * 
 *     def __init__(self, getter, setter, **kwargs):             # <<<<<<<<<<<<<<
 *         Property.__init__(self, None, **kwargs)
 *         self.getter = getter
 */

static int __pyx_pf_4kivy_10properties_13AliasProperty_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pf_4kivy_10properties_13AliasProperty_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_getter = 0;
  PyObject *__pyx_v_setter = 0;
  PyObject *__pyx_v_kwargs = 0;
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__getter,&__pyx_n_s__setter,0};
  __Pyx_RefNannySetupContext("__init__");
  __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return -1;
  __Pyx_GOTREF(__pyx_v_kwargs);
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__getter);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__setter);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, PyTuple_GET_SIZE(__pyx_args), "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_getter = values[0];
    __pyx_v_setter = values[1];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_getter = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_setter = PyTuple_GET_ITEM(__pyx_args, 1);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.__init__");
  __Pyx_RefNannyFinishContext();
  return -1;
  __pyx_L4_argument_unpacking_done:;

  /* "/home/tito/code/kivy/kivy/properties.pyx":440
 * 
 *     def __init__(self, getter, setter, **kwargs):
 *         Property.__init__(self, None, **kwargs)             # <<<<<<<<<<<<<<
 *         self.getter = getter
 *         self.setter = setter
 */
  __pyx_t_1 = PyObject_GetAttr(((PyObject *)((PyObject*)__pyx_ptype_4kivy_10properties_Property)), __pyx_n_s____init__); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_2));
  __Pyx_INCREF(__pyx_v_self);
  PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_self);
  __Pyx_GIVEREF(__pyx_v_self);
  __Pyx_INCREF(Py_None);
  PyTuple_SET_ITEM(__pyx_t_2, 1, Py_None);
  __Pyx_GIVEREF(Py_None);
  __pyx_t_3 = PyEval_CallObjectWithKeywords(__pyx_t_1, ((PyObject *)__pyx_t_2), ((PyObject *)__pyx_v_kwargs)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":441
 *     def __init__(self, getter, setter, **kwargs):
 *         Property.__init__(self, None, **kwargs)
 *         self.getter = getter             # <<<<<<<<<<<<<<
 *         self.setter = setter
 *         self.bind_objects = list(kwargs.get('bind', []))
 */
  __Pyx_INCREF(__pyx_v_getter);
  __Pyx_GIVEREF(__pyx_v_getter);
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->getter);
  __Pyx_DECREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->getter);
  ((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->getter = __pyx_v_getter;

  /* "/home/tito/code/kivy/kivy/properties.pyx":442
 *         Property.__init__(self, None, **kwargs)
 *         self.getter = getter
 *         self.setter = setter             # <<<<<<<<<<<<<<
 *         self.bind_objects = list(kwargs.get('bind', []))
 * 
 */
  __Pyx_INCREF(__pyx_v_setter);
  __Pyx_GIVEREF(__pyx_v_setter);
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->setter);
  __Pyx_DECREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->setter);
  ((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->setter = __pyx_v_setter;

  /* "/home/tito/code/kivy/kivy/properties.pyx":443
 *         self.getter = getter
 *         self.setter = setter
 *         self.bind_objects = list(kwargs.get('bind', []))             # <<<<<<<<<<<<<<
 * 
 *     cdef init_storage(self, dict storage):
 */
  if (unlikely(__pyx_v_kwargs == Py_None)) {
    PyErr_SetString(PyExc_AttributeError, "'NoneType' object has no attribute 'get'"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __pyx_t_2 = __Pyx_PyDict_GetItemDefault(((PyObject *)__pyx_v_kwargs), ((PyObject *)__pyx_n_s__bind), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(((PyObject *)((PyObject*)(&PyList_Type))), ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 443; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_GOTREF(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->bind_objects);
  __Pyx_DECREF(((PyObject *)((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->bind_objects));
  ((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->bind_objects = ((PyObject*)__pyx_t_2);
  __pyx_t_2 = 0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.__init__");
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_kwargs);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":445
 *         self.bind_objects = list(kwargs.get('bind', []))
 * 
 *     cdef init_storage(self, dict storage):             # <<<<<<<<<<<<<<
 *         Property.init_storage(self, storage)
 *         storage['getter'] = self.getter
 */

static  PyObject *__pyx_f_4kivy_10properties_13AliasProperty_init_storage(struct __pyx_obj_4kivy_10properties_AliasProperty *__pyx_v_self, PyObject *__pyx_v_storage) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("init_storage");

  /* "/home/tito/code/kivy/kivy/properties.pyx":446
 * 
 *     cdef init_storage(self, dict storage):
 *         Property.init_storage(self, storage)             # <<<<<<<<<<<<<<
 *         storage['getter'] = self.getter
 *         storage['setter'] = self.setter
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->init_storage(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_storage); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":447
 *     cdef init_storage(self, dict storage):
 *         Property.init_storage(self, storage)
 *         storage['getter'] = self.getter             # <<<<<<<<<<<<<<
 *         storage['setter'] = self.setter
 * 
 */
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__getter), __pyx_v_self->getter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/properties.pyx":448
 *         Property.init_storage(self, storage)
 *         storage['getter'] = self.getter
 *         storage['setter'] = self.setter             # <<<<<<<<<<<<<<
 * 
 *     cpdef link_deps(self, object obj, str name):
 */
  if (PyDict_SetItem(((PyObject *)__pyx_v_storage), ((PyObject *)__pyx_n_s__setter), __pyx_v_self->setter) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.init_storage");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":450
 *         storage['setter'] = self.setter
 * 
 *     cpdef link_deps(self, object obj, str name):             # <<<<<<<<<<<<<<
 *         for prop in self.bind_objects:
 *             oprop = getattr(obj.__class__, prop)
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_2link_deps(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_13AliasProperty_link_deps(struct __pyx_obj_4kivy_10properties_AliasProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_name, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_prop;
  PyObject *__pyx_v_oprop;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("link_deps");
  __pyx_v_prop = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_oprop = Py_None; __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__link_deps); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_13AliasProperty_2link_deps)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(((PyObject *)__pyx_v_name));
      PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_name));
      __Pyx_GIVEREF(((PyObject *)__pyx_v_name));
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":451
 * 
 *     cpdef link_deps(self, object obj, str name):
 *         for prop in self.bind_objects:             # <<<<<<<<<<<<<<
 *             oprop = getattr(obj.__class__, prop)
 *             oprop.bind(obj, self.trigger_change)
 */
  if (unlikely(__pyx_v_self->bind_objects == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 451; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_4 = 0; __pyx_t_1 = ((PyObject *)__pyx_v_self->bind_objects); __Pyx_INCREF(__pyx_t_1);
  for (;;) {
    if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
    __Pyx_DECREF(__pyx_v_prop);
    __pyx_v_prop = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":452
 *     cpdef link_deps(self, object obj, str name):
 *         for prop in self.bind_objects:
 *             oprop = getattr(obj.__class__, prop)             # <<<<<<<<<<<<<<
 *             oprop.bind(obj, self.trigger_change)
 * 
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____class__); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_v_prop); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_v_oprop);
    __pyx_v_oprop = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":453
 *         for prop in self.bind_objects:
 *             oprop = getattr(obj.__class__, prop)
 *             oprop.bind(obj, self.trigger_change)             # <<<<<<<<<<<<<<
 * 
 *     cpdef unlink(self, obj):
 */
    __pyx_t_2 = PyObject_GetAttr(__pyx_v_oprop, __pyx_n_s__bind); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__trigger_change); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_INCREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_obj);
    __Pyx_GIVEREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.link_deps");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_prop);
  __Pyx_DECREF(__pyx_v_oprop);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":450
 *         storage['setter'] = self.setter
 * 
 *     cpdef link_deps(self, object obj, str name):             # <<<<<<<<<<<<<<
 *         for prop in self.bind_objects:
 *             oprop = getattr(obj.__class__, prop)
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_2link_deps(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_2link_deps(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_name = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__name,0};
  __Pyx_RefNannySetupContext("link_deps");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__name);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("link_deps", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "link_deps") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_name = ((PyObject*)values[1]);
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_name = ((PyObject*)PyTuple_GET_ITEM(__pyx_args, 1));
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("link_deps", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.AliasProperty.link_deps");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_name), (&PyString_Type), 1, "name", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_AliasProperty *)((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->__pyx_base.__pyx_vtab)->__pyx_base.link_deps(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_name, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.link_deps");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":455
 *             oprop.bind(obj, self.trigger_change)
 * 
 *     cpdef unlink(self, obj):             # <<<<<<<<<<<<<<
 *         for prop in self.bind_objects:
 *             oprop = getattr(obj.__class__, prop)
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_3unlink(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_13AliasProperty_unlink(struct __pyx_obj_4kivy_10properties_AliasProperty *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_prop;
  PyObject *__pyx_v_oprop;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  Py_ssize_t __pyx_t_4;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("unlink");
  __pyx_v_prop = Py_None; __Pyx_INCREF(Py_None);
  __pyx_v_oprop = Py_None; __Pyx_INCREF(Py_None);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__unlink); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_13AliasProperty_3unlink)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":456
 * 
 *     cpdef unlink(self, obj):
 *         for prop in self.bind_objects:             # <<<<<<<<<<<<<<
 *             oprop = getattr(obj.__class__, prop)
 *             oprop.unbind(obj, self.trigger_change)
 */
  if (unlikely(__pyx_v_self->bind_objects == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 456; __pyx_clineno = __LINE__; goto __pyx_L1_error;} 
  }
  __pyx_t_4 = 0; __pyx_t_1 = ((PyObject *)__pyx_v_self->bind_objects); __Pyx_INCREF(__pyx_t_1);
  for (;;) {
    if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break;
    __pyx_t_3 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_3); __pyx_t_4++;
    __Pyx_DECREF(__pyx_v_prop);
    __pyx_v_prop = __pyx_t_3;
    __pyx_t_3 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":457
 *     cpdef unlink(self, obj):
 *         for prop in self.bind_objects:
 *             oprop = getattr(obj.__class__, prop)             # <<<<<<<<<<<<<<
 *             oprop.unbind(obj, self.trigger_change)
 *         Property.unlink(self, obj)
 */
    __pyx_t_3 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____class__); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyObject_GetAttr(__pyx_t_3, __pyx_v_prop); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_v_oprop);
    __pyx_v_oprop = __pyx_t_2;
    __pyx_t_2 = 0;

    /* "/home/tito/code/kivy/kivy/properties.pyx":458
 *         for prop in self.bind_objects:
 *             oprop = getattr(obj.__class__, prop)
 *             oprop.unbind(obj, self.trigger_change)             # <<<<<<<<<<<<<<
 *         Property.unlink(self, obj)
 * 
 */
    __pyx_t_2 = PyObject_GetAttr(__pyx_v_oprop, __pyx_n_s__unbind); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__trigger_change); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_INCREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_obj);
    __Pyx_GIVEREF(__pyx_v_obj);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_3 = 0;
    __pyx_t_3 = PyObject_Call(__pyx_t_2, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "/home/tito/code/kivy/kivy/properties.pyx":459
 *             oprop = getattr(obj.__class__, prop)
 *             oprop.unbind(obj, self.trigger_change)
 *         Property.unlink(self, obj)             # <<<<<<<<<<<<<<
 * 
 *     cpdef trigger_change(self, obj, value):
 */
  __pyx_t_1 = __pyx_vtabptr_4kivy_10properties_Property->unlink(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.unlink");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_DECREF(__pyx_v_prop);
  __Pyx_DECREF(__pyx_v_oprop);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":455
 *             oprop.bind(obj, self.trigger_change)
 * 
 *     cpdef unlink(self, obj):             # <<<<<<<<<<<<<<
 *         for prop in self.bind_objects:
 *             oprop = getattr(obj.__class__, prop)
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_3unlink(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_3unlink(PyObject *__pyx_v_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("unlink");
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_AliasProperty *)((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->__pyx_base.__pyx_vtab)->__pyx_base.unlink(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.unlink");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":461
 *         Property.unlink(self, obj)
 * 
 *     cpdef trigger_change(self, obj, value):             # <<<<<<<<<<<<<<
 *         self.dispatch(obj)
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_4trigger_change(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_13AliasProperty_trigger_change(struct __pyx_obj_4kivy_10properties_AliasProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("trigger_change");
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__trigger_change); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_13AliasProperty_4trigger_change)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(__pyx_v_value);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_value);
      __Pyx_GIVEREF(__pyx_v_value);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":462
 * 
 *     cpdef trigger_change(self, obj, value):
 *         self.dispatch(obj)             # <<<<<<<<<<<<<<
 * 
 *     cdef check(self, obj, value):
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_AliasProperty *)__pyx_v_self->__pyx_base.__pyx_vtab)->__pyx_base.dispatch(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.trigger_change");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":461
 *         Property.unlink(self, obj)
 * 
 *     cpdef trigger_change(self, obj, value):             # <<<<<<<<<<<<<<
 *         self.dispatch(obj)
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_4trigger_change(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_4trigger_change(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__value,0};
  __Pyx_RefNannySetupContext("trigger_change");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("trigger_change", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "trigger_change") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_value = values[1];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_value = PyTuple_GET_ITEM(__pyx_args, 1);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("trigger_change", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.AliasProperty.trigger_change");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_AliasProperty *)((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->__pyx_base.__pyx_vtab)->trigger_change(((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self), __pyx_v_obj, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.trigger_change");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":464
 *         self.dispatch(obj)
 * 
 *     cdef check(self, obj, value):             # <<<<<<<<<<<<<<
 *         return True
 * 
 */

static  PyObject *__pyx_f_4kivy_10properties_13AliasProperty_check(struct __pyx_obj_4kivy_10properties_AliasProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("check");

  /* "/home/tito/code/kivy/kivy/properties.pyx":465
 * 
 *     cdef check(self, obj, value):
 *         return True             # <<<<<<<<<<<<<<
 * 
 *     cpdef get(self, obj):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.check");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":467
 *         return True
 * 
 *     cpdef get(self, obj):             # <<<<<<<<<<<<<<
 *         return self.storage[obj.__uid]['getter'](obj)
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_5get(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_13AliasProperty_get(struct __pyx_obj_4kivy_10properties_AliasProperty *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("get");
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__get); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_13AliasProperty_5get)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":468
 * 
 *     cpdef get(self, obj):
 *         return self.storage[obj.__uid]['getter'](obj)             # <<<<<<<<<<<<<<
 * 
 *     cpdef set(self, obj, value):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->__pyx_base.storage), __pyx_t_1); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_GetItem(__pyx_t_3, ((PyObject *)__pyx_n_s__getter)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __Pyx_INCREF(__pyx_v_obj);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_obj);
  __Pyx_GIVEREF(__pyx_v_obj);
  __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.get");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":467
 *         return True
 * 
 *     cpdef get(self, obj):             # <<<<<<<<<<<<<<
 *         return self.storage[obj.__uid]['getter'](obj)
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_5get(PyObject *__pyx_v_self, PyObject *__pyx_v_obj); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_5get(PyObject *__pyx_v_self, PyObject *__pyx_v_obj) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("get");
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_AliasProperty *)((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->__pyx_base.__pyx_vtab)->__pyx_base.get(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 467; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.get");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":470
 *         return self.storage[obj.__uid]['getter'](obj)
 * 
 *     cpdef set(self, obj, value):             # <<<<<<<<<<<<<<
 *         self.storage[obj.__uid]['setter'](obj, value)
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_6set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static  PyObject *__pyx_f_4kivy_10properties_13AliasProperty_set(struct __pyx_obj_4kivy_10properties_AliasProperty *__pyx_v_self, PyObject *__pyx_v_obj, PyObject *__pyx_v_value, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannySetupContext("set");
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overriden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = PyObject_GetAttr(((PyObject *)__pyx_v_self), __pyx_n_s__set); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (void *)&__pyx_pf_4kivy_10properties_13AliasProperty_6set)) {
      __Pyx_XDECREF(__pyx_r);
      __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(((PyObject *)__pyx_t_2));
      __Pyx_INCREF(__pyx_v_obj);
      PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_obj);
      __Pyx_GIVEREF(__pyx_v_obj);
      __Pyx_INCREF(__pyx_v_value);
      PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_value);
      __Pyx_GIVEREF(__pyx_v_value);
      __pyx_t_3 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_2), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
      __pyx_r = __pyx_t_3;
      __pyx_t_3 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "/home/tito/code/kivy/kivy/properties.pyx":471
 * 
 *     cpdef set(self, obj, value):
 *         self.storage[obj.__uid]['setter'](obj, value)             # <<<<<<<<<<<<<<
 * 
 */
  __pyx_t_1 = PyObject_GetAttr(__pyx_v_obj, __pyx_n_s____uid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_PyDict_GetItem(((PyObject *)__pyx_v_self->__pyx_base.storage), __pyx_t_1); if (!__pyx_t_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = PyObject_GetItem(__pyx_t_3, ((PyObject *)__pyx_n_s__setter)); if (!__pyx_t_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_3));
  __Pyx_INCREF(__pyx_v_obj);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_obj);
  __Pyx_GIVEREF(__pyx_v_obj);
  __Pyx_INCREF(__pyx_v_value);
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __pyx_t_2 = PyObject_Call(__pyx_t_1, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.set");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/properties.pyx":470
 *         return self.storage[obj.__uid]['getter'](obj)
 * 
 *     cpdef set(self, obj, value):             # <<<<<<<<<<<<<<
 *         self.storage[obj.__uid]['setter'](obj, value)
 * 
 */

static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_6set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pf_4kivy_10properties_13AliasProperty_6set(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_obj = 0;
  PyObject *__pyx_v_value = 0;
  PyObject *__pyx_r = NULL;
  PyObject *__pyx_t_1 = NULL;
  static PyObject **__pyx_pyargnames[] = {&__pyx_n_s__obj,&__pyx_n_s__value,0};
  __Pyx_RefNannySetupContext("set");
  if (unlikely(__pyx_kwds)) {
    Py_ssize_t kw_args = PyDict_Size(__pyx_kwds);
    PyObject* values[2] = {0,0};
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      case  0: break;
      default: goto __pyx_L5_argtuple_error;
    }
    switch (PyTuple_GET_SIZE(__pyx_args)) {
      case  0:
      values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__obj);
      if (likely(values[0])) kw_args--;
      else goto __pyx_L5_argtuple_error;
      case  1:
      values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s__value);
      if (likely(values[1])) kw_args--;
      else {
        __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
      }
    }
    if (unlikely(kw_args > 0)) {
      if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, PyTuple_GET_SIZE(__pyx_args), "set") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
    }
    __pyx_v_obj = values[0];
    __pyx_v_value = values[1];
  } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
    goto __pyx_L5_argtuple_error;
  } else {
    __pyx_v_obj = PyTuple_GET_ITEM(__pyx_args, 0);
    __pyx_v_value = PyTuple_GET_ITEM(__pyx_args, 1);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("set", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L3_error;}
  __pyx_L3_error:;
  __Pyx_AddTraceback("kivy.properties.AliasProperty.set");
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = ((struct __pyx_vtabstruct_4kivy_10properties_AliasProperty *)((struct __pyx_obj_4kivy_10properties_AliasProperty *)__pyx_v_self)->__pyx_base.__pyx_vtab)->__pyx_base.set(((struct __pyx_obj_4kivy_10properties_Property *)__pyx_v_self), __pyx_v_obj, __pyx_v_value, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 470; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.properties.AliasProperty.set");
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static struct __pyx_vtabstruct_4kivy_10properties_Property __pyx_vtable_4kivy_10properties_Property;

static PyObject *__pyx_tp_new_4kivy_10properties_Property(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_Property *p;
  PyObject *o = (*t->tp_alloc)(t, 0);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_Property *)o);
  p->__pyx_vtab = __pyx_vtabptr_4kivy_10properties_Property;
  p->_name = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->defaultvalue = Py_None; Py_INCREF(Py_None);
  p->storage = ((PyObject*)Py_None); Py_INCREF(Py_None);
  if (__pyx_pf_4kivy_10properties_8Property_0__cinit__(o, __pyx_empty_tuple, NULL) < 0) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4kivy_10properties_Property(PyObject *o) {
  struct __pyx_obj_4kivy_10properties_Property *p = (struct __pyx_obj_4kivy_10properties_Property *)o;
  Py_XDECREF(((PyObject *)p->_name));
  Py_XDECREF(p->defaultvalue);
  Py_XDECREF(((PyObject *)p->storage));
  (*Py_TYPE(o)->tp_free)(o);
}

static int __pyx_tp_traverse_4kivy_10properties_Property(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4kivy_10properties_Property *p = (struct __pyx_obj_4kivy_10properties_Property *)o;
  if (p->_name) {
    e = (*v)(p->_name, a); if (e) return e;
  }
  if (p->defaultvalue) {
    e = (*v)(p->defaultvalue, a); if (e) return e;
  }
  if (p->storage) {
    e = (*v)(p->storage, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4kivy_10properties_Property(PyObject *o) {
  struct __pyx_obj_4kivy_10properties_Property *p = (struct __pyx_obj_4kivy_10properties_Property *)o;
  PyObject* tmp;
  tmp = ((PyObject*)p->_name);
  p->_name = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->defaultvalue);
  p->defaultvalue = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->storage);
  p->storage = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_tp_descr_get_4kivy_10properties_Property(PyObject *o, PyObject *i, PyObject *c) {
  PyObject *r = 0;
  if (!i) i = Py_None;
  if (!c) c = Py_None;
  r = __pyx_pf_4kivy_10properties_8Property_8__get__(o, i, c);
  return r;
}

static int __pyx_tp_descr_set_4kivy_10properties_Property(PyObject *o, PyObject *i, PyObject *v) {
  if (v) {
    return __pyx_pf_4kivy_10properties_8Property_7__set__(o, i, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__delete__");
    return -1;
  }
}

static PyObject *__pyx_getprop_4kivy_10properties_8Property_name(PyObject *o, void *x) {
  return __pyx_pf_4kivy_10properties_8Property_4name_0__get__(o);
}

static PyMethodDef __pyx_methods_4kivy_10properties_Property[] = {
  {__Pyx_NAMESTR("link"), (PyCFunction)__pyx_pf_4kivy_10properties_8Property_2link, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4kivy_10properties_8Property_2link)},
  {__Pyx_NAMESTR("link_deps"), (PyCFunction)__pyx_pf_4kivy_10properties_8Property_3link_deps, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("unlink"), (PyCFunction)__pyx_pf_4kivy_10properties_8Property_4unlink, METH_O, __Pyx_DOCSTR(__pyx_doc_4kivy_10properties_8Property_4unlink)},
  {__Pyx_NAMESTR("bind"), (PyCFunction)__pyx_pf_4kivy_10properties_8Property_5bind, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4kivy_10properties_8Property_5bind)},
  {__Pyx_NAMESTR("unbind"), (PyCFunction)__pyx_pf_4kivy_10properties_8Property_6unbind, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4kivy_10properties_8Property_6unbind)},
  {__Pyx_NAMESTR("set"), (PyCFunction)__pyx_pf_4kivy_10properties_8Property_9set, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(__pyx_doc_4kivy_10properties_8Property_9set)},
  {__Pyx_NAMESTR("get"), (PyCFunction)__pyx_pf_4kivy_10properties_8Property_10get, METH_O, __Pyx_DOCSTR(__pyx_doc_4kivy_10properties_8Property_10get)},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_4kivy_10properties_Property[] = {
  {(char *)"name", __pyx_getprop_4kivy_10properties_8Property_name, 0, 0, 0},
  {0, 0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_Property = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_Property = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_Property = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_Property = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_Property = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.Property"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_Property), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_Property, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_Property, /*tp_as_number*/
  &__pyx_tp_as_sequence_Property, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_Property, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_Property, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Base class for build more complex property.\n    \n    This class handle all the basics setter and getter, None handling,\n    observers list, and storage initialisation. This class should not be\n    directly instanciated.\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_Property, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_Property, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_Property, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_4kivy_10properties_Property, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  __pyx_tp_descr_get_4kivy_10properties_Property, /*tp_descr_get*/
  __pyx_tp_descr_set_4kivy_10properties_Property, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pf_4kivy_10properties_8Property_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_Property, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};
static struct __pyx_vtabstruct_4kivy_10properties_NumericProperty __pyx_vtable_4kivy_10properties_NumericProperty;

static PyObject *__pyx_tp_new_4kivy_10properties_NumericProperty(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_NumericProperty *p;
  PyObject *o = __pyx_tp_new_4kivy_10properties_Property(t, a, k);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_NumericProperty *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_4kivy_10properties_Property*)__pyx_vtabptr_4kivy_10properties_NumericProperty;
  return o;
}

static PyMethodDef __pyx_methods_4kivy_10properties_NumericProperty[] = {
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_NumericProperty = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_NumericProperty = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_NumericProperty = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_NumericProperty = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_NumericProperty = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.NumericProperty"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_NumericProperty), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_Property, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_NumericProperty, /*tp_as_number*/
  &__pyx_tp_as_sequence_NumericProperty, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_NumericProperty, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_NumericProperty, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Property that represent a numeric value\n\n    The NumericProperty accept only int or float.\n\n    >>> Widget.x = 42\n    >>> print Widget.x\n    42\n    >>> Widget.x = \"plop\"\n    Traceback (most recent call last):\n        File \"<stdin>\", line 1, in <module>\n        File \"properties.pyx\", line 93, in kivy.properties.Property.__set__\n        File \"properties.pyx\", line 111, in kivy.properties.Property.set\n        File \"properties.pyx\", line 159, in kivy.properties.NumericProperty.check\n        ValueError: NumericProperty accept only int/float\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_Property, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_Property, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_NumericProperty, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_NumericProperty, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};
static struct __pyx_vtabstruct_4kivy_10properties_StringProperty __pyx_vtable_4kivy_10properties_StringProperty;

static PyObject *__pyx_tp_new_4kivy_10properties_StringProperty(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_StringProperty *p;
  PyObject *o = __pyx_tp_new_4kivy_10properties_Property(t, a, k);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_StringProperty *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_4kivy_10properties_Property*)__pyx_vtabptr_4kivy_10properties_StringProperty;
  return o;
}

static PyMethodDef __pyx_methods_4kivy_10properties_StringProperty[] = {
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_StringProperty = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_StringProperty = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_StringProperty = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_StringProperty = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_StringProperty = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.StringProperty"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_StringProperty), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_Property, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_StringProperty, /*tp_as_number*/
  &__pyx_tp_as_sequence_StringProperty, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_StringProperty, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_StringProperty, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Property that represent a string value.\n\n    Only string or unicode are accepted.\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_Property, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_Property, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_StringProperty, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_StringProperty, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};
static struct __pyx_vtabstruct_4kivy_10properties_ListProperty __pyx_vtable_4kivy_10properties_ListProperty;

static PyObject *__pyx_tp_new_4kivy_10properties_ListProperty(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_ListProperty *p;
  PyObject *o = __pyx_tp_new_4kivy_10properties_Property(t, a, k);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_ListProperty *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_4kivy_10properties_Property*)__pyx_vtabptr_4kivy_10properties_ListProperty;
  return o;
}

static PyMethodDef __pyx_methods_4kivy_10properties_ListProperty[] = {
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_ListProperty = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_ListProperty = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_ListProperty = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_ListProperty = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_ListProperty = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.ListProperty"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_ListProperty), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_Property, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_ListProperty, /*tp_as_number*/
  &__pyx_tp_as_sequence_ListProperty, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_ListProperty, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_ListProperty, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Property that represent a list.\n\n    Only list are allowed, tuple or any other classes are forbidden.\n\n    .. warning::\n\n        To mark the property as changed, you must reassign a new list each\n        time you want to add or remove an object. Don't rely on append(),\n        remove() and pop() functions.\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_Property, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_Property, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_ListProperty, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_ListProperty, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};
static struct __pyx_vtabstruct_4kivy_10properties_ObjectProperty __pyx_vtable_4kivy_10properties_ObjectProperty;

static PyObject *__pyx_tp_new_4kivy_10properties_ObjectProperty(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_ObjectProperty *p;
  PyObject *o = __pyx_tp_new_4kivy_10properties_Property(t, a, k);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_ObjectProperty *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_4kivy_10properties_Property*)__pyx_vtabptr_4kivy_10properties_ObjectProperty;
  return o;
}

static PyMethodDef __pyx_methods_4kivy_10properties_ObjectProperty[] = {
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_ObjectProperty = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_ObjectProperty = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_ObjectProperty = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_ObjectProperty = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_ObjectProperty = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.ObjectProperty"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_ObjectProperty), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_Property, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_ObjectProperty, /*tp_as_number*/
  &__pyx_tp_as_sequence_ObjectProperty, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_ObjectProperty, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_ObjectProperty, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Property that represent an Python object.\n\n    .. warning::\n\n        To mark the property as changed, you must reassign a new python object.\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_Property, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_Property, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_ObjectProperty, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_ObjectProperty, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};
static struct __pyx_vtabstruct_4kivy_10properties_BooleanProperty __pyx_vtable_4kivy_10properties_BooleanProperty;

static PyObject *__pyx_tp_new_4kivy_10properties_BooleanProperty(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_BooleanProperty *p;
  PyObject *o = __pyx_tp_new_4kivy_10properties_Property(t, a, k);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_BooleanProperty *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_4kivy_10properties_Property*)__pyx_vtabptr_4kivy_10properties_BooleanProperty;
  return o;
}

static PyMethodDef __pyx_methods_4kivy_10properties_BooleanProperty[] = {
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_BooleanProperty = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_BooleanProperty = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_BooleanProperty = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_BooleanProperty = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_BooleanProperty = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.BooleanProperty"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_BooleanProperty), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_Property, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_BooleanProperty, /*tp_as_number*/
  &__pyx_tp_as_sequence_BooleanProperty, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_BooleanProperty, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_BooleanProperty, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Property that represent only boolean\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_Property, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_Property, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_BooleanProperty, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_BooleanProperty, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};
static struct __pyx_vtabstruct_4kivy_10properties_BoundedNumericProperty __pyx_vtable_4kivy_10properties_BoundedNumericProperty;

static PyObject *__pyx_tp_new_4kivy_10properties_BoundedNumericProperty(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *p;
  PyObject *o = __pyx_tp_new_4kivy_10properties_Property(t, a, k);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_BoundedNumericProperty *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_4kivy_10properties_Property*)__pyx_vtabptr_4kivy_10properties_BoundedNumericProperty;
  if (__pyx_pf_4kivy_10properties_22BoundedNumericProperty_0__cinit__(o, __pyx_empty_tuple, NULL) < 0) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static PyMethodDef __pyx_methods_4kivy_10properties_BoundedNumericProperty[] = {
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_BoundedNumericProperty = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_BoundedNumericProperty = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_BoundedNumericProperty = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_BoundedNumericProperty = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_BoundedNumericProperty = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.BoundedNumericProperty"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_BoundedNumericProperty), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_Property, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_BoundedNumericProperty, /*tp_as_number*/
  &__pyx_tp_as_sequence_BoundedNumericProperty, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_BoundedNumericProperty, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_BoundedNumericProperty, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Property that represent a numeric value, with the possibility of assign\n    minimum bound and/or maximum bound.\n\n    :Parameters:\n        `min`: numeric\n            If set, minimum bound will be used, with the value of min\n        `max`: numeric\n            If set, maximum bound will be used, with the value of max\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_Property, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_Property, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_BoundedNumericProperty, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pf_4kivy_10properties_22BoundedNumericProperty_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_BoundedNumericProperty, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};
static struct __pyx_vtabstruct_4kivy_10properties_OptionProperty __pyx_vtable_4kivy_10properties_OptionProperty;

static PyObject *__pyx_tp_new_4kivy_10properties_OptionProperty(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_OptionProperty *p;
  PyObject *o = __pyx_tp_new_4kivy_10properties_Property(t, a, k);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_OptionProperty *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_4kivy_10properties_Property*)__pyx_vtabptr_4kivy_10properties_OptionProperty;
  p->options = ((PyObject*)Py_None); Py_INCREF(Py_None);
  if (__pyx_pf_4kivy_10properties_14OptionProperty_0__cinit__(o, __pyx_empty_tuple, NULL) < 0) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4kivy_10properties_OptionProperty(PyObject *o) {
  struct __pyx_obj_4kivy_10properties_OptionProperty *p = (struct __pyx_obj_4kivy_10properties_OptionProperty *)o;
  Py_XDECREF(((PyObject *)p->options));
  __pyx_tp_dealloc_4kivy_10properties_Property(o);
}

static int __pyx_tp_traverse_4kivy_10properties_OptionProperty(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4kivy_10properties_OptionProperty *p = (struct __pyx_obj_4kivy_10properties_OptionProperty *)o;
  e = __pyx_tp_traverse_4kivy_10properties_Property(o, v, a); if (e) return e;
  if (p->options) {
    e = (*v)(p->options, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4kivy_10properties_OptionProperty(PyObject *o) {
  struct __pyx_obj_4kivy_10properties_OptionProperty *p = (struct __pyx_obj_4kivy_10properties_OptionProperty *)o;
  PyObject* tmp;
  __pyx_tp_clear_4kivy_10properties_Property(o);
  tmp = ((PyObject*)p->options);
  p->options = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_4kivy_10properties_OptionProperty[] = {
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_OptionProperty = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_OptionProperty = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_OptionProperty = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_OptionProperty = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_OptionProperty = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.OptionProperty"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_OptionProperty), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_OptionProperty, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_OptionProperty, /*tp_as_number*/
  &__pyx_tp_as_sequence_OptionProperty, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_OptionProperty, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_OptionProperty, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Property that represent a string from a specific list.\n\n    If the string set in the property are not from the list passed at the\n    creation, you will have an exception.\n\n    :Parameters:\n        `options`: list (not tuple.)\n            List of available options\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_OptionProperty, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_OptionProperty, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_OptionProperty, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pf_4kivy_10properties_14OptionProperty_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_OptionProperty, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};
static struct __pyx_vtabstruct_4kivy_10properties_ReferenceListProperty __pyx_vtable_4kivy_10properties_ReferenceListProperty;

static PyObject *__pyx_tp_new_4kivy_10properties_ReferenceListProperty(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_ReferenceListProperty *p;
  PyObject *o = __pyx_tp_new_4kivy_10properties_Property(t, a, k);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_4kivy_10properties_Property*)__pyx_vtabptr_4kivy_10properties_ReferenceListProperty;
  p->properties = ((PyObject*)Py_None); Py_INCREF(Py_None);
  if (__pyx_pf_4kivy_10properties_21ReferenceListProperty_0__cinit__(o, __pyx_empty_tuple, NULL) < 0) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4kivy_10properties_ReferenceListProperty(PyObject *o) {
  struct __pyx_obj_4kivy_10properties_ReferenceListProperty *p = (struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)o;
  Py_XDECREF(((PyObject *)p->properties));
  __pyx_tp_dealloc_4kivy_10properties_Property(o);
}

static int __pyx_tp_traverse_4kivy_10properties_ReferenceListProperty(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4kivy_10properties_ReferenceListProperty *p = (struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)o;
  e = __pyx_tp_traverse_4kivy_10properties_Property(o, v, a); if (e) return e;
  if (p->properties) {
    e = (*v)(p->properties, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4kivy_10properties_ReferenceListProperty(PyObject *o) {
  struct __pyx_obj_4kivy_10properties_ReferenceListProperty *p = (struct __pyx_obj_4kivy_10properties_ReferenceListProperty *)o;
  PyObject* tmp;
  __pyx_tp_clear_4kivy_10properties_Property(o);
  tmp = ((PyObject*)p->properties);
  p->properties = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_4kivy_10properties_ReferenceListProperty[] = {
  {__Pyx_NAMESTR("link_deps"), (PyCFunction)__pyx_pf_4kivy_10properties_21ReferenceListProperty_2link_deps, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("unlink"), (PyCFunction)__pyx_pf_4kivy_10properties_21ReferenceListProperty_3unlink, METH_O, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("trigger_change"), (PyCFunction)__pyx_pf_4kivy_10properties_21ReferenceListProperty_4trigger_change, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("set"), (PyCFunction)__pyx_pf_4kivy_10properties_21ReferenceListProperty_5set, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_ReferenceListProperty = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_ReferenceListProperty = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_ReferenceListProperty = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_ReferenceListProperty = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_ReferenceListProperty = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.ReferenceListProperty"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_ReferenceListProperty), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_ReferenceListProperty, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_ReferenceListProperty, /*tp_as_number*/
  &__pyx_tp_as_sequence_ReferenceListProperty, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_ReferenceListProperty, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_ReferenceListProperty, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Property that allow to create tuple of other properties.\n\n    For example, if `x` and `y` are :class:`NumericProperty`, we can create a\n    :class:`ReferenceListProperty` for the `pos`. If you change the value of\n    `pos`, it will automaticly change the values of `x` and `y`. If you read the\n    value of `pos`, it will return a tuple with the value of `x` and `y`.\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_ReferenceListProperty, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_ReferenceListProperty, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_ReferenceListProperty, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pf_4kivy_10properties_21ReferenceListProperty_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_ReferenceListProperty, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};
static struct __pyx_vtabstruct_4kivy_10properties_AliasProperty __pyx_vtable_4kivy_10properties_AliasProperty;

static PyObject *__pyx_tp_new_4kivy_10properties_AliasProperty(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_4kivy_10properties_AliasProperty *p;
  PyObject *o = __pyx_tp_new_4kivy_10properties_Property(t, a, k);
  if (!o) return 0;
  p = ((struct __pyx_obj_4kivy_10properties_AliasProperty *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_4kivy_10properties_Property*)__pyx_vtabptr_4kivy_10properties_AliasProperty;
  p->getter = Py_None; Py_INCREF(Py_None);
  p->setter = Py_None; Py_INCREF(Py_None);
  p->bind_objects = ((PyObject*)Py_None); Py_INCREF(Py_None);
  if (__pyx_pf_4kivy_10properties_13AliasProperty_0__cinit__(o, __pyx_empty_tuple, NULL) < 0) {
    Py_DECREF(o); o = 0;
  }
  return o;
}

static void __pyx_tp_dealloc_4kivy_10properties_AliasProperty(PyObject *o) {
  struct __pyx_obj_4kivy_10properties_AliasProperty *p = (struct __pyx_obj_4kivy_10properties_AliasProperty *)o;
  Py_XDECREF(p->getter);
  Py_XDECREF(p->setter);
  Py_XDECREF(((PyObject *)p->bind_objects));
  __pyx_tp_dealloc_4kivy_10properties_Property(o);
}

static int __pyx_tp_traverse_4kivy_10properties_AliasProperty(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_4kivy_10properties_AliasProperty *p = (struct __pyx_obj_4kivy_10properties_AliasProperty *)o;
  e = __pyx_tp_traverse_4kivy_10properties_Property(o, v, a); if (e) return e;
  if (p->getter) {
    e = (*v)(p->getter, a); if (e) return e;
  }
  if (p->setter) {
    e = (*v)(p->setter, a); if (e) return e;
  }
  if (p->bind_objects) {
    e = (*v)(p->bind_objects, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_4kivy_10properties_AliasProperty(PyObject *o) {
  struct __pyx_obj_4kivy_10properties_AliasProperty *p = (struct __pyx_obj_4kivy_10properties_AliasProperty *)o;
  PyObject* tmp;
  __pyx_tp_clear_4kivy_10properties_Property(o);
  tmp = ((PyObject*)p->getter);
  p->getter = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->setter);
  p->setter = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->bind_objects);
  p->bind_objects = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyMethodDef __pyx_methods_4kivy_10properties_AliasProperty[] = {
  {__Pyx_NAMESTR("link_deps"), (PyCFunction)__pyx_pf_4kivy_10properties_13AliasProperty_2link_deps, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("unlink"), (PyCFunction)__pyx_pf_4kivy_10properties_13AliasProperty_3unlink, METH_O, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("trigger_change"), (PyCFunction)__pyx_pf_4kivy_10properties_13AliasProperty_4trigger_change, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("get"), (PyCFunction)__pyx_pf_4kivy_10properties_13AliasProperty_5get, METH_O, __Pyx_DOCSTR(0)},
  {__Pyx_NAMESTR("set"), (PyCFunction)__pyx_pf_4kivy_10properties_13AliasProperty_6set, METH_VARARGS|METH_KEYWORDS, __Pyx_DOCSTR(0)},
  {0, 0, 0, 0}
};

static PyNumberMethods __pyx_tp_as_number_AliasProperty = {
  0, /*nb_add*/
  0, /*nb_subtract*/
  0, /*nb_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_divide*/
  #endif
  0, /*nb_remainder*/
  0, /*nb_divmod*/
  0, /*nb_power*/
  0, /*nb_negative*/
  0, /*nb_positive*/
  0, /*nb_absolute*/
  0, /*nb_nonzero*/
  0, /*nb_invert*/
  0, /*nb_lshift*/
  0, /*nb_rshift*/
  0, /*nb_and*/
  0, /*nb_xor*/
  0, /*nb_or*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_coerce*/
  #endif
  0, /*nb_int*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_long*/
  #else
  0, /*reserved*/
  #endif
  0, /*nb_float*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_oct*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*nb_hex*/
  #endif
  0, /*nb_inplace_add*/
  0, /*nb_inplace_subtract*/
  0, /*nb_inplace_multiply*/
  #if PY_MAJOR_VERSION < 3
  0, /*nb_inplace_divide*/
  #endif
  0, /*nb_inplace_remainder*/
  0, /*nb_inplace_power*/
  0, /*nb_inplace_lshift*/
  0, /*nb_inplace_rshift*/
  0, /*nb_inplace_and*/
  0, /*nb_inplace_xor*/
  0, /*nb_inplace_or*/
  0, /*nb_floor_divide*/
  0, /*nb_true_divide*/
  0, /*nb_inplace_floor_divide*/
  0, /*nb_inplace_true_divide*/
  #if PY_VERSION_HEX >= 0x02050000
  0, /*nb_index*/
  #endif
};

static PySequenceMethods __pyx_tp_as_sequence_AliasProperty = {
  0, /*sq_length*/
  0, /*sq_concat*/
  0, /*sq_repeat*/
  0, /*sq_item*/
  0, /*sq_slice*/
  0, /*sq_ass_item*/
  0, /*sq_ass_slice*/
  0, /*sq_contains*/
  0, /*sq_inplace_concat*/
  0, /*sq_inplace_repeat*/
};

static PyMappingMethods __pyx_tp_as_mapping_AliasProperty = {
  0, /*mp_length*/
  0, /*mp_subscript*/
  0, /*mp_ass_subscript*/
};

static PyBufferProcs __pyx_tp_as_buffer_AliasProperty = {
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getreadbuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getwritebuffer*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getsegcount*/
  #endif
  #if PY_MAJOR_VERSION < 3
  0, /*bf_getcharbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_getbuffer*/
  #endif
  #if PY_VERSION_HEX >= 0x02060000
  0, /*bf_releasebuffer*/
  #endif
};

PyTypeObject __pyx_type_4kivy_10properties_AliasProperty = {
  PyVarObject_HEAD_INIT(0, 0)
  __Pyx_NAMESTR("kivy.properties.AliasProperty"), /*tp_name*/
  sizeof(struct __pyx_obj_4kivy_10properties_AliasProperty), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_4kivy_10properties_AliasProperty, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #else
  0, /*reserved*/
  #endif
  0, /*tp_repr*/
  &__pyx_tp_as_number_AliasProperty, /*tp_as_number*/
  &__pyx_tp_as_sequence_AliasProperty, /*tp_as_sequence*/
  &__pyx_tp_as_mapping_AliasProperty, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  &__pyx_tp_as_buffer_AliasProperty, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  __Pyx_DOCSTR("Create a property with a custom getter and setter.\n\n    If you don't found a Property class that fit to your needs, you can still\n    create Python getter and setter, and create a property with both of them.\n\n    Exemple from the kivy/uix/widget.py ::\n\n        def get_right(self):\n            return self.x + self.width\n        def set_right(self, value):\n            self.x = value - self.width\n        right = AliasProperty(get_right, set_right, bind=(x, width))\n\n    :Parameters:\n        `getter`: function\n            Function to use as a property getter\n        `setter`: function\n            Function to use as a property setter\n        `bind`: list/tuple\n            List of properties to observe for changes\n    "), /*tp_doc*/
  __pyx_tp_traverse_4kivy_10properties_AliasProperty, /*tp_traverse*/
  __pyx_tp_clear_4kivy_10properties_AliasProperty, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_4kivy_10properties_AliasProperty, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  __pyx_pf_4kivy_10properties_13AliasProperty_1__init__, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_4kivy_10properties_AliasProperty, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  #if PY_VERSION_HEX >= 0x02060000
  0, /*tp_version_tag*/
  #endif
};

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    __Pyx_NAMESTR("properties"),
    __Pyx_DOCSTR(__pyx_k_22), /* m_doc */
    -1, /* m_size */
    __pyx_methods /* m_methods */,
    NULL, /* m_reload */
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_kp_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 0},
  {&__pyx_kp_s_10, __pyx_k_10, sizeof(__pyx_k_10), 0, 0, 1, 0},
  {&__pyx_kp_s_12, __pyx_k_12, sizeof(__pyx_k_12), 0, 0, 1, 0},
  {&__pyx_kp_s_14, __pyx_k_14, sizeof(__pyx_k_14), 0, 0, 1, 0},
  {&__pyx_kp_s_15, __pyx_k_15, sizeof(__pyx_k_15), 0, 0, 1, 0},
  {&__pyx_kp_s_16, __pyx_k_16, sizeof(__pyx_k_16), 0, 0, 1, 0},
  {&__pyx_kp_s_18, __pyx_k_18, sizeof(__pyx_k_18), 0, 0, 1, 0},
  {&__pyx_kp_s_2, __pyx_k_2, sizeof(__pyx_k_2), 0, 0, 1, 0},
  {&__pyx_kp_s_20, __pyx_k_20, sizeof(__pyx_k_20), 0, 0, 1, 0},
  {&__pyx_n_s_23, __pyx_k_23, sizeof(__pyx_k_23), 0, 0, 1, 1},
  {&__pyx_n_s_24, __pyx_k_24, sizeof(__pyx_k_24), 0, 0, 1, 1},
  {&__pyx_kp_s_4, __pyx_k_4, sizeof(__pyx_k_4), 0, 0, 1, 0},
  {&__pyx_kp_s_6, __pyx_k_6, sizeof(__pyx_k_6), 0, 0, 1, 0},
  {&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
  {&__pyx_n_s__AliasProperty, __pyx_k__AliasProperty, sizeof(__pyx_k__AliasProperty), 0, 0, 1, 1},
  {&__pyx_n_s__BooleanProperty, __pyx_k__BooleanProperty, sizeof(__pyx_k__BooleanProperty), 0, 0, 1, 1},
  {&__pyx_n_s__ListProperty, __pyx_k__ListProperty, sizeof(__pyx_k__ListProperty), 0, 0, 1, 1},
  {&__pyx_n_s__NumericProperty, __pyx_k__NumericProperty, sizeof(__pyx_k__NumericProperty), 0, 0, 1, 1},
  {&__pyx_n_s__ObjectProperty, __pyx_k__ObjectProperty, sizeof(__pyx_k__ObjectProperty), 0, 0, 1, 1},
  {&__pyx_n_s__OptionProperty, __pyx_k__OptionProperty, sizeof(__pyx_k__OptionProperty), 0, 0, 1, 1},
  {&__pyx_n_s__Property, __pyx_k__Property, sizeof(__pyx_k__Property), 0, 0, 1, 1},
  {&__pyx_n_s__StringProperty, __pyx_k__StringProperty, sizeof(__pyx_k__StringProperty), 0, 0, 1, 1},
  {&__pyx_n_s__ValueError, __pyx_k__ValueError, sizeof(__pyx_k__ValueError), 0, 0, 1, 1},
  {&__pyx_n_s____all__, __pyx_k____all__, sizeof(__pyx_k____all__), 0, 0, 1, 1},
  {&__pyx_n_s____class__, __pyx_k____class__, sizeof(__pyx_k____class__), 0, 0, 1, 1},
  {&__pyx_n_s____init__, __pyx_k____init__, sizeof(__pyx_k____init__), 0, 0, 1, 1},
  {&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
  {&__pyx_n_s____test__, __pyx_k____test__, sizeof(__pyx_k____test__), 0, 0, 1, 1},
  {&__pyx_n_s____uid, __pyx_k____uid, sizeof(__pyx_k____uid), 0, 0, 1, 1},
  {&__pyx_n_s___name, __pyx_k___name, sizeof(__pyx_k___name), 0, 0, 1, 1},
  {&__pyx_n_s__allownone, __pyx_k__allownone, sizeof(__pyx_k__allownone), 0, 0, 1, 1},
  {&__pyx_n_s__append, __pyx_k__append, sizeof(__pyx_k__append), 0, 0, 1, 1},
  {&__pyx_n_s__basestring, __pyx_k__basestring, sizeof(__pyx_k__basestring), 0, 0, 1, 1},
  {&__pyx_n_s__bind, __pyx_k__bind, sizeof(__pyx_k__bind), 0, 0, 1, 1},
  {&__pyx_n_s__bind_objects, __pyx_k__bind_objects, sizeof(__pyx_k__bind_objects), 0, 0, 1, 1},
  {&__pyx_n_s__check, __pyx_k__check, sizeof(__pyx_k__check), 0, 0, 1, 1},
  {&__pyx_n_s__compare_value, __pyx_k__compare_value, sizeof(__pyx_k__compare_value), 0, 0, 1, 1},
  {&__pyx_n_s__convert, __pyx_k__convert, sizeof(__pyx_k__convert), 0, 0, 1, 1},
  {&__pyx_n_s__defaultvalue, __pyx_k__defaultvalue, sizeof(__pyx_k__defaultvalue), 0, 0, 1, 1},
  {&__pyx_n_s__dispatch, __pyx_k__dispatch, sizeof(__pyx_k__dispatch), 0, 0, 1, 1},
  {&__pyx_n_s__get, __pyx_k__get, sizeof(__pyx_k__get), 0, 0, 1, 1},
  {&__pyx_n_s__getter, __pyx_k__getter, sizeof(__pyx_k__getter), 0, 0, 1, 1},
  {&__pyx_n_s__init_storage, __pyx_k__init_storage, sizeof(__pyx_k__init_storage), 0, 0, 1, 1},
  {&__pyx_n_s__link, __pyx_k__link, sizeof(__pyx_k__link), 0, 0, 1, 1},
  {&__pyx_n_s__link_deps, __pyx_k__link_deps, sizeof(__pyx_k__link_deps), 0, 0, 1, 1},
  {&__pyx_n_s__max, __pyx_k__max, sizeof(__pyx_k__max), 0, 0, 1, 1},
  {&__pyx_n_s__min, __pyx_k__min, sizeof(__pyx_k__min), 0, 0, 1, 1},
  {&__pyx_n_s__name, __pyx_k__name, sizeof(__pyx_k__name), 0, 0, 1, 1},
  {&__pyx_n_s__obj, __pyx_k__obj, sizeof(__pyx_k__obj), 0, 0, 1, 1},
  {&__pyx_n_s__object, __pyx_k__object, sizeof(__pyx_k__object), 0, 0, 1, 1},
  {&__pyx_n_s__observer, __pyx_k__observer, sizeof(__pyx_k__observer), 0, 0, 1, 1},
  {&__pyx_n_s__observers, __pyx_k__observers, sizeof(__pyx_k__observers), 0, 0, 1, 1},
  {&__pyx_n_s__options, __pyx_k__options, sizeof(__pyx_k__options), 0, 0, 1, 1},
  {&__pyx_n_s__properties, __pyx_k__properties, sizeof(__pyx_k__properties), 0, 0, 1, 1},
  {&__pyx_n_s__range, __pyx_k__range, sizeof(__pyx_k__range), 0, 0, 1, 1},
  {&__pyx_n_s__remove, __pyx_k__remove, sizeof(__pyx_k__remove), 0, 0, 1, 1},
  {&__pyx_n_s__set, __pyx_k__set, sizeof(__pyx_k__set), 0, 0, 1, 1},
  {&__pyx_n_s__setter, __pyx_k__setter, sizeof(__pyx_k__setter), 0, 0, 1, 1},
  {&__pyx_n_s__stop_event, __pyx_k__stop_event, sizeof(__pyx_k__stop_event), 0, 0, 1, 1},
  {&__pyx_n_s__storage, __pyx_k__storage, sizeof(__pyx_k__storage), 0, 0, 1, 1},
  {&__pyx_n_s__trigger_change, __pyx_k__trigger_change, sizeof(__pyx_k__trigger_change), 0, 0, 1, 1},
  {&__pyx_n_s__unbind, __pyx_k__unbind, sizeof(__pyx_k__unbind), 0, 0, 1, 1},
  {&__pyx_n_s__unlink, __pyx_k__unlink, sizeof(__pyx_k__unlink), 0, 0, 1, 1},
  {&__pyx_n_s__use_max, __pyx_k__use_max, sizeof(__pyx_k__use_max), 0, 0, 1, 1},
  {&__pyx_n_s__use_min, __pyx_k__use_min, sizeof(__pyx_k__use_min), 0, 0, 1, 1},
  {&__pyx_n_s__value, __pyx_k__value, sizeof(__pyx_k__value), 0, 0, 1, 1},
  {&__pyx_n_s__xrange, __pyx_k__xrange, sizeof(__pyx_k__xrange), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_ValueError = __Pyx_GetName(__pyx_b, __pyx_n_s__ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_builtin_basestring = __Pyx_GetName(__pyx_b, __pyx_n_s__basestring); if (!__pyx_builtin_basestring) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 206; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_builtin_object = __Pyx_GetName(__pyx_b, __pyx_n_s__object); if (!__pyx_builtin_object) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 236; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #if PY_MAJOR_VERSION >= 3
  __pyx_builtin_xrange = __Pyx_GetName(__pyx_b, __pyx_n_s__range); if (!__pyx_builtin_xrange) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #else
  __pyx_builtin_xrange = __Pyx_GetName(__pyx_b, __pyx_n_s__xrange); if (!__pyx_builtin_xrange) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  return 0;
  __pyx_L1_error:;
  return -1;
}

static int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants");

  /* "/home/tito/code/kivy/kivy/properties.pyx":156
 *         if x is None:
 *             if not self.storage[obj.__uid]['allownone']:
 *                 raise ValueError('None is not allowed')             # <<<<<<<<<<<<<<
 *             else:
 *                 return True
 */
  __pyx_k_tuple_3 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_3));
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_k_tuple_3, 0, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_3));

  /* "/home/tito/code/kivy/kivy/properties.pyx":195
 *             return True
 *         if type(value) not in (int, float):
 *             raise ValueError('NumericProperty accept only int/float')             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_k_tuple_5 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_5));
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_4));
  PyTuple_SET_ITEM(__pyx_k_tuple_5, 0, ((PyObject *)__pyx_kp_s_4));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_4));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_5));

  /* "/home/tito/code/kivy/kivy/properties.pyx":207
 *             return True
 *         if not isinstance(value, basestring):
 *             raise ValueError('StringProperty accept only str/unicode')             # <<<<<<<<<<<<<<
 * 
 * cdef class ListProperty(Property):
 */
  __pyx_k_tuple_7 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 207; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_7));
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_6));
  PyTuple_SET_ITEM(__pyx_k_tuple_7, 0, ((PyObject *)__pyx_kp_s_6));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_6));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_7));

  /* "/home/tito/code/kivy/kivy/properties.pyx":224
 *             return True
 *         if type(value) is not list:
 *             raise ValueError('ListProperty accept only list')             # <<<<<<<<<<<<<<
 * 
 * cdef class ObjectProperty(Property):
 */
  __pyx_k_tuple_9 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 224; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_9));
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_k_tuple_9, 0, ((PyObject *)__pyx_kp_s_8));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_9));

  /* "/home/tito/code/kivy/kivy/properties.pyx":237
 *             return True
 *         if not isinstance(value, object):
 *             raise ValueError('ObjectProperty accept only object')             # <<<<<<<<<<<<<<
 * 
 * cdef class BooleanProperty(Property):
 */
  __pyx_k_tuple_11 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_11));
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_10));
  PyTuple_SET_ITEM(__pyx_k_tuple_11, 0, ((PyObject *)__pyx_kp_s_10));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_10));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_11));

  /* "/home/tito/code/kivy/kivy/properties.pyx":246
 *             return True
 *         if not isinstance(value, object):
 *             raise ValueError('BooleanProperty accept only bool')             # <<<<<<<<<<<<<<
 * 
 * cdef class BoundedNumericProperty(Property):
 */
  __pyx_k_tuple_13 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_13));
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_12));
  PyTuple_SET_ITEM(__pyx_k_tuple_13, 0, ((PyObject *)__pyx_kp_s_12));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_12));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_13));

  /* "/home/tito/code/kivy/kivy/properties.pyx":333
 *             return True
 *         if value not in self.storage[obj.__uid]['options']:
 *             raise ValueError('Value is not in available options')             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_k_tuple_17 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_17)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_17));
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_16));
  PyTuple_SET_ITEM(__pyx_k_tuple_17, 0, ((PyObject *)__pyx_kp_s_16));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_16));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_17));

  /* "/home/tito/code/kivy/kivy/properties.pyx":380
 *     cdef convert(self, obj, value):
 *         if type(value) not in (list, tuple):
 *             raise ValueError('Value must be a list or tuple')             # <<<<<<<<<<<<<<
 *         return <list>value
 * 
 */
  __pyx_k_tuple_19 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_19)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_19));
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_18));
  PyTuple_SET_ITEM(__pyx_k_tuple_19, 0, ((PyObject *)__pyx_kp_s_18));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_18));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_19));

  /* "/home/tito/code/kivy/kivy/properties.pyx":385
 *     cdef check(self, obj, value):
 *         if len(value) != len(self.storage[obj.__uid]['properties']):
 *             raise ValueError('Value must have the same size as beginning')             # <<<<<<<<<<<<<<
 * 
 *     cpdef set(self, obj, value):
 */
  __pyx_k_tuple_21 = PyTuple_New(1); if (unlikely(!__pyx_k_tuple_21)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_21));
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_20));
  PyTuple_SET_ITEM(__pyx_k_tuple_21, 0, ((PyObject *)__pyx_kp_s_20));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_20));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_21));

  /* "/home/tito/code/kivy/kivy/properties.pyx":31
 * 
 * 
 * __all__ = ('NumericProperty', 'StringProperty', 'ListProperty',             # <<<<<<<<<<<<<<
 *            'ObjectProperty', 'BooleanProperty', 'BoundedNumericProperty',
 *            'OptionProperty', 'ReferenceListProperty', 'AliasProperty',
 */
  __pyx_k_tuple_25 = PyTuple_New(11); if (unlikely(!__pyx_k_tuple_25)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_k_tuple_25));
  __Pyx_INCREF(((PyObject *)__pyx_n_s__NumericProperty));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 0, ((PyObject *)__pyx_n_s__NumericProperty));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__NumericProperty));
  __Pyx_INCREF(((PyObject *)__pyx_n_s__StringProperty));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 1, ((PyObject *)__pyx_n_s__StringProperty));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__StringProperty));
  __Pyx_INCREF(((PyObject *)__pyx_n_s__ListProperty));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 2, ((PyObject *)__pyx_n_s__ListProperty));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__ListProperty));
  __Pyx_INCREF(((PyObject *)__pyx_n_s__ObjectProperty));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 3, ((PyObject *)__pyx_n_s__ObjectProperty));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__ObjectProperty));
  __Pyx_INCREF(((PyObject *)__pyx_n_s__BooleanProperty));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 4, ((PyObject *)__pyx_n_s__BooleanProperty));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__BooleanProperty));
  __Pyx_INCREF(((PyObject *)__pyx_n_s_23));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 5, ((PyObject *)__pyx_n_s_23));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s_23));
  __Pyx_INCREF(((PyObject *)__pyx_n_s__OptionProperty));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 6, ((PyObject *)__pyx_n_s__OptionProperty));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__OptionProperty));
  __Pyx_INCREF(((PyObject *)__pyx_n_s_24));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 7, ((PyObject *)__pyx_n_s_24));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s_24));
  __Pyx_INCREF(((PyObject *)__pyx_n_s__AliasProperty));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 8, ((PyObject *)__pyx_n_s__AliasProperty));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__AliasProperty));
  __Pyx_INCREF(((PyObject *)__pyx_n_s__NumericProperty));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 9, ((PyObject *)__pyx_n_s__NumericProperty));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__NumericProperty));
  __Pyx_INCREF(((PyObject *)__pyx_n_s__Property));
  PyTuple_SET_ITEM(__pyx_k_tuple_25, 10, ((PyObject *)__pyx_n_s__Property));
  __Pyx_GIVEREF(((PyObject *)__pyx_n_s__Property));
  __Pyx_GIVEREF(((PyObject *)__pyx_k_tuple_25));
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_InitGlobals(void) {
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  return 0;
  __pyx_L1_error:;
  return -1;
}

#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC initproperties(void); /*proto*/
PyMODINIT_FUNC initproperties(void)
#else
PyMODINIT_FUNC PyInit_properties(void); /*proto*/
PyMODINIT_FUNC PyInit_properties(void)
#endif
{
  PyObject *__pyx_t_1 = NULL;
  #if CYTHON_REFNANNY
  void* __pyx_refnanny = NULL;
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
      PyErr_Clear();
      __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
      if (!__Pyx_RefNanny)
          Py_FatalError("failed to import 'refnanny' module");
  }
  __pyx_refnanny = __Pyx_RefNanny->SetupContext("PyMODINIT_FUNC PyInit_properties(void)", __LINE__, __FILE__);
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #ifdef __pyx_binding_PyCFunctionType_USED
  if (__pyx_binding_PyCFunctionType_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Module creation code ---*/
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4(__Pyx_NAMESTR("properties"), __pyx_methods, __Pyx_DOCSTR(__pyx_k_22), 0, PYTHON_API_VERSION);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  #if PY_MAJOR_VERSION < 3
  Py_INCREF(__pyx_m);
  #endif
  __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
  if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  /*--- Initialize various global constants etc. ---*/
  if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__pyx_module_is_main_kivy__properties) {
    if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s____main__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  }
  /*--- Builtin init code ---*/
  if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Constants init code ---*/
  if (unlikely(__Pyx_InitCachedConstants() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Global init code ---*/
  /*--- Function export code ---*/
  /*--- Type init code ---*/
  __pyx_vtabptr_4kivy_10properties_Property = &__pyx_vtable_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_Property.init_storage = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *))__pyx_f_4kivy_10properties_8Property_init_storage;
  __pyx_vtable_4kivy_10properties_Property.link = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_8Property_link;
  __pyx_vtable_4kivy_10properties_Property.link_deps = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_8Property_link_deps;
  __pyx_vtable_4kivy_10properties_Property.unlink = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_8Property_unlink;
  __pyx_vtable_4kivy_10properties_Property.bind = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_8Property_bind;
  __pyx_vtable_4kivy_10properties_Property.unbind = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_8Property_unbind;
  __pyx_vtable_4kivy_10properties_Property.compare_value = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_8Property_compare_value;
  __pyx_vtable_4kivy_10properties_Property.set = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_8Property_set;
  __pyx_vtable_4kivy_10properties_Property.get = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_8Property_get;
  __pyx_vtable_4kivy_10properties_Property.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_8Property_check;
  __pyx_vtable_4kivy_10properties_Property.convert = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_8Property_convert;
  __pyx_vtable_4kivy_10properties_Property.dispatch = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *))__pyx_f_4kivy_10properties_8Property_dispatch;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_Property) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_Property.tp_dict, __pyx_vtabptr_4kivy_10properties_Property) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "Property", (PyObject *)&__pyx_type_4kivy_10properties_Property) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_Property = &__pyx_type_4kivy_10properties_Property;
  __pyx_vtabptr_4kivy_10properties_NumericProperty = &__pyx_vtable_4kivy_10properties_NumericProperty;
  __pyx_vtable_4kivy_10properties_NumericProperty.__pyx_base = *__pyx_vtabptr_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_NumericProperty.__pyx_base.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_15NumericProperty_check;
  __pyx_type_4kivy_10properties_NumericProperty.tp_base = __pyx_ptype_4kivy_10properties_Property;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_NumericProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_NumericProperty.tp_dict, __pyx_vtabptr_4kivy_10properties_NumericProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "NumericProperty", (PyObject *)&__pyx_type_4kivy_10properties_NumericProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_NumericProperty = &__pyx_type_4kivy_10properties_NumericProperty;
  __pyx_vtabptr_4kivy_10properties_StringProperty = &__pyx_vtable_4kivy_10properties_StringProperty;
  __pyx_vtable_4kivy_10properties_StringProperty.__pyx_base = *__pyx_vtabptr_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_StringProperty.__pyx_base.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_14StringProperty_check;
  __pyx_type_4kivy_10properties_StringProperty.tp_base = __pyx_ptype_4kivy_10properties_Property;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_StringProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_StringProperty.tp_dict, __pyx_vtabptr_4kivy_10properties_StringProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "StringProperty", (PyObject *)&__pyx_type_4kivy_10properties_StringProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_StringProperty = &__pyx_type_4kivy_10properties_StringProperty;
  __pyx_vtabptr_4kivy_10properties_ListProperty = &__pyx_vtable_4kivy_10properties_ListProperty;
  __pyx_vtable_4kivy_10properties_ListProperty.__pyx_base = *__pyx_vtabptr_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_ListProperty.__pyx_base.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_12ListProperty_check;
  __pyx_type_4kivy_10properties_ListProperty.tp_base = __pyx_ptype_4kivy_10properties_Property;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_ListProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_ListProperty.tp_dict, __pyx_vtabptr_4kivy_10properties_ListProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "ListProperty", (PyObject *)&__pyx_type_4kivy_10properties_ListProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 209; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_ListProperty = &__pyx_type_4kivy_10properties_ListProperty;
  __pyx_vtabptr_4kivy_10properties_ObjectProperty = &__pyx_vtable_4kivy_10properties_ObjectProperty;
  __pyx_vtable_4kivy_10properties_ObjectProperty.__pyx_base = *__pyx_vtabptr_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_ObjectProperty.__pyx_base.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_14ObjectProperty_check;
  __pyx_type_4kivy_10properties_ObjectProperty.tp_base = __pyx_ptype_4kivy_10properties_Property;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_ObjectProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_ObjectProperty.tp_dict, __pyx_vtabptr_4kivy_10properties_ObjectProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "ObjectProperty", (PyObject *)&__pyx_type_4kivy_10properties_ObjectProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_ObjectProperty = &__pyx_type_4kivy_10properties_ObjectProperty;
  __pyx_vtabptr_4kivy_10properties_BooleanProperty = &__pyx_vtable_4kivy_10properties_BooleanProperty;
  __pyx_vtable_4kivy_10properties_BooleanProperty.__pyx_base = *__pyx_vtabptr_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_BooleanProperty.__pyx_base.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_15BooleanProperty_check;
  __pyx_type_4kivy_10properties_BooleanProperty.tp_base = __pyx_ptype_4kivy_10properties_Property;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_BooleanProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_BooleanProperty.tp_dict, __pyx_vtabptr_4kivy_10properties_BooleanProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "BooleanProperty", (PyObject *)&__pyx_type_4kivy_10properties_BooleanProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_BooleanProperty = &__pyx_type_4kivy_10properties_BooleanProperty;
  __pyx_vtabptr_4kivy_10properties_BoundedNumericProperty = &__pyx_vtable_4kivy_10properties_BoundedNumericProperty;
  __pyx_vtable_4kivy_10properties_BoundedNumericProperty.__pyx_base = *__pyx_vtabptr_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_BoundedNumericProperty.__pyx_base.init_storage = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *))__pyx_f_4kivy_10properties_22BoundedNumericProperty_init_storage;
  __pyx_vtable_4kivy_10properties_BoundedNumericProperty.__pyx_base.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_22BoundedNumericProperty_check;
  __pyx_type_4kivy_10properties_BoundedNumericProperty.tp_base = __pyx_ptype_4kivy_10properties_Property;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_BoundedNumericProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_BoundedNumericProperty.tp_dict, __pyx_vtabptr_4kivy_10properties_BoundedNumericProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "BoundedNumericProperty", (PyObject *)&__pyx_type_4kivy_10properties_BoundedNumericProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_BoundedNumericProperty = &__pyx_type_4kivy_10properties_BoundedNumericProperty;
  __pyx_vtabptr_4kivy_10properties_OptionProperty = &__pyx_vtable_4kivy_10properties_OptionProperty;
  __pyx_vtable_4kivy_10properties_OptionProperty.__pyx_base = *__pyx_vtabptr_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_OptionProperty.__pyx_base.init_storage = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *))__pyx_f_4kivy_10properties_14OptionProperty_init_storage;
  __pyx_vtable_4kivy_10properties_OptionProperty.__pyx_base.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_14OptionProperty_check;
  __pyx_type_4kivy_10properties_OptionProperty.tp_base = __pyx_ptype_4kivy_10properties_Property;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_OptionProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_OptionProperty.tp_dict, __pyx_vtabptr_4kivy_10properties_OptionProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "OptionProperty", (PyObject *)&__pyx_type_4kivy_10properties_OptionProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 306; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_OptionProperty = &__pyx_type_4kivy_10properties_OptionProperty;
  __pyx_vtabptr_4kivy_10properties_ReferenceListProperty = &__pyx_vtable_4kivy_10properties_ReferenceListProperty;
  __pyx_vtable_4kivy_10properties_ReferenceListProperty.__pyx_base = *__pyx_vtabptr_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_ReferenceListProperty.__pyx_base.init_storage = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *))__pyx_f_4kivy_10properties_21ReferenceListProperty_init_storage;
  __pyx_vtable_4kivy_10properties_ReferenceListProperty.__pyx_base.link_deps = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_21ReferenceListProperty_link_deps;
  __pyx_vtable_4kivy_10properties_ReferenceListProperty.__pyx_base.unlink = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_21ReferenceListProperty_unlink;
  __pyx_vtable_4kivy_10properties_ReferenceListProperty.__pyx_base.set = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_21ReferenceListProperty_set;
  __pyx_vtable_4kivy_10properties_ReferenceListProperty.__pyx_base.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_21ReferenceListProperty_check;
  __pyx_vtable_4kivy_10properties_ReferenceListProperty.__pyx_base.convert = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_21ReferenceListProperty_convert;
  __pyx_vtable_4kivy_10properties_ReferenceListProperty.trigger_change = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_ReferenceListProperty *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_21ReferenceListProperty_trigger_change;
  __pyx_type_4kivy_10properties_ReferenceListProperty.tp_base = __pyx_ptype_4kivy_10properties_Property;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_ReferenceListProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_ReferenceListProperty.tp_dict, __pyx_vtabptr_4kivy_10properties_ReferenceListProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "ReferenceListProperty", (PyObject *)&__pyx_type_4kivy_10properties_ReferenceListProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_ReferenceListProperty = &__pyx_type_4kivy_10properties_ReferenceListProperty;
  __pyx_vtabptr_4kivy_10properties_AliasProperty = &__pyx_vtable_4kivy_10properties_AliasProperty;
  __pyx_vtable_4kivy_10properties_AliasProperty.__pyx_base = *__pyx_vtabptr_4kivy_10properties_Property;
  __pyx_vtable_4kivy_10properties_AliasProperty.__pyx_base.init_storage = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *))__pyx_f_4kivy_10properties_13AliasProperty_init_storage;
  __pyx_vtable_4kivy_10properties_AliasProperty.__pyx_base.link_deps = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_13AliasProperty_link_deps;
  __pyx_vtable_4kivy_10properties_AliasProperty.__pyx_base.unlink = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_13AliasProperty_unlink;
  __pyx_vtable_4kivy_10properties_AliasProperty.__pyx_base.set = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_13AliasProperty_set;
  __pyx_vtable_4kivy_10properties_AliasProperty.__pyx_base.get = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_13AliasProperty_get;
  __pyx_vtable_4kivy_10properties_AliasProperty.__pyx_base.check = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_Property *, PyObject *, PyObject *))__pyx_f_4kivy_10properties_13AliasProperty_check;
  __pyx_vtable_4kivy_10properties_AliasProperty.trigger_change = (PyObject *(*)(struct __pyx_obj_4kivy_10properties_AliasProperty *, PyObject *, PyObject *, int __pyx_skip_dispatch))__pyx_f_4kivy_10properties_13AliasProperty_trigger_change;
  __pyx_type_4kivy_10properties_AliasProperty.tp_base = __pyx_ptype_4kivy_10properties_Property;
  if (PyType_Ready(&__pyx_type_4kivy_10properties_AliasProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetVtable(__pyx_type_4kivy_10properties_AliasProperty.tp_dict, __pyx_vtabptr_4kivy_10properties_AliasProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_SetAttrString(__pyx_m, "AliasProperty", (PyObject *)&__pyx_type_4kivy_10properties_AliasProperty) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_ptype_4kivy_10properties_AliasProperty = &__pyx_type_4kivy_10properties_AliasProperty;
  /*--- Type import code ---*/
  /*--- Function import code ---*/
  /*--- Execution code ---*/

  /* "/home/tito/code/kivy/kivy/properties.pyx":31
 * 
 * 
 * __all__ = ('NumericProperty', 'StringProperty', 'ListProperty',             # <<<<<<<<<<<<<<
 *            'ObjectProperty', 'BooleanProperty', 'BoundedNumericProperty',
 *            'OptionProperty', 'ReferenceListProperty', 'AliasProperty',
 */
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s____all__, ((PyObject *)__pyx_k_tuple_25)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/properties.pyx":1
 * '''             # <<<<<<<<<<<<<<
 * Properties
 * ==========
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  if (__pyx_m) {
    __Pyx_AddTraceback("init kivy.properties");
    Py_DECREF(__pyx_m); __pyx_m = 0;
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init kivy.properties");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if PY_MAJOR_VERSION < 3
  return;
  #else
  return __pyx_m;
  #endif
}

/* Runtime support code */

static PyObject *__Pyx_GetName(PyObject *dict, PyObject *name) {
    PyObject *result;
    result = PyObject_GetAttr(dict, name);
    if (!result)
        PyErr_SetObject(PyExc_NameError, name);
    return result;
}

static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *number, *more_or_less;

    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    number = (num_expected == 1) ? "" : "s";
    PyErr_Format(PyExc_TypeError,
        #if PY_VERSION_HEX < 0x02050000
            "%s() takes %s %d positional argument%s (%d given)",
        #else
            "%s() takes %s %zd positional argument%s (%zd given)",
        #endif
        func_name, more_or_less, num_expected, number, num_found);
}

static CYTHON_INLINE int __Pyx_CheckKeywordStrings(
    PyObject *kwdict,
    const char* function_name,
    int kw_allowed)
{
    PyObject* key = 0;
    Py_ssize_t pos = 0;
    while (PyDict_Next(kwdict, &pos, &key, 0)) {
        #if PY_MAJOR_VERSION < 3
        if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key)))
        #else
        if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key)))
        #endif
            goto invalid_keyword_type;
    }
    if ((!kw_allowed) && unlikely(key))
        goto invalid_keyword;
    return 1;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%s() keywords must be strings", function_name);
    return 0;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%s() got an unexpected keyword argument '%s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
    return 0;
}

static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AS_STRING(kw_name));
        #endif
}

static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;

    while (PyDict_Next(kwds, &pos, &key, &value)) {
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
        } else {
            #if PY_MAJOR_VERSION < 3
            if (unlikely(!PyString_CheckExact(key)) && unlikely(!PyString_Check(key))) {
            #else
            if (unlikely(!PyUnicode_CheckExact(key)) && unlikely(!PyUnicode_Check(key))) {
            #endif
                goto invalid_keyword_type;
            } else {
                for (name = first_kw_arg; *name; name++) {
                    #if PY_MAJOR_VERSION >= 3
                    if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
                        PyUnicode_Compare(**name, key) == 0) break;
                    #else
                    if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
                        _PyString_Eq(**name, key)) break;
                    #endif
                }
                if (*name) {
                    values[name-argnames] = value;
                } else {
                    /* unexpected keyword found */
                    for (name=argnames; name != first_kw_arg; name++) {
                        if (**name == key) goto arg_passed_twice;
                        #if PY_MAJOR_VERSION >= 3
                        if (PyUnicode_GET_SIZE(**name) == PyUnicode_GET_SIZE(key) &&
                            PyUnicode_Compare(**name, key) == 0) goto arg_passed_twice;
                        #else
                        if (PyString_GET_SIZE(**name) == PyString_GET_SIZE(key) &&
                            _PyString_Eq(**name, key)) goto arg_passed_twice;
                        #endif
                    }
                    if (kwds2) {
                        if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
                    } else {
                        goto invalid_keyword;
                    }
                }
            }
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, **name);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%s() got an unexpected keyword argument '%s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

static int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
    const char *name, int exact)
{
    if (!type) {
        PyErr_Format(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (none_allowed && obj == Py_None) return 1;
    else if (exact) {
        if (Py_TYPE(obj) == type) return 1;
    }
    else {
        if (PyObject_TypeCheck(obj, type)) return 1;
    }
    PyErr_Format(PyExc_TypeError,
        "Argument '%s' has incorrect type (expected %s, got %s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
    return 0;
}

static CYTHON_INLINE void __Pyx_RaiseNoneIndexingError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is unsubscriptable");
}


static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyThreadState *tstate = PyThreadState_GET();

    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}

static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
    PyThreadState *tstate = PyThreadState_GET();
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;

    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}


#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
    Py_XINCREF(type);
    Py_XINCREF(value);
    Py_XINCREF(tb);
    /* First, check the traceback argument, replacing None with NULL. */
    if (tb == Py_None) {
        Py_DECREF(tb);
        tb = 0;
    }
    else if (tb != NULL && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto raise_error;
    }
    /* Next, replace a missing value with None */
    if (value == NULL) {
        value = Py_None;
        Py_INCREF(value);
    }
    #if PY_VERSION_HEX < 0x02050000
    if (!PyClass_Check(type))
    #else
    if (!PyType_Check(type))
    #endif
    {
        /* Raising an instance.  The value should be a dummy. */
        if (value != Py_None) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        /* Normalize to raise <class>, <instance> */
        Py_DECREF(value);
        value = type;
        #if PY_VERSION_HEX < 0x02050000
            if (PyInstance_Check(type)) {
                type = (PyObject*) ((PyInstanceObject*)type)->in_class;
                Py_INCREF(type);
            }
            else {
                type = 0;
                PyErr_SetString(PyExc_TypeError,
                    "raise: exception must be an old-style class or instance");
                goto raise_error;
            }
        #else
            type = (PyObject*) Py_TYPE(type);
            Py_INCREF(type);
            if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
                PyErr_SetString(PyExc_TypeError,
                    "raise: exception class must be a subclass of BaseException");
                goto raise_error;
            }
        #endif
    }

    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}

#else /* Python 3+ */

static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb) {
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;

    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (!PyExceptionClass_Check(type)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }

    PyErr_SetObject(type, value);

    if (tb) {
        PyThreadState *tstate = PyThreadState_GET();
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
    }

bad:
    return;
}
#endif

static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *o, PyObject *n, PyObject *d) {
    PyObject *r = PyObject_GetAttr(o, n);
    if (!r) {
        if (!PyErr_ExceptionMatches(PyExc_AttributeError))
            goto bad;
        PyErr_Clear();
        r = d;
        Py_INCREF(d);
    }
    return r;
bad:
    return NULL;
}

static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
    const unsigned char neg_one = (unsigned char)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(unsigned char) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(unsigned char)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to unsigned char" :
                    "value too large to convert to unsigned char");
            }
            return (unsigned char)-1;
        }
        return (unsigned char)val;
    }
    return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
}

static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
    const unsigned short neg_one = (unsigned short)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(unsigned short) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(unsigned short)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to unsigned short" :
                    "value too large to convert to unsigned short");
            }
            return (unsigned short)-1;
        }
        return (unsigned short)val;
    }
    return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
}

static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
    const unsigned int neg_one = (unsigned int)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(unsigned int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(unsigned int)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to unsigned int" :
                    "value too large to convert to unsigned int");
            }
            return (unsigned int)-1;
        }
        return (unsigned int)val;
    }
    return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
}

static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
    const char neg_one = (char)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(char) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(char)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to char" :
                    "value too large to convert to char");
            }
            return (char)-1;
        }
        return (char)val;
    }
    return (char)__Pyx_PyInt_AsLong(x);
}

static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
    const short neg_one = (short)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(short) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(short)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to short" :
                    "value too large to convert to short");
            }
            return (short)-1;
        }
        return (short)val;
    }
    return (short)__Pyx_PyInt_AsLong(x);
}

static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
    const int neg_one = (int)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(int)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to int" :
                    "value too large to convert to int");
            }
            return (int)-1;
        }
        return (int)val;
    }
    return (int)__Pyx_PyInt_AsLong(x);
}

static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
    const signed char neg_one = (signed char)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(signed char) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(signed char)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to signed char" :
                    "value too large to convert to signed char");
            }
            return (signed char)-1;
        }
        return (signed char)val;
    }
    return (signed char)__Pyx_PyInt_AsSignedLong(x);
}

static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
    const signed short neg_one = (signed short)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(signed short) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(signed short)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to signed short" :
                    "value too large to convert to signed short");
            }
            return (signed short)-1;
        }
        return (signed short)val;
    }
    return (signed short)__Pyx_PyInt_AsSignedLong(x);
}

static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
    const signed int neg_one = (signed int)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(signed int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(signed int)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to signed int" :
                    "value too large to convert to signed int");
            }
            return (signed int)-1;
        }
        return (signed int)val;
    }
    return (signed int)__Pyx_PyInt_AsSignedLong(x);
}

static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
    const int neg_one = (int)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(int)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to int" :
                    "value too large to convert to int");
            }
            return (int)-1;
        }
        return (int)val;
    }
    return (int)__Pyx_PyInt_AsLong(x);
}

static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
    const unsigned long neg_one = (unsigned long)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to unsigned long");
            return (unsigned long)-1;
        }
        return (unsigned long)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to unsigned long");
                return (unsigned long)-1;
            }
            return PyLong_AsUnsignedLong(x);
        } else {
            return PyLong_AsLong(x);
        }
    } else {
        unsigned long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (unsigned long)-1;
        val = __Pyx_PyInt_AsUnsignedLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
    const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to unsigned PY_LONG_LONG");
            return (unsigned PY_LONG_LONG)-1;
        }
        return (unsigned PY_LONG_LONG)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to unsigned PY_LONG_LONG");
                return (unsigned PY_LONG_LONG)-1;
            }
            return PyLong_AsUnsignedLongLong(x);
        } else {
            return PyLong_AsLongLong(x);
        }
    } else {
        unsigned PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (unsigned PY_LONG_LONG)-1;
        val = __Pyx_PyInt_AsUnsignedLongLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
    const long neg_one = (long)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to long");
            return (long)-1;
        }
        return (long)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to long");
                return (long)-1;
            }
            return PyLong_AsUnsignedLong(x);
        } else {
            return PyLong_AsLong(x);
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (long)-1;
        val = __Pyx_PyInt_AsLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
    const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to PY_LONG_LONG");
            return (PY_LONG_LONG)-1;
        }
        return (PY_LONG_LONG)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to PY_LONG_LONG");
                return (PY_LONG_LONG)-1;
            }
            return PyLong_AsUnsignedLongLong(x);
        } else {
            return PyLong_AsLongLong(x);
        }
    } else {
        PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (PY_LONG_LONG)-1;
        val = __Pyx_PyInt_AsLongLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
    const signed long neg_one = (signed long)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to signed long");
            return (signed long)-1;
        }
        return (signed long)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to signed long");
                return (signed long)-1;
            }
            return PyLong_AsUnsignedLong(x);
        } else {
            return PyLong_AsLong(x);
        }
    } else {
        signed long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (signed long)-1;
        val = __Pyx_PyInt_AsSignedLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
    const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_VERSION_HEX < 0x03000000
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to signed PY_LONG_LONG");
            return (signed PY_LONG_LONG)-1;
        }
        return (signed PY_LONG_LONG)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to signed PY_LONG_LONG");
                return (signed PY_LONG_LONG)-1;
            }
            return PyLong_AsUnsignedLongLong(x);
        } else {
            return PyLong_AsLongLong(x);
        }
    } else {
        signed PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (signed PY_LONG_LONG)-1;
        val = __Pyx_PyInt_AsSignedLongLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#if PY_VERSION_HEX >= 0x02070000 && !(PY_MAJOR_VERSION==3&&PY_MINOR_VERSION==0)
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
#else
    PyObject *ob = PyCObject_FromVoidPtr(vtable, 0);
#endif
    if (!ob)
        goto bad;
    if (PyDict_SetItemString(dict, "__pyx_vtable__", ob) < 0)
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

#include "compile.h"
#include "frameobject.h"
#include "traceback.h"

static void __Pyx_AddTraceback(const char *funcname) {
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    PyObject *py_globals = 0;
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;

    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(__pyx_filename);
    #else
    py_srcfile = PyUnicode_FromString(__pyx_filename);
    #endif
    if (!py_srcfile) goto bad;
    if (__pyx_clineno) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_globals = PyModule_GetDict(__pyx_m);
    if (!py_globals) goto bad;
    py_code = PyCode_New(
        0,            /*int argcount,*/
        #if PY_MAJOR_VERSION >= 3
        0,            /*int kwonlyargcount,*/
        #endif
        0,            /*int nlocals,*/
        0,            /*int stacksize,*/
        0,            /*int flags,*/
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple,  /*PyObject *consts,*/
        __pyx_empty_tuple,  /*PyObject *names,*/
        __pyx_empty_tuple,  /*PyObject *varnames,*/
        __pyx_empty_tuple,  /*PyObject *freevars,*/
        __pyx_empty_tuple,  /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        __pyx_lineno,   /*int firstlineno,*/
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    if (!py_code) goto bad;
    py_frame = PyFrame_New(
        PyThreadState_GET(), /*PyThreadState *tstate,*/
        py_code,             /*PyCodeObject *code,*/
        py_globals,          /*PyObject *globals,*/
        0                    /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    py_frame->f_lineno = __pyx_lineno;
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else  /* Python 3+ has unicode identifiers */
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        ++t;
    }
    return 0;
}

/* Type Conversion Functions */

static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}

static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
  PyNumberMethods *m;
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_VERSION_HEX < 0x03000000
  if (PyInt_Check(x) || PyLong_Check(x))
#else
  if (PyLong_Check(x))
#endif
    return Py_INCREF(x), x;
  m = Py_TYPE(x)->tp_as_number;
#if PY_VERSION_HEX < 0x03000000
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = PyNumber_Long(x);
  }
#else
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Long(x);
  }
#endif
  if (res) {
#if PY_VERSION_HEX < 0x03000000
    if (!PyInt_Check(res) && !PyLong_Check(res)) {
#else
    if (!PyLong_Check(res)) {
#endif
      PyErr_Format(PyExc_TypeError,
                   "__%s__ returned non-%s (type %.200s)",
                   name, name, Py_TYPE(res)->tp_name);
      Py_DECREF(res);
      return NULL;
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}

static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject* x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}

static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
#if PY_VERSION_HEX < 0x02050000
   if (ival <= LONG_MAX)
       return PyInt_FromLong((long)ival);
   else {
       unsigned char *bytes = (unsigned char *) &ival;
       int one = 1; int little = (int)*(unsigned char*)&one;
       return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0);
   }
#else
   return PyInt_FromSize_t(ival);
#endif
}

static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
   unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x);
   if (unlikely(val == (unsigned PY_LONG_LONG)-1 && PyErr_Occurred())) {
       return (size_t)-1;
   } else if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) {
       PyErr_SetString(PyExc_OverflowError,
                       "value too large to convert to size_t");
       return (size_t)-1;
   }
   return (size_t)val;
}


#endif /* Py_PYTHON_H */
