Latency for API call to a Python Function

Terry Reedy tjreedy at udel.edu
Tue Aug 29 11:38:46 EDT 2017


On 8/29/2017 11:22 AM, shazianusra at gmail.com wrote:
> def getvideos(self, listitem):
> channelId = ""
> returnVideos,dictData = {},{}
> mode = 0
> channelId = listitem[KEY_CHANNELID]
> if KEY_CHANNELMODE in listitem :
> mode = int(listitem[KEY_CHANNELMODE])
> filteredVideos = []
...
Please make code readable by indenting properly, *with spaces*. 
Guessing at what you meant:
def getvideos(self, listitem):
 channelId = ""
 returnVideos,dictData = {},{}
mode = 0
channelId = listitem[KEY_CHANNELID]
if KEY_CHANNELMODE in listitem :
 mode = int(listitem[KEY_CHANNELMODE])
 filteredVideos = [].
...
If you posted with tab indents, they disappeared, as is common with 
news/mail.
-- 
Terry Jan Reedy


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /