#NEWLINE# def datatype( self , as_string = False ) : #NEWLINE# #INDENT# '\n        Returns the GDAL Pixel Datatype for this band.\n        ' #NEWLINE# dtype = capi . get_band_datatype ( self . _ptr ) #NEWLINE# if self : #NEWLINE# #INDENT# dtype = GDAL_PIXEL_TYPES [ dtype ] #NEWLINE# #UNINDENT# return dtype