IRC Logs for #circuits Saturday, 2014-02-15

*** DrSAR has joined #circuits03:02
prologicehlo03:57
DrSARhiya04:11
Romsterlo04:24
Romsterprologic, so what should i use for the database then json what python module handles that?04:24
prologicjson04:25
prologic:)04:25
prologicfrom json improt dumps, loads04:25
prologiclook it's really quite simple04:26
prologicyou konw that thing you use on your CRUX Desktop?04:26
prologicYOu may use ext404:26
prologicor maybe even btrfs04:26
prologicGuess what?! :)04:26
prologicIt's an f'n database :)04:26
prologica really really good one :)04:26
Romsterwell i am aware of json i was just set on SQL.04:27
*** eriknw has quit IRC04:43
*** eriknw has joined #circuits04:46
*** anunnaki has quit IRC04:49
*** anunnaki has joined #circuits04:49
DrSARIn reading controllers.py I have come across this definition of the Controller class:04:57
DrSARController = ExposeMetaClass("Controller", (BaseController,), {})04:57
DrSARAt the same time I found this absolute gem of an explanation of metaclasses: http://stackoverflow.com/questions/100003/what-is-a-metaclass-in-python04:57
DrSARSo Controller inherits from BaseController with the slight tweak that any additional attributes (of which there are none, see third parameter in the call to ExposeMetaClass get the expose treatment.04:58
DrSARWhy would one not say04:59
DrSARclass Controller(BaseController): pass04:59
DrSAR?04:59
*** DrSAR has quit IRC05:06
*** DrSAR has joined #circuits05:07
*** DrSAR has quit IRC05:46
*** Romster has quit IRC08:39
*** Romster has joined #circuits08:40
*** Osso has quit IRC09:40
*** zleap has joined #circuits09:50
*** zleap has quit IRC10:47
prologicDrSAR> Why would one not say10:56
prologic<DrSAR> class Controller(BaseController): pass10:56
prologic<DrSAR> ?10:56
prologicIt's actually equivilent to:10:56
prologicclass Controller(BaseControlelr):10:56
prologic    __metaclass__ = (ExposeMetaClass<)10:56
prologicThe reason circuits doesn't use this form10:56
prologicis to be backwards compatible with Python 2.610:56
*** Osso has joined #circuits11:59
*** Osso has quit IRC12:04
*** Osso has joined #circuits12:05
*** zleap has joined #circuits16:10
*** Osso has quit IRC17:33
*** zleap has quit IRC18:56
*** Osso has joined #circuits20:24
*** zleap has joined #circuits21:38
*** zleap has quit IRC22:43
*** Osso has quit IRC23:47

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!