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


Groups > comp.lang.python > #77741

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

Date 2014-09-09 09:34 -0600
From Michael Torrie <torriem@gmail.com>
Subject Re: weakref, memory management and execution slow down in PyQt4
References (2 earlier) <540CADDD.3050501@riseup.net> <540CB15C.2060008@gmail.com> <540CC278.4050106@riseup.net> <540E40FD.8030706@gmail.com> <540E69AF.5040309@riseup.net>
Newsgroups comp.lang.python
Message-ID <mailman.13905.1410276906.18130.python-list@python.org> (permalink)

Show all headers | View raw


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.

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


Thread

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

csiph-web