IRC log of #europython for Saturday, 2011-06-25

*** piranha has joined #europython00:02
*** crumbel has joined #europython00:14
*** piranha has quit IRC00:43
*** crumbel has quit IRC01:57
*** Gandalfar has joined #europython02:03
*** Gandalfar has quit IRC02:05
*** Gandalfar has joined #europython02:19
*** moreati has quit IRC02:23
*** Gandalfar has quit IRC02:38
*** david`bgk has quit IRC05:30
*** david`bgk has joined #europython05:31
*** crumbel has joined #europython09:12
*** piranha has joined #europython10:28
*** davide has joined #europython10:47
*** crumbel has quit IRC10:47
*** davide has quit IRC10:55
*** davide has joined #europython11:09
*** davide has quit IRC11:32
*** davide has joined #europython11:32
*** natea has joined #europython11:35
nateabrutasse - are you at the sprint this morning?11:36
davideCPython sprinters, join #cpython-sprint11:36
*** m0rg has joined #europython11:36
*** babbageclunk has joined #europython11:38
*** lac has joined #europython11:42
davidcramernatea, i think he is still asleep :)11:44
davidcrameri havent seen him yet11:44
*** natea has quit IRC11:44
david`bgkhe is not :)11:48
*** piranha has quit IRC12:03
*** Gandalfar has joined #europython12:13
*** Kami_ has quit IRC12:29
*** Kami_ has joined #europython12:30
davidcramerare all the django dudes in here?12:59
davidcrameror do you have another chan?12:59
brutassemaybe #django-sprint, dunno13:00
Gandalfardavidcramer, #django-sprint13:00
davidcramerbrutasse, are you here now? :P13:00
brutassedavidcramer, in front of you13:00
davidcramerwhat do you guys think of this interface for recording events in sentry + structured data (in this case, data that represents the Http request, which will render differently than normal metadata in an event)13:01
davidcramerhttp://dpaste.com/558722/13:01
davidcramere.g. the http request data gets used in various areas, where normal metadata just shows at the end of the event details (like here, http://cramer.io/0Y2O2V0g10101C2s2a3l)13:01
davidcrameranyone here strongly opinionated on how you should structured your tests directory? e.g. integration vs unit tests :)13:18
*** piranha has joined #europython13:21
d0ugaldavidcramer: just do it better than Django ;)13:28
davidcramer:P13:28
davidcramerim not sure if i should just put them in the same directories or isolate them13:29
Gandalfarsame dir until they're big enough to warrant more structure13:42
*** ambv has joined #europython13:44
davidcramerGandalfar, ya i ended up just doing a separate TestCase for the integration tests13:50
*** davide has quit IRC13:58
*** davide has joined #europython14:02
*** piranha has quit IRC14:09
ambvMy mid-2009 15 inch MacBook Pro, SN W89362EA64B has been stolen yesterday. Any suggestions on where else should I put that information?14:19
davideambv: in Florence?14:22
ambvyup, my backpack was taken from the restaurant I was at14:22
ambvdidn't noticed until it was too late14:22
davideambv: not the EP restaurant?14:23
davidcramerambv, that sucks :/14:23
ambvno, from Le Colonnine at Via de Benci 614:26
david`bgkouch14:26
*** piranha has joined #europython14:26
*** hajs has joined #europython14:27
ambvthey took the whole backpack along with those expensive converters, chargers for the laptop and the iPhone (not the phone itself fortunately)14:30
ambvso I'm around 2000 EUR behind14:30
ambv:/14:31
*** davide has quit IRC14:33
*** piranha has quit IRC14:37
*** ambv has quit IRC14:50
davidcramerhrm14:53
davidcramervalue.__class__ = klass14:53
davidcramerwhy wont this work :(14:53
*** piranha has joined #europython15:04
Jerubdavidcramer: um. because.15:06
Jerubchanging the type of an instance is an exceptionally hard thing to do.15:06
*** davide_ has joined #europython15:07
davidcramerJerub, how does pickle manage to make this work?15:16
voidspacechanging class works mostly15:16
voidspacebut not for builtin / c types15:16
davidcramerya im not trying to change crazy stuff, just my own custom classes15:16
davidcramerbut thats erroring for me15:16
davidcramerTypeError: __class__ must be set to a class15:16
voidspacewell that's pretty self-explanatory15:16
voidspace:-)15:17
davidcramerbut it is a class :(15:17
voidspacewhat is klass in your case?15:17
davidcramer<class 'sentry.core.interfaces.Http'>15:17
voidspacedoes that inherit from a C class or is it pure python?15:17
voidspaceand is it an old style class?15:17
davidcramerpure python, new-style15:17
voidspaceand what is value?15:17
davidcramervalue = _EmptyClass() :)15:18
davidcramerwhich is old-style15:18
davidcramer(same implementation as pickle)15:18
davidcrameroh i think it works if i make that a new-style class15:18
voidspaceyeah, in a simple experiment I can't change an old style class to a new style class by __class__ assignment15:19
voidspacealthough the error message is not helpful...15:19
davidcramerya15:19
voidspacehttp://paste.pocoo.org/show/419058/15:19
davidcrameryep i just changed it to new-style15:20
davidcramerno clue how pickle works :P15:21
davidcramerbut that code isnt the easiest to read through15:21
voidspaceyeah15:21
voidspaceaint that the truth15:21
davidcramervoidspace, you're not here at the sprints are you?15:21
voidspaceno :-(15:21
voidspacejust loitering on irc15:21
voidspacebut about to leave I'm afraid15:21
davidcramer:)15:21
davidcramerhttp://dpaste.com/558758/15:22
davidcramerseem like a reasonable API?15:22
voidspaceshould avoid dictionary as a default value unless you intend for it to be shared between instances15:24
davidcramerah ya i changed that elsewher,e need to do it everywhere15:24
davidcramer(also, that is awful behavior)15:24
voidspacewell, the alternatives would be worse...15:25
davidcramerya i suppose15:25
davidcramerjust a huge gotcha15:25
voidspaceyep15:25
voidspacetry and think of a sane way for the alternative to work with arbitrary objects and I think you'll find there are equally huge gotchas though15:26
voidspaceif I do def x(foo=bar): pass15:26
dreimarkhttp://www.flickr.com/photos/onyame/sets/72157627019654580/ some images by onyame15:27
voidspaceand bar refers to some mutable object - should the name be re-looked up from the defining namespace every time the function is executed?15:27
dreimarkis someone from japan still here or does go soon to that place?15:27
voidspacedavidcramer: so what happens when the function is called (what the default value is) will depend on what code later on does with that name...15:28
voidspacedavidcramer: anyway... :-)15:28
ThomasWaldmannis someone from JAPAN still here?15:28
voidspacegoing afk15:28
ThomasWaldmann(or, to be more precise, someone who returns to japan soon?)15:28
davidcramerhttp://www.support.xerox.com/support/phaser-6130/downloads/enus.html?operatingSystem=macosx15:33
davidcramerdrivers for pinter15:33
davidcramer*printer15:33
*** aghisla has joined #europython15:43
*** jpich has joined #europython15:48
*** babbageclunk has quit IRC16:03
Gandalfardavidcramer: https://github.com/gandalfar/sentry/commit/eb3e43993d3e3415044ac15b1693a37a6ee9ee3f16:03
*** piranha has quit IRC16:04
*** babbageclunk has joined #europython16:07
*** vasiliyeah has joined #europython16:18
*** lac has quit IRC16:49
*** piranha has joined #europython16:53
*** piranha has quit IRC16:59
davidcramerhttp://dpaste.com/558791/17:02
*** piranha has joined #europython17:25
*** juD2k has joined #europython18:02
davidcramerGandalfar, http://dpaste.com/558809/18:16
davidcramerGandalfar, thats the json format18:17
davidcramerat least bare bones18:17
*** piranha has joined #europython18:41
*** nateaune has joined #europython18:41
*** davide_ has quit IRC18:48
*** davide_ has joined #europython18:52
*** nateaune has quit IRC18:53
*** voidspace has quit IRC18:56
*** voidspace has joined #europython19:04
*** voidspace has joined #europython19:04
Gandalfardavidcramer: https://github.com/gandalfar/sentry/commit/fe383b0cd0d638cf39fa8e7d8702e1c027a6d17019:06
*** voidspace has quit IRC19:10
*** Gandalfar has quit IRC19:20
*** jpich has quit IRC19:31
*** piranha has quit IRC19:35
*** aghisla has quit IRC19:47
*** vasiliyeah has quit IRC19:48
*** piranha has joined #europython19:50
*** nateaune has joined #europython19:50
dreimarkanyone from JAPAN here ?19:52
dreimarkor close to?19:52
lvhThere were two Japanese guys at the conference but I can't see them anymore in the sprint room.20:01
*** Neo-- has joined #europython20:11
*** nateaune has quit IRC20:17
*** piranha has quit IRC20:23
*** davide_ has quit IRC20:40
dreimarklvh: thx, one of them left a powersupply on our table20:44
*** hajs has quit IRC20:47
*** babbageclunk has quit IRC20:54
*** babbageclunk has joined #europython20:55
*** davide_ has joined #europython20:56
*** moreati has joined #europython21:00
*** hajs has joined #europython21:05
*** babbageclunk has quit IRC21:07
*** m0rg has quit IRC21:11
*** davide_ has quit IRC21:12
*** babbageclunk has joined #europython21:13
*** babbageclunk has quit IRC21:25
*** piranha has joined #europython21:25
*** babbageclunk has joined #europython21:32
*** vasiliyeah has joined #europython21:35
*** Kami_ has quit IRC21:40
*** Kami_ has joined #europython21:41
*** vasiliyeah has quit IRC22:03
*** vasiliyeah has joined #europython22:04
*** vasiliyeah has quit IRC22:09
*** flummox has left #europython22:10
*** vasiliyeah has joined #europython22:22
*** Herald has joined #europython22:28
*** vasiliyeah has quit IRC22:58
*** vasiliyeah has joined #europython22:59
*** moreati has quit IRC23:09
*** vasiliyeah has quit IRC23:19
*** piranha has quit IRC23:31

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