IRC log of #zodb for Wednesday, 2013-02-27

*** povbot_ has joined #zodb00:06
*** J1m has quit IRC00:27
*** J1m has joined #zodb00:54
*** J1m has quit IRC01:15
*** JaRoel|4d has joined #zodb01:46
*** nueces has quit IRC02:09
*** J1m has joined #zodb02:48
*** J1m has quit IRC02:50
*** JaRoel has joined #zodb03:01
*** JaRoel|4d has quit IRC03:03
*** J1m has joined #zodb03:57
*** J1m has quit IRC04:10
*** J1m has joined #zodb05:05
*** J1m has quit IRC05:14
*** JaRoel has quit IRC09:28
*** JaRoel|4d has joined #zodb10:06
*** JaRoel|4d has quit IRC10:07
*** JaRoel|4d has joined #zodb10:07
*** mgedmin_ has joined #zodb12:59
*** mgedmin_ has quit IRC13:00
*** povbot_ is now known as povbot13:22
*** fdrake has quit IRC13:44
*** J1m has joined #zodb13:57
*** J1m has quit IRC14:16
*** J1m has joined #zodb14:17
*** J1m has quit IRC14:22
*** agroszer_ has joined #zodb14:33
*** J1m has joined #zodb14:34
*** J1m has quit IRC14:45
*** agroszer_ has quit IRC15:04
*** fdrake has joined #zodb15:04
mgedminso, transparent ZODB migration to Python 3 hit a small snag15:15
mgedminhttps://github.com/zopefoundation/zodbpickle#loadingstoring-python-2-strings15:15
srichterthe problem is that we cannot just convert Py2 str to Py3 bytes indiscriminitorily15:16
srichterbecause attribute names, for example, are stored as Py2 str, woulc be decoded as Py3 bytes and thus assigning the attribute fails15:17
srichterthe idea we are toying with is to hint the class somehow to indicate the fields that are bytes15:18
srichteranother idea is to always try to decode and if we hit non-ascii chars, we leave bytes15:18
srichtermgedmin: mmh, what about creating a string implementation for Py3 that resembles the Py2 string?15:20
srichterI guess that's too hacky15:20
mgedminI can't come up with anything better than 'try ascii, fall back to bytes'15:27
srichterlet's try that first and see how it goes15:27
srichterwe or someone else can provide the app-level fixes later15:28
mgedminAPI suggestion: pickle.loads(data, encoding="ASCII", errors="bytes")15:33
srichtermgedmin: +115:40
mgedminhttps://github.com/zopefoundation/zodbpickle/commit/b5cedd8e1ae56ccd8e8bba8524d932dbda6e610715:54
*** srichter_ has joined #zodb16:01
*** srichter has quit IRC16:01
*** srichter_ is now known as srichter16:04
*** J1m has joined #zodb16:09
*** nueces has joined #zodb17:17
*** JaRoel|4d has quit IRC17:31
*** JaRoel|4d has joined #zodb18:09
*** srichter has quit IRC18:18
*** JaRoel|4d has quit IRC19:10
*** srichter has joined #zodb22:01
*** J1m has quit IRC22:13
*** J1m has joined #zodb22:14
*** srichter has quit IRC22:43
*** srichter has joined #zodb22:43
*** davisagli is now known as davisagli|afk22:59
*** davisagli|afk is now known as davisagli23:26
*** J1m has quit IRC23:34
*** JaRoel|4d has joined #zodb23:44
*** JaRoel|4d has joined #zodb23:45

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