*** piranha has joined #europython | 00:02 | |
*** crumbel has joined #europython | 00:14 | |
*** piranha has quit IRC | 00:43 | |
*** crumbel has quit IRC | 01:57 | |
*** Gandalfar has joined #europython | 02:03 | |
*** Gandalfar has quit IRC | 02:05 | |
*** Gandalfar has joined #europython | 02:19 | |
*** moreati has quit IRC | 02:23 | |
*** Gandalfar has quit IRC | 02:38 | |
*** david`bgk has quit IRC | 05:30 | |
*** david`bgk has joined #europython | 05:31 | |
*** crumbel has joined #europython | 09:12 | |
*** piranha has joined #europython | 10:28 | |
*** davide has joined #europython | 10:47 | |
*** crumbel has quit IRC | 10:47 | |
*** davide has quit IRC | 10:55 | |
*** davide has joined #europython | 11:09 | |
*** davide has quit IRC | 11:32 | |
*** davide has joined #europython | 11:32 | |
*** natea has joined #europython | 11:35 | |
natea | brutasse - are you at the sprint this morning? | 11:36 |
---|---|---|
davide | CPython sprinters, join #cpython-sprint | 11:36 |
*** m0rg has joined #europython | 11:36 | |
*** babbageclunk has joined #europython | 11:38 | |
*** lac has joined #europython | 11:42 | |
davidcramer | natea, i think he is still asleep :) | 11:44 |
davidcramer | i havent seen him yet | 11:44 |
*** natea has quit IRC | 11:44 | |
david`bgk | he is not :) | 11:48 |
*** piranha has quit IRC | 12:03 | |
*** Gandalfar has joined #europython | 12:13 | |
*** Kami_ has quit IRC | 12:29 | |
*** Kami_ has joined #europython | 12:30 | |
davidcramer | are all the django dudes in here? | 12:59 |
davidcramer | or do you have another chan? | 12:59 |
brutasse | maybe #django-sprint, dunno | 13:00 |
Gandalfar | davidcramer, #django-sprint | 13:00 |
davidcramer | brutasse, are you here now? :P | 13:00 |
brutasse | davidcramer, in front of you | 13:00 |
davidcramer | what 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 |
davidcramer | http://dpaste.com/558722/ | 13:01 |
davidcramer | e.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 |
davidcramer | anyone here strongly opinionated on how you should structured your tests directory? e.g. integration vs unit tests :) | 13:18 |
*** piranha has joined #europython | 13:21 | |
d0ugal | davidcramer: just do it better than Django ;) | 13:28 |
davidcramer | :P | 13:28 |
davidcramer | im not sure if i should just put them in the same directories or isolate them | 13:29 |
Gandalfar | same dir until they're big enough to warrant more structure | 13:42 |
*** ambv has joined #europython | 13:44 | |
davidcramer | Gandalfar, ya i ended up just doing a separate TestCase for the integration tests | 13:50 |
*** davide has quit IRC | 13:58 | |
*** davide has joined #europython | 14:02 | |
*** piranha has quit IRC | 14:09 | |
ambv | My mid-2009 15 inch MacBook Pro, SN W89362EA64B has been stolen yesterday. Any suggestions on where else should I put that information? | 14:19 |
davide | ambv: in Florence? | 14:22 |
ambv | yup, my backpack was taken from the restaurant I was at | 14:22 |
ambv | didn't noticed until it was too late | 14:22 |
davide | ambv: not the EP restaurant? | 14:23 |
davidcramer | ambv, that sucks :/ | 14:23 |
ambv | no, from Le Colonnine at Via de Benci 6 | 14:26 |
david`bgk | ouch | 14:26 |
*** piranha has joined #europython | 14:26 | |
*** hajs has joined #europython | 14:27 | |
ambv | they took the whole backpack along with those expensive converters, chargers for the laptop and the iPhone (not the phone itself fortunately) | 14:30 |
ambv | so I'm around 2000 EUR behind | 14:30 |
ambv | :/ | 14:31 |
*** davide has quit IRC | 14:33 | |
*** piranha has quit IRC | 14:37 | |
*** ambv has quit IRC | 14:50 | |
davidcramer | hrm | 14:53 |
davidcramer | value.__class__ = klass | 14:53 |
davidcramer | why wont this work :( | 14:53 |
*** piranha has joined #europython | 15:04 | |
Jerub | davidcramer: um. because. | 15:06 |
Jerub | changing the type of an instance is an exceptionally hard thing to do. | 15:06 |
*** davide_ has joined #europython | 15:07 | |
davidcramer | Jerub, how does pickle manage to make this work? | 15:16 |
voidspace | changing class works mostly | 15:16 |
voidspace | but not for builtin / c types | 15:16 |
davidcramer | ya im not trying to change crazy stuff, just my own custom classes | 15:16 |
davidcramer | but thats erroring for me | 15:16 |
davidcramer | TypeError: __class__ must be set to a class | 15:16 |
voidspace | well that's pretty self-explanatory | 15:16 |
voidspace | :-) | 15:17 |
davidcramer | but it is a class :( | 15:17 |
voidspace | what is klass in your case? | 15:17 |
davidcramer | <class 'sentry.core.interfaces.Http'> | 15:17 |
voidspace | does that inherit from a C class or is it pure python? | 15:17 |
voidspace | and is it an old style class? | 15:17 |
davidcramer | pure python, new-style | 15:17 |
voidspace | and what is value? | 15:17 |
davidcramer | value = _EmptyClass() :) | 15:18 |
davidcramer | which is old-style | 15:18 |
davidcramer | (same implementation as pickle) | 15:18 |
davidcramer | oh i think it works if i make that a new-style class | 15:18 |
voidspace | yeah, in a simple experiment I can't change an old style class to a new style class by __class__ assignment | 15:19 |
voidspace | although the error message is not helpful... | 15:19 |
davidcramer | ya | 15:19 |
voidspace | http://paste.pocoo.org/show/419058/ | 15:19 |
davidcramer | yep i just changed it to new-style | 15:20 |
davidcramer | no clue how pickle works :P | 15:21 |
davidcramer | but that code isnt the easiest to read through | 15:21 |
voidspace | yeah | 15:21 |
voidspace | aint that the truth | 15:21 |
davidcramer | voidspace, you're not here at the sprints are you? | 15:21 |
voidspace | no :-( | 15:21 |
voidspace | just loitering on irc | 15:21 |
voidspace | but about to leave I'm afraid | 15:21 |
davidcramer | :) | 15:21 |
davidcramer | http://dpaste.com/558758/ | 15:22 |
davidcramer | seem like a reasonable API? | 15:22 |
voidspace | should avoid dictionary as a default value unless you intend for it to be shared between instances | 15:24 |
davidcramer | ah ya i changed that elsewher,e need to do it everywhere | 15:24 |
davidcramer | (also, that is awful behavior) | 15:24 |
voidspace | well, the alternatives would be worse... | 15:25 |
davidcramer | ya i suppose | 15:25 |
davidcramer | just a huge gotcha | 15:25 |
voidspace | yep | 15:25 |
voidspace | try 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 though | 15:26 |
voidspace | if I do def x(foo=bar): pass | 15:26 |
dreimark | http://www.flickr.com/photos/onyame/sets/72157627019654580/ some images by onyame | 15:27 |
voidspace | and 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 |
dreimark | is someone from japan still here or does go soon to that place? | 15:27 |
voidspace | davidcramer: 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 |
voidspace | davidcramer: anyway... :-) | 15:28 |
ThomasWaldmann | is someone from JAPAN still here? | 15:28 |
voidspace | going afk | 15:28 |
ThomasWaldmann | (or, to be more precise, someone who returns to japan soon?) | 15:28 |
davidcramer | http://www.support.xerox.com/support/phaser-6130/downloads/enus.html?operatingSystem=macosx | 15:33 |
davidcramer | drivers for pinter | 15:33 |
davidcramer | *printer | 15:33 |
*** aghisla has joined #europython | 15:43 | |
*** jpich has joined #europython | 15:48 | |
*** babbageclunk has quit IRC | 16:03 | |
Gandalfar | davidcramer: https://github.com/gandalfar/sentry/commit/eb3e43993d3e3415044ac15b1693a37a6ee9ee3f | 16:03 |
*** piranha has quit IRC | 16:04 | |
*** babbageclunk has joined #europython | 16:07 | |
*** vasiliyeah has joined #europython | 16:18 | |
*** lac has quit IRC | 16:49 | |
*** piranha has joined #europython | 16:53 | |
*** piranha has quit IRC | 16:59 | |
davidcramer | http://dpaste.com/558791/ | 17:02 |
*** piranha has joined #europython | 17:25 | |
*** juD2k has joined #europython | 18:02 | |
davidcramer | Gandalfar, http://dpaste.com/558809/ | 18:16 |
davidcramer | Gandalfar, thats the json format | 18:17 |
davidcramer | at least bare bones | 18:17 |
*** piranha has joined #europython | 18:41 | |
*** nateaune has joined #europython | 18:41 | |
*** davide_ has quit IRC | 18:48 | |
*** davide_ has joined #europython | 18:52 | |
*** nateaune has quit IRC | 18:53 | |
*** voidspace has quit IRC | 18:56 | |
*** voidspace has joined #europython | 19:04 | |
*** voidspace has joined #europython | 19:04 | |
Gandalfar | davidcramer: https://github.com/gandalfar/sentry/commit/fe383b0cd0d638cf39fa8e7d8702e1c027a6d170 | 19:06 |
*** voidspace has quit IRC | 19:10 | |
*** Gandalfar has quit IRC | 19:20 | |
*** jpich has quit IRC | 19:31 | |
*** piranha has quit IRC | 19:35 | |
*** aghisla has quit IRC | 19:47 | |
*** vasiliyeah has quit IRC | 19:48 | |
*** piranha has joined #europython | 19:50 | |
*** nateaune has joined #europython | 19:50 | |
dreimark | anyone from JAPAN here ? | 19:52 |
dreimark | or close to? | 19:52 |
lvh | There were two Japanese guys at the conference but I can't see them anymore in the sprint room. | 20:01 |
*** Neo-- has joined #europython | 20:11 | |
*** nateaune has quit IRC | 20:17 | |
*** piranha has quit IRC | 20:23 | |
*** davide_ has quit IRC | 20:40 | |
dreimark | lvh: thx, one of them left a powersupply on our table | 20:44 |
*** hajs has quit IRC | 20:47 | |
*** babbageclunk has quit IRC | 20:54 | |
*** babbageclunk has joined #europython | 20:55 | |
*** davide_ has joined #europython | 20:56 | |
*** moreati has joined #europython | 21:00 | |
*** hajs has joined #europython | 21:05 | |
*** babbageclunk has quit IRC | 21:07 | |
*** m0rg has quit IRC | 21:11 | |
*** davide_ has quit IRC | 21:12 | |
*** babbageclunk has joined #europython | 21:13 | |
*** babbageclunk has quit IRC | 21:25 | |
*** piranha has joined #europython | 21:25 | |
*** babbageclunk has joined #europython | 21:32 | |
*** vasiliyeah has joined #europython | 21:35 | |
*** Kami_ has quit IRC | 21:40 | |
*** Kami_ has joined #europython | 21:41 | |
*** vasiliyeah has quit IRC | 22:03 | |
*** vasiliyeah has joined #europython | 22:04 | |
*** vasiliyeah has quit IRC | 22:09 | |
*** flummox has left #europython | 22:10 | |
*** vasiliyeah has joined #europython | 22:22 | |
*** Herald has joined #europython | 22:28 | |
*** vasiliyeah has quit IRC | 22:58 | |
*** vasiliyeah has joined #europython | 22:59 | |
*** moreati has quit IRC | 23:09 | |
*** vasiliyeah has quit IRC | 23:19 | |
*** piranha has quit IRC | 23:31 |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!