Options:
- # Session Start: Sun Jul 11 15:51:16 2010
- # Session Ident: #whatwg
- # [15:51] * Now talking in #whatwg
- # [15:51] * Topic is 'WHATWG: http://www.whatwg.org/ -- logs: http://krijnhoetmer.nl/irc-logs/ -- stats: http://gavinsharp.com/irc/whatwg.html -- Please leave your sense of logic at the door, thanks!'
- # [15:51] * Set by annevk42 on Mon Oct 19 23:03:06
- # [16:00] * Quits: aho (~nya@f051020054.adsl.alicedsl.de) (Read error: Connection reset by peer)
- # [16:05] * Quits: Matjas (5bb629be@gateway/web/freenode/ip.91.182.41.190) (Ping timeout: 252 seconds)
- # [16:07] * Joins: nimbupani (~nimbupani@c-24-22-131-46.hsd1.wa.comcast.net)
- # [16:11] * Joins: Matjas (5bb629be@gateway/web/freenode/ip.91.182.41.190)
- # [16:15] * Joins: mhausenblas (~mhausenbl@79.97.142.102)
- # [16:17] * Quits: Steve^ (~steve@cpc2-hari1-0-0-cust1111.hari.cable.virginmedia.com) (Ping timeout: 265 seconds)
- # [16:24] * Quits: titacgs (~titacgs@201.250.157.73) (Read error: Connection reset by peer)
- # [16:30] * Quits: maikmerten (~maikmerte@port-92-201-67-236.dynamic.qsc.de) (Quit: Leaving)
- # [16:38] * Quits: mhausenblas (~mhausenbl@79.97.142.102) (Quit: mhausenblas)
- # [16:41] * Joins: FireFly (~firefly@unaffiliated/firefly)
- # [16:44] * Quits: Smylers (~smylers@92.17.27.143) (Ping timeout: 276 seconds)
- # [16:46] <gsnedders> Hmm, given an iterator in Python that returns a list each time, what's the easiest way to loop over all the lists returned?
- # [16:46] <gsnedders> e.g., given iter([[1,2,3], [4,5,6]]) iterate over 1,2,3,4,5,6
- # [16:51] <variable> gsnedders, ##python ?
- # [16:52] <variable> or rather #python
- # [16:52] <gsnedders> But it's less effort to ask here and there tend to be people around who know :P
- # [17:10] * Quits: Matjas (5bb629be@gateway/web/freenode/ip.91.182.41.190) (Ping timeout: 252 seconds)
- # [17:12] * Quits: boblet (~boblet@p1201-ipbf709osakakita.osaka.ocn.ne.jp) (Quit: boblet)
- # [17:13] * Joins: Necrathex (~bleptop@212-123-163-12.ip.telfort.nl)
- # [17:14] * Quits: kling (~kling@nat/trolltech/x-wvluzexgotnlftee) (Ping timeout: 240 seconds)
- # [17:16] <Slaanesh> gsnedders: Create a iterator iterator (or see if one exists)
- # [17:18] <Slaanesh> Shouldn't be more complicated than for x in iter: for y in x: yield y, I would expect
- # [17:21] * Joins: mmn (~mmn@node-6316.tor.pppoe.execulink.com)
- # [17:25] <gsnedders> Slaanesh: It seems like there should be a way to do it with built-in functions; either implementing a generator or an iterator basically adds too much overhead to make what I'm doing worthwhile as an optimization
- # [17:25] <gsnedders> (trying to avoid doing iter(cursor.fetchone, None) but instead butter results with cursor.fetchmany
- # [17:26] * Joins: kling (~kling@nat/trolltech/x-hksxgdhapxgqrxtb)
- # [17:26] * Quits: gavin_ (~gavin@firefox/developer/gavin) (Ping timeout: 246 seconds)
- # [17:27] <Slaanesh> Isn't that the opposite of what you asked for?
- # [17:29] <gsnedders> s/easiest/quickest/ I think changes it to be right
- # [17:31] * Joins: gavin_ (~gavin@firefox/developer/gavin)
- # [17:31] <gsnedders> Using oursql instead of MySQLdb, which is all Cython, makes fetchone a heckuva lot cheaper to call like iter(cursor.fetchone, None)
- # [17:31] <variable> gsnedders, check to see if you really need to optimize that loop btw
- # [17:32] * Joins: cedricv (~cedric@114.58.127.114)
- # [17:33] <gsnedders> I don't need to; it doesn't make that much difference if the script takes 300s to run and not 500s :)
- # [17:33] <gsnedders> (but that loop is pretty much the entire execution time)
- # [17:33] * Quits: cedricv_ (~cedric@114.56.111.31) (Ping timeout: 240 seconds)
- # [17:34] <gsnedders> (and back when it was 500s a large amount was overhead within the DB-API impl)
- # [17:53] * Joins: Smylers (~smylers@static-93.158.79.103.got.public.icomera.com)
- # [17:55] * Quits: Rik` (~Rik`@ARennes-352-1-53-26.w81-53.abo.wanadoo.fr) (Quit: Rik`)
- # [17:57] * Joins: titifrim (~titifrim@ARennes-252-1-38-161.w83-195.abo.wanadoo.fr)
- # [18:01] * Quits: titifrim (~titifrim@ARennes-252-1-38-161.w83-195.abo.wanadoo.fr) (Client Quit)
- # [18:17] * Quits: Smylers (~smylers@static-93.158.79.103.got.public.icomera.com) (Ping timeout: 265 seconds)
- # [18:27] * Joins: Matjas (5bb629be@gateway/web/freenode/ip.91.182.41.190)
- # [18:27] * Parts: Matjas (5bb629be@gateway/web/freenode/ip.91.182.41.190)
- # [18:31] * Quits: cedricv (~cedric@114.58.127.114)
- # [18:32] * Quits: ZombieLoffe (~e@unaffiliated/zombieloffe)
- # [18:47] * Joins: maikmerten (~maikmerte@port-92-201-15-79.dynamic.qsc.de)
- # [18:49] <jgraham> gsnedders: Search for flatten on http://docs.python.org/library/itertools.html
- # [18:52] * Joins: Matjas (5bb629be@gateway/web/freenode/ip.91.182.41.190)
- # [18:57] <gsnedders> jgraham: Ah, I just hadn't found it there
- # [18:58] * Joins: smaug_ (~chatzilla@cs181150024.pp.htv.fi)
- # [19:02] <gsnedders> And chain(*foo) is identical to chain.from_iterable(foo), but works on Py < 2.6
- # [19:02] * Quits: taf2 (~taf2@pool-98-117-216-229.bltmmd.fios.verizon.net) (Quit: taf2)
- # [19:05] <gsnedders> No, it isn't
- # [19:05] <gsnedders> It's evaluated strictly
- # [19:05] <gsnedders> Meh
- # [19:08] <jgraham> gsnedders: It's not like it would be difficult to add from_iterable if it is missing
- # [19:08] <jgraham> The code is even on the page
- # [19:08] <gsnedders> jgraham: But 10s more overhead
- # [19:09] <jgraham> Compared to waht total time? And compared to what?
- # [19:09] <jgraham> +implementation
- # [19:11] <gsnedders> jgraham: 280s, the one in the itertools module
- # [19:12] <jgraham> So it only adds about 3% overhead. Not negligible but not obviously a huge deal
- # [19:12] <jgraham> Well more like 4% I guess
- # [19:13] * Joins: erlehmann (~erlehmann@dslb-188-103-019-184.pools.arcor-ip.net)
- # [19:15] <jgraham> (especially since the solution of upgrading python is avaliable)
- # [19:15] * Quits: maikmerten (~maikmerte@port-92-201-15-79.dynamic.qsc.de) (Remote host closed the connection)
- # [19:17] * Quits: erlehmann (~erlehmann@dslb-188-103-019-184.pools.arcor-ip.net) (Remote host closed the connection)
- # [19:18] * Joins: erlehmann (~erlehmann@dslb-188-103-019-184.pools.arcor-ip.net)
- # [19:22] <gsnedders> jgraham: 280s? That's totally not what I meant to say. 180s.
- # [19:22] <gsnedders> Which makes it 5.5%
- # [19:23] <jgraham> Yeah, but what choices do you have?
- # [19:23] <jgraham> ither don't do what you are doing or upgrade python
- # [19:24] <jgraham> *E
- # [19:32] * Joins: taf2 (~taf2@pool-98-117-216-229.bltmmd.fios.verizon.net)
- # [19:32] * Quits: daedb (~daed@78-72-108-100-no178.tbcn.telia.com) (Read error: Connection reset by peer)
- # [19:33] * Quits: Kroc (~kroc@cpc3-lanc2-0-0-cust544.brig.cable.ntl.com) (Quit: Kroc)
- # [19:36] * Joins: daedb (~daed@78-72-108-100-no178.tbcn.telia.com)
- # [19:48] * Joins: estellevw (~estellevw@adsl-99-170-149-16.dsl.pltn13.sbcglobal.net)
- # [19:48] * Quits: estellevw (~estellevw@adsl-99-170-149-16.dsl.pltn13.sbcglobal.net) (Client Quit)
- # [20:08] * Quits: kling (~kling@nat/trolltech/x-hksxgdhapxgqrxtb) (Ping timeout: 240 seconds)
- # [20:09] * Joins: m_W (~mwilcox56@c-68-38-230-216.hsd1.nj.comcast.net)
- # [20:12] * Quits: llrcombs (~11rcombs@c-67-173-106-77.hsd1.il.comcast.net) (Remote host closed the connection)
- # [20:22] * Joins: kling (~kling@nat/trolltech/x-nlkunquevwuhcavo)
- # [20:24] * Quits: Arimil (~arimil@bngr-208-111-200-196-pppoe.dsl.bngr.epix.net) (Ping timeout: 260 seconds)
- # [20:25] * Parts: mmn (~mmn@node-6316.tor.pppoe.execulink.com)
- # [20:37] <Workshiva> I'm trying to recall, didn't Shelley say she was done with htmlwg quite recently?
- # [20:39] <AryehGregor> Hasn't she said that on a regular basis for the entire course of her involvement with the HTMLWG?
- # [20:40] <Workshiva> It seems more like she's ramped up her activity to me...
- # [21:02] * Quits: GPHemsley (~GPHemsley@pdpc/supporter/student/GPHemsley) (Quit: Leaving)
- # [21:03] * Joins: GPHemsley (~GPHemsley@pdpc/supporter/student/GPHemsley)
- # [21:15] <Hixie> jgraham: so far the discussion has been primarily about discussion about discussion about articles
- # [21:15] <Workshiva> Sheds and paint for everyone
- # [21:27] * Quits: taf2 (~taf2@pool-98-117-216-229.bltmmd.fios.verizon.net) (Quit: taf2)
- # [21:28] * Joins: cristianl (~cristianl@201-15-162-224.paemt704.dsl.brasiltelecom.net.br)
- # [21:28] * Joins: KrocCamen (~kroc@cpc3-lanc2-0-0-cust544.brig.cable.ntl.com)
- # [21:29] * Joins: taf2 (~taf2@pool-98-117-216-229.bltmmd.fios.verizon.net)
- # [21:40] * Quits: cristianl (~cristianl@201-15-162-224.paemt704.dsl.brasiltelecom.net.br) (Remote host closed the connection)
- # [22:03] * Joins: fagan (~fagan@ubuntu/member/shanefagan)
- # [22:03] * Quits: erlehmann (~erlehmann@dslb-188-103-019-184.pools.arcor-ip.net) (Quit: Ex-Chat)
- # [22:10] * Joins: karlcow (~karl@nerval.la-grange.net)
- # [22:15] * Joins: erlehmann (~erlehmann@dslb-188-103-019-184.pools.arcor-ip.net)
- # [22:48] * Quits: svl (~me@ip565744a7.direct-adsl.nl) (Quit: And back he spurred like a madman, shrieking a curse to the sky.)
- # [22:58] * Joins: aho (~nya@f051084134.adsl.alicedsl.de)
- # [23:08] * Quits: ROBOd (~robod@89.123.142.173) (Quit: .)
- # [23:13] * Quits: stalled (~stalled@unaffiliated/stalled) (Ping timeout: 265 seconds)
- # [23:15] * Quits: Matjas (5bb629be@gateway/web/freenode/ip.91.182.41.190) (Ping timeout: 252 seconds)
- # [23:27] * Joins: ako (~nya@f051073049.adsl.alicedsl.de)
- # [23:27] * Quits: aho (~nya@f051084134.adsl.alicedsl.de) (Disconnected by services)
- # [23:28] * ako is now known as aho
- # [23:28] * Joins: estellevw (~estellevw@adsl-99-170-149-16.dsl.pltn13.sbcglobal.net)
- # [23:30] * Joins: stalled (~stalled@unaffiliated/stalled)
- # [23:38] * Joins: Rik` (~Rik`@pha75-2-81-57-187-57.fbx.proxad.net)
- # [23:44] * Quits: stalled (~stalled@unaffiliated/stalled) (Ping timeout: 265 seconds)
- # [23:46] * Quits: Martijnc (~Martijnc@91.176.105.3)
- # [23:51] <jgraham> Hixie: metadiscussion of off-topic topics seems unlikely to be more on topic than the topic it concerns
- # [23:53] <fagan> jgraham: what topic are you talking about?
- # [23:53] <fagan> is it the article about the two different html5 specs?
- # [23:55] <fagan> (w3 and whatwg)
- # [23:56] * Quits: eighty4 (~eighty4@c-76c8e455.012-403-6c6b701.cust.bredbandsbolaget.se) (Remote host closed the connection)
- # [23:57] <jgraham> fagan: There was some (meta) discussion on the WHATWG list about some CNN atricle about HTML5
- # [23:57] <jgraham> Or Cnet or someone
- # [23:57] <jgraham> CNet seems more likely
- # [23:57] * Quits: Maurice (copyman@5ED573FA.cable.ziggo.nl)
- # [23:57] <fagan> thats what I was saying :)
- # [23:58] <fagan> its more about the differences between the drafts and drama IMO
- # [23:58] <jgraham> Well then it appears I am unwittingly agreeing with you
- # [23:58] <jgraham> :)
- # [23:58] <fagan> but it is offtopic
- # [23:58] <Hixie> jgraham: agreed
- # [23:58] <jgraham> fagan: For the list, I would say so
- # [23:58] <jgraham> Although Hixie is the arbiter
- # [23:58] <jgraham> (is that a real word?)
- # [23:59] <fagan> I tend to ignore discussions like that just because it attracts flaming sometimes
- # [23:59] <Hixie> so far it has remained low-volume enough that i'm letting it pass
- # Session Close: Mon Jul 12 00:00:00 2010
The end :)