we have a report that lists amazon links that need cleaning up, there's really no reason for anyone to care about the amazon url other than to check that the domain and asin are right
2012-04-26 11731, 2012
ruaok
nikki: can you please put that into a comment on the ticket?
2012-04-26 11734, 2012
nikki
so as long as the url works, someone like me or salo.rock will clean it up if it needs it
2012-04-26 11742, 2012
ijabz
Anyone. is it possible to edit the new track number field in a release yet on test, i tried but nothing happened ?
2012-04-26 11730, 2012
ocharles
python hackers: is it possible to remove multiple items from a dictionary with 'del'?
2012-04-26 11740, 2012
ocharles
can i del something['foo', 'bar']?
2012-04-26 11750, 2012
ruaok
I dont think so.
2012-04-26 11707, 2012
ianmcorvidae
you could do a list comprehension and throw away the result, that's probably how I'd do it
2012-04-26 11719, 2012
ianmcorvidae
[del something[entry] for entry in ['foo', 'bar']]
2012-04-26 11721, 2012
ruaok nods at ianmcorvidae
2012-04-26 11745, 2012
ianmcorvidae
more concise than writing out the loop for real, but otherwise equivalent
2012-04-26 11750, 2012
ocharles
I actually only need the del for the side effect
2012-04-26 11759, 2012
ocharles
(it's a memcached store)
2012-04-26 11715, 2012
ocharles
yay, mutation, yay side effects
2012-04-26 11719, 2012
ianmcorvidae
del is nothing but a side effect :P
2012-04-26 11724, 2012
warp
:D
2012-04-26 11726, 2012
ianmcorvidae
hence throwing away the result
2012-04-26 11729, 2012
ocharles
oh, it's not persistent?
2012-04-26 11740, 2012
ocharles
(persistent in the sense of functional programming)
2012-04-26 11755, 2012
ianmcorvidae
not quite sure what you mean
2012-04-26 11701, 2012
ianmcorvidae
but all del does is decrement a reference count
2012-04-26 11705, 2012
warp doesn't know what persistent in the sense of functional programming is.
and yeah, that's what I meant by purely side-effect, it doesn't have a return value
2012-04-26 11727, 2012
ocharles
you can all critique this python in a moment :)
2012-04-26 11731, 2012
warp
ocharles: so it would be a bit pointless if it doesn't modify the input "in place"
2012-04-26 11743, 2012
ianmcorvidae
if it was haskell it'd presumably be :: a -> IO ()
2012-04-26 11746, 2012
ianmcorvidae
(or so)
2012-04-26 11700, 2012
nikki
ijabz: right now you can only add new tracks, editing the existing track numbers doesn't work
2012-04-26 11717, 2012
ijabz
k
2012-04-26 11745, 2012
ocharles
meh, i dunno why I don't just write this in haskell, but oh well :P
2012-04-26 11730, 2012
adhawkins
ocharles: Can you remember what we were talking about recently. About a schema change that was supposed to happen after 6 months?
2012-04-26 11737, 2012
adhawkins
I've forgotten what it was now :)
2012-04-26 11745, 2012
ocharles
adhawkins: disambiguation being misnamed?
2012-04-26 11749, 2012
ocharles
i think?
2012-04-26 11702, 2012
adhawkins
Ah yes, that's right. Got it now
2012-04-26 11709, 2012
adhawkins
Added the disambiguation element for release group, this is due to replace the badly name comment element but the comment element will not be removed for six months in order to preserve backwards compatability
2012-04-26 11739, 2012
adhawkins
That was written 9 months ago :)
2012-04-26 11758, 2012
ocharles
heh
2012-04-26 11706, 2012
ocharles
this is what happens when we don't have tickets :)