/irc-logs / freenode / #whatwg / 2010-07-11 / end

Options:

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

The end :)