Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81654

Re: Fwd: Python Signal/Slot + QThred code analysis

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 <juan0christian@gmail.com>
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; '-&gt;': 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&gt;': 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 <CAAp0bGttki1B=1q5SX_C39L_dRB22YOQiTbVxdvo4jSee0srcw@mail.gmail.com> <CAAp0bGsgMTK7MS1Wvh13304et7Bb7XUyfZTU8ZmF2++BuLj7dw@mail.gmail.com> <5473E188.5020608@gmail.com> <CAAp0bGtYCEWNLV7tnR6O5N706_3AkO9XRBs1pNP8TCxfctUyow@mail.gmail.com> <5474A333.2090207@mrabarnett.plus.com> <CAAp0bGsGLsWoXQnqFYN3KLeUsmcD5ujF80sasM16wx70zQ1xUA@mail.gmail.com> <CAAp0bGvhhWcLO76UQ+nXZuhazjJr9wsjwBkuCX78O4K=em9wuQ@mail.gmail.com> <5474C889.5090503@mrabarnett.plus.com> <CAAp0bGtv13QaPhfTx+tzSe6ZpQ9RCLiWrG1Cv+qfEw3JZ41o9g@mail.gmail.com> <547545CF.60208@gmail.com> <CAAp0bGuMRmEXXFpHaVx0MBoQ72N3MYXYwnnxpS58w-LSV6vTdw@mail.gmail.com> <5476A134.7050407@gmail.com> <5476A48C.1050607@gmail.com> <CAAp0bGtirGVFRAdE3-eosTVfwTAeLO0-XcPyY7+JVSsujqs7bg@mail.gmail.com> <5477AB1E.3030609@gmail.com> <CAAp0bGvR+AUiedDdw6KLTmBjJ-PSKvxEnwCxbRj7xB7isFEvMg@mail.gmail.com>
From Juan Christian <juan0christian@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.16385.1417130964.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu Nov 27 2014 at 9:16:38 PM Juan Christian <juan0christian@gmail.com>
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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Fwd: Python Signal/Slot + QThred code analysis Juan Christian <juan0christian@gmail.com> - 2014-11-27 23:29 +0000

csiph-web