code logs -> 2009 -> Fri, 17 Apr 2009< code.20090416.log - code.20090418.log >
--- Log opened Fri Apr 17 00:00:21 2009
00:40
<@Attilla>
Hello Rhamphoryncus you know me from here.
00:40
<@Attilla>
Shall we have a cross-network chat?
00:40
< Rhamphoryncus>
heh
01:02
< gnolam>
?
01:29 Consul [~consul@Nightstar-26965.dsl.sfldmi.ameritech.net] has quit [Ping Timeout]
01:29
<@Attilla>
The first part of what I said was on another network, because I recognised him ther
01:29
<@Attilla>
e.
01:31 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>]
01:34
< gnolam>
Oh.
01:36 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?]
01:45 Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code
01:45 mode/#code [+o Vornicus] by ChanServ
01:46 Consul [~consul@Nightstar-26965.dsl.sfldmi.ameritech.net] has joined #code
01:46 mode/#code [+o Consul] by ChanServ
04:05 SmithKurosaki [~jess@Nightstar-26979.acanac.net] has quit [Ping Timeout]
04:17 SmithKurosaki [~jess@67.212.0.ns-4438] has joined #code
04:48 SmithKurosaki [~jess@67.212.0.ns-4438] has quit [Ping Timeout]
04:48 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Ping Timeout]
04:53 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
04:53 mode/#code [+o ToxicFrog] by ChanServ
05:11 Consul [~consul@Nightstar-26965.dsl.sfldmi.ameritech.net] has quit [Operation timed out]
05:12 SmithKurosaki [~jess@Nightstar-26979.acanac.net] has joined #code
--- Log opened Fri Apr 17 14:26:22 2009
14:26 TheWatcher [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
14:26 Irssi: #code: Total of 21 nicks [10 ops, 0 halfops, 0 voices, 11 normal]
14:27 Irssi: Join to #code was synced in 55 secs
--- Log closed Fri Apr 17 15:30:32 2009
--- Log opened Fri Apr 17 15:39:19 2009
15:39 TheWatcher [~chris@Nightstar-29731.dsl.in-addr.zen.co.uk] has joined #code
15:39 Irssi: #code: Total of 21 nicks [10 ops, 0 halfops, 0 voices, 11 normal]
15:40 Irssi: Join to #code was synced in 52 secs
16:04 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
16:05 Syloqs_AFH is now known as Syloqs-AFH
18:28 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Ping Timeout]
18:29 SmithKurosaki [~jess@Nightstar-26979.acanac.net] has quit [Ping Timeout]
18:33 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code
18:43 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
18:43 mode/#code [+o ToxicFrog] by ChanServ
18:44 SmithKurosaki [~jess@67.212.0.ns-4438] has joined #code
20:59 Derakon [~Derakon@Nightstar-4912.hsd1.ca.comcast.net] has joined #code
20:59 mode/#code [+o Derakon] by ChanServ
21:49 Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code
21:49 mode/#code [+o Vornicus] by ChanServ
23:26 AnnoDomini [~farkoff@Nightstar-29073.neoplus.adsl.tpnet.pl] has quit [Quit: ...and when Mr. Bigglesworth gets upset, people die!]
23:48
<@Derakon>
Quick question: Python surely has a one-line way to say "get the product of the values of this list." But something like "product *= foo for foo in list" is a syntax error. What's the right way?
23:48
<@Vornicus>
If you're still working in 2.x:
23:48
<@Derakon>
Which I am.
23:48
<@Vornicus>
from operators import mul
23:49
<@Vornicus>
reduce(mul, lst, 1)
23:49
<@Derakon>
Ah hah.
23:49
<@McMartin>
Ah, reduce.
23:50
<@Derakon>
No module named operators. :(
23:50
<@Vornicus>
erp
23:50
<@Vornicus>
operator
23:50
<@McMartin>
Or, you know, too lines.
23:50
<@McMartin>
two
23:51
<@McMartin>
product = 1
23:51
<@McMartin>
for foo in list: product *= foo
23:51
<@McMartin>
One-statement blocks can be on the same line.
23:51
<@Derakon>
Yeah, yeah.
23:51
<@Derakon>
Look at it this way; now I know where reduce is.
23:51
<@McMartin>
True!
23:52
<@McMartin>
I have to admit I'm not a huge fan of folds.
23:52
<@Vornicus>
if you're in 3.x you don't get reduce for some unknown reason; reduce is def reduce(func, seq, initial): result = initial; for k in seq: result = func(result, k);; return result
23:56 KBot [~karma.bot@Nightstar-28115.neoplus.adsl.tpnet.pl] has joined #Code
23:57 KarmaBot [AnnoDomini@Nightstar-29073.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
23:59 KBot is now known as KarmaBot
--- Log closed Sat Apr 18 00:00:20 2009
code logs -> 2009 -> Fri, 17 Apr 2009< code.20090416.log - code.20090418.log >