()
Disable Cython speedups
Disable Cython speedups
Disable Cython speedups
def disable():
    """Disable Cython speedups
    """
    if not _orig:
        return

    coords.CoordinateSequence.ctypes = _orig['CoordinateSequence.ctypes']
    coords.CoordinateSequence.__iter__ = _orig['CoordinateSequence.__iter__']
    linestring.geos_linestring_from_py = _orig['geos_linestring_from_py']
    polygon.geos_linearring_from_py = _orig['geos_linearring_from_py']
    shapely.affinity.affine_transform = _orig['affine_transform']
    _orig.clear()

    global enabled
    enabled = False
def disable ( ) : if not _orig : return coords . CoordinateSequence . ctypes = _orig [ 'CoordinateSequence.ctypes' ] coords . CoordinateSequence . __iter__ = _orig [ 'CoordinateSequence.__iter__' ] linestring . geos_linestring_from_py = _orig [ 'geos_linestring_from_py' ] polygon . geos_linearring_from_py = _orig [ 'geos_linearring_from_py' ] shapely . affinity . affine_transform = _orig [ 'affine_transform' ] _orig . clear ( ) global enabled enabled = False