#jython IRC Log (v0.9)

Index

IRC Log for 2012-09-02

Timestamps are in GMT/BST.

[0:19] * Arfrever (~Arfrever@apache/committer/Arfrever) has joined #jython
[2:59] * lheuer (~Adium@unaffiliated/lheuer) Quit (Ping timeout: 244 seconds)
[3:07] * lheuer (~Adium@unaffiliated/lheuer) has joined #jython
[5:34] <Azerith> anyone on?
[5:34] <Azerith> and by on i mean, not afk?
[5:51] * sera (~sera@gentoo/developer/sera) has joined #jython
[5:51] * sera_ (~sera@gentoo/developer/sera) Quit (Ping timeout: 246 seconds)
[7:11] * crocket (~crocket@unaffiliated/crocket) has left #jython
[7:33] <agronholm> Azerith: yes?
[7:35] <Azerith> all good :P
[7:36] <Azerith> i was seeking help with how to get a list of unique objects based on one of the objects attributes
[7:54] <Arfrever> Azerith: If input list contains objects A, B and C, and A != B and A.attr == B.attr, then do you want to have object A or B in output list?
[8:01] <Azerith> right now i dont care, technicaly it would be best so add the one where A.attr2 > B.attr2.
[8:02] <Azerith> i've just added a hash to the class, which is making it a bit easier now :P
[8:22] <Arfrever> Azerith: Without attr2 checking, you might use e.g.: set_of_attributes = set()\ndef f(arg):\n set_of_attributes.add(arg.attr)\n return arg\n[f(x) for x in input_list if x.attr not in set_of_attributes]
[9:03] <Azerith> :) thanks
[16:31] * Arfrever (~Arfrever@apache/committer/Arfrever) Quit (Ping timeout: 240 seconds)
[17:40] * sera_ (~sera@gentoo/developer/sera) has joined #jython
[17:40] * sera (~sera@gentoo/developer/sera) Quit (Ping timeout: 244 seconds)
[19:25] * nailujk (~quassel@dsl-244-146-172.telkomadsl.co.za) Quit (Remote host closed the connection)
[20:26] * JStoker (jstoker@unaffiliated/jstoker) Quit (Excess Flood)
[20:44] * JStoker (jstoker@unaffiliated/jstoker) has joined #jython
[21:52] * r0bby (~wakawaka@guifications/user/r0bby) has joined #jython
[21:52] * r0bby (~wakawaka@guifications/user/r0bby) Quit (Client Quit)
[21:53] * robbyoconnor (~wakawaka@guifications/user/r0bby) Quit (Read error: Connection reset by peer)
[21:53] * robbyoconnor (~wakawaka@guifications/user/r0bby) has joined #jython

Index

These logs were automatically created by JythonLogBot_ on irc.freenode.net using a slightly modified version of the Java IRC LogBot (github).