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


Groups > comp.lang.python > #77741 > unrolled thread

Re: weakref, memory management and execution slow down in PyQt4

Started byMichael Torrie <torriem@gmail.com>
First post2014-09-09 09:34 -0600
Last post2014-09-09 09:34 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: weakref, memory management and execution slow down in PyQt4 Michael Torrie <torriem@gmail.com> - 2014-09-09 09:34 -0600

#77741 — Re: weakref, memory management and execution slow down in PyQt4

FromMichael Torrie <torriem@gmail.com>
Date2014-09-09 09:34 -0600
SubjectRe: weakref, memory management and execution slow down in PyQt4
Message-ID<mailman.13905.1410276906.18130.python-list@python.org>
On 09/08/2014 08:45 PM, kjs wrote:
> You're right, a dictionary can do everything I need and more.

Actually I am wrong in suggesting a dictionary.  A list or an array
would probably be more appropriate.

Thinking about it this morning, one additional reason why getattr and
setattr aren't appropriate for this task is that they are not just a
dictionary lookup under the hood, they are an additional layer.  One
more function call that would be unnecessary if you used a data
structure directly.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web