Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed0.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.81.MISMATCH!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'subject: + ': 0.07; 'subject:code': 0.07; 'users,': 0.07; 'thu': 0.09; 'gui': 0.12; 'thread': 0.14; '->': 0.16; 'api,': 0.16; 'better?': 0.16; 'mean,': 0.16; 'seconds.': 0.16; 'strange,': 0.16; 'subject:analysis': 0.16; 'wrote:': 0.18; 'users.': 0.18; 'skip:1 30': 0.19; 'email addr:gmail.com>': 0.22; 'issue,': 0.24; 'question': 0.24; 'subject:/': 0.26; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'thanks!': 0.32; 'maybe': 0.34; 'info': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'instances': 0.36; 'minutes,': 0.36; 'right?': 0.36; 'var': 0.36; "i'll": 0.36; 'so,': 0.37; 'christian': 0.38; 'skip:o 20': 0.38; 'sometimes': 0.38; 'nov': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'moving': 0.39; 'to:addr:python.org': 0.39; 'users': 0.40; 'read': 0.60; 'new': 0.61; 'subject:Fwd': 0.61; 'different': 0.65; 'reply': 0.66; '100': 0.79; 'id,': 0.84; 'instantly': 0.84; 'thoroughly': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:from:date:message-id:subject:to :content-type; bh=lMlgXT7gV/3Qy5i2j/aKoBn1NDrcuL3PFbcZalCyhQI=; b=T+SFBaJiAERSh4DGzhW3glZCdE0edjFlKY/0ePfOhyRXjGY85pV8WAdyZ2v9XrqhCO Bq/ojzelSiLWN5+e9L5iDmmpq7msNvzYGgyPePGNn0DCruUXOUs2TRludKFqdKpZPme8 sAuVKCSDrW8x+L217+FsNebs86OQOTxHUihFjLbknHXWrTxKGCjNmxK+m7i+IEqC57TD 5Uta/yon21xS375hMNBq1zOLHPrlRTjrN7VnbUjrU2x0Q2ZWHE+I9esGEqI70cBPaoN6 MVmyHZoe9DHk+fjos1cSp3ASwUtp63Dwd1OVRyOR6/ri5QLDJliQXweg9mIp6IqGYFYg vs+Q== X-Received: by 10.140.39.5 with SMTP id u5mr21751641qgu.28.1417130955373; Thu, 27 Nov 2014 15:29:15 -0800 (PST) MIME-Version: 1.0 References: <5473E188.5020608@gmail.com> <5474A333.2090207@mrabarnett.plus.com> <5474C889.5090503@mrabarnett.plus.com> <547545CF.60208@gmail.com> <5476A134.7050407@gmail.com> <5476A48C.1050607@gmail.com> <5477AB1E.3030609@gmail.com> From: Juan Christian Date: Thu, 27 Nov 2014 23:29:14 +0000 Subject: Re: Fwd: Python Signal/Slot + QThred code analysis To: python-list@python.org Content-Type: multipart/alternative; boundary=001a11c1335a3204290508df836d X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 58 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417130964 news.xs4all.nl 2920 [2001:888:2000:d::a6]:36356 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81654 --001a11c1335a3204290508df836d Content-Type: text/plain; charset=UTF-8 On Thu Nov 27 2014 at 9:16:38 PM Juan Christian wrote: I'll read the code thoroughly and reply to you if I find something strange, many thanks! So, instantly I found one issue, you said that this code won't block the GUI, only the thread event loop, but if we keep moving the window while it's open, every time new info is printed the GUI freezes for like 1-2 seconds. And why this approach of a single instance is better? I mean, I'll have to call Outpost every time I get new data from my other API, because there will be different users, so I need to create different instances so I call the site with a new ID, don't I? Maybe the answer for that question is that you using a timer that is ALWAYS active and ALWAYS calling the the outpost site, so I'll have something like: var = Outpost('12345') var.posts -> 100 var.setID('67893') var.posts -> 35 Is that right? But I don't think that always calling the site this way is good for them and for me, sometimes I may not get new users for like 10~15 minutes, so I would have wasted a lot of calls for nothing. That's why I only instantiate/call the site when I get new users. --001a11c1335a3204290508df836d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

--001a11c1335a3204290508df836d--