PyShell 0.9.8 - The Flakiest Python Shell Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. import datetime, os, re, time, sys, wx # All Skyperious modules: from skyperious import conf, emoticons, export, gui, guibase, images, live, main, searchparser, skypedata, support, templates, workers from skyperious.lib import controls, util, wordcloud, wx_accel self = wx.GetApp().TopWindow # Application main window instance page = self.page_db_latest # Database tab db = page.db # SQLite database wrapper page = self.page_db_latest # Database tab db = page.db # SQLite database wrapper def getter(): chatmap = db.live.skype.chats.recent() while chatmap: for c in chatmap.values(): yield c chatmap = db.live.skype.chats.recent() chats = getter() chat = next(chats) Traceback (most recent call last): File "", line 1, in StopIteration print chat Traceback (most recent call last): File "", line 1, in NameError: name 'chat' is not defined chat = next(chats) Traceback (most recent call last): File "", line 1, in StopIteration chat = next(chats) Traceback (most recent call last): File "", line 1, in StopIteration def getter(): chatmap = db.live.skype.chats.recent() while chatmap: for c in chatmap.values(): yield c chatmap = db.live.skype.chats.recent() chats = getter() chat = next(chats) print chat def getter(): chatmap = db.live.skype.chats.recent() while chatmap: for c in chatmap.values(): yield c chatmap = db.live.skype.chats.recent() chats = getter() chat = next(chats) Traceback (most recent call last): File "", line 1, in StopIteration print chat Traceback (most recent call last): File "", line 1, in NameError: name 'chat' is not defined def getter(): chatmap = db.live.skype.chats.recent() while chatmap: for c in chatmap.values(): yield c chatmap = db.live.skype.chats.recent() chats = getter() chat = next(chats) Traceback (most recent call last): File "", line 1, in StopIteration print chat Traceback (most recent call last): File "", line 1, in NameError: name 'chat' is not defined print repr(chat) Traceback (most recent call last): File "", line 1, in NameError: name 'chat' is not defined for id, chat in db.live.skype.chats.recent().items(): print (id, chat.topic if hasattr(chat, "topic") else chat.user.name) for id, chat in db.live.skype.chats.recent().items(): print (id, chat.topic if hasattr(chat, "topic") else chat.user.name) for id, chat in db.live.skype.chats.recent().items(): print (id, chat.topic if hasattr(chat, "topic") else chat.user.name) for id, chat in db.live.skype.chats.recent().items(): print (id, chat.topic if hasattr(chat, "topic") else chat.user.name) for id, chat in db.live.skype.chats.recent().items(): print (id, chat.topic if hasattr(chat, "topic") else chat.user.name) def getter(): chatmap = db.live.skype.chats.recent() while chatmap: for c in chatmap.values(): yield c chatmap = db.live.skype.chats.recent() chats = getter() chat = next(chats) Traceback (most recent call last): File "", line 1, in StopIteration print chat Traceback (most recent call last): File "", line 1, in NameError: name 'chat' is not defined