On Oct 5, 12:46 pm, Joseph Reagle rea...@mit.edu wrote:
I would think the commented code would be faster (fewer loops), but it is
not (because of function calls).
#Average user_time = 5.9975 over 4 iterations
inSRC = set([bio.name for bio in bios.values()])
inEB = set([bio.name
I would think the commented code would be faster (fewer loops), but it is
not (because of function calls).
#Average user_time = 5.9975 over 4 iterations
inSRC = set([bio.name for bio in bios.values()])
inEB = set([bio.name for bio in bios.values() if bio.eb_title])
inWP =
nn wrote:
Not only are you doing many function calls but you are assigning 12
objects each time. Why not do this?
for bio in bios.values():
inSRC.add(bio)
That obviously makes sense, but I was trying to get away from the verbosity
of:
inSRC = set([])
inSRC = set([])
Joseph Reagle rea...@mit.edu writes:
inSRC = set([bio.name for bio in bios.values()])
You should use:
inSRC = set(bio.name for bio in bios.values())
without the square brackets. That avoids creating an intermediate list.
--
http://mail.python.org/mailman/listinfo/python-list
JanC:
That person might be a student in some third-world country...
Then think of the extra incentive to provide useful answers.
Also, Eric had pointed out that payment included money,
sex, chocolate and other non-monetary possibilities.
Personally I think it'll be hard to put a monetary
yeah, but a lie unanswered by the truth becomes the truth.
you state opinon as fact and someone comes along reads your statement
that Python is so much slower and believes it is true because there is
no disententing voice to say, wait just a sec, this guy is clueless and
has no idea what he is
On Mon, 06 Dec 2004 13:01:47 -0800, fuzzylollipop wrote:
yeah, but a lie unanswered by the truth becomes the truth.
You know, it's bad enough that somebody starts this thread anew about
every two months anyhow, do you really have to try to resurrect dead ones?
Be patient and I'm sure you'll
hehe
Asun Friere wrote:
[EMAIL PROTECTED] (Alex Martelli) wrote in message
news:[EMAIL PROTECTED]...
[A]sking for tolerance and patience
against _rude_ newbies which barge in with shrill, mostly
unjustified,
repetitious complaints, is, I think, a rather far-fetched request.
That request