*** povbot_ has joined #zodb | 00:06 | |
*** J1m has quit IRC | 00:27 | |
*** J1m has joined #zodb | 00:54 | |
*** J1m has quit IRC | 01:15 | |
*** JaRoel|4d has joined #zodb | 01:46 | |
*** nueces has quit IRC | 02:09 | |
*** J1m has joined #zodb | 02:48 | |
*** J1m has quit IRC | 02:50 | |
*** JaRoel has joined #zodb | 03:01 | |
*** JaRoel|4d has quit IRC | 03:03 | |
*** J1m has joined #zodb | 03:57 | |
*** J1m has quit IRC | 04:10 | |
*** J1m has joined #zodb | 05:05 | |
*** J1m has quit IRC | 05:14 | |
*** JaRoel has quit IRC | 09:28 | |
*** JaRoel|4d has joined #zodb | 10:06 | |
*** JaRoel|4d has quit IRC | 10:07 | |
*** JaRoel|4d has joined #zodb | 10:07 | |
*** mgedmin_ has joined #zodb | 12:59 | |
*** mgedmin_ has quit IRC | 13:00 | |
*** povbot_ is now known as povbot | 13:22 | |
*** fdrake has quit IRC | 13:44 | |
*** J1m has joined #zodb | 13:57 | |
*** J1m has quit IRC | 14:16 | |
*** J1m has joined #zodb | 14:17 | |
*** J1m has quit IRC | 14:22 | |
*** agroszer_ has joined #zodb | 14:33 | |
*** J1m has joined #zodb | 14:34 | |
*** J1m has quit IRC | 14:45 | |
*** agroszer_ has quit IRC | 15:04 | |
*** fdrake has joined #zodb | 15:04 | |
mgedmin | so, transparent ZODB migration to Python 3 hit a small snag | 15:15 |
---|---|---|
mgedmin | https://github.com/zopefoundation/zodbpickle#loadingstoring-python-2-strings | 15:15 |
srichter | the problem is that we cannot just convert Py2 str to Py3 bytes indiscriminitorily | 15:16 |
srichter | because attribute names, for example, are stored as Py2 str, woulc be decoded as Py3 bytes and thus assigning the attribute fails | 15:17 |
srichter | the idea we are toying with is to hint the class somehow to indicate the fields that are bytes | 15:18 |
srichter | another idea is to always try to decode and if we hit non-ascii chars, we leave bytes | 15:18 |
srichter | mgedmin: mmh, what about creating a string implementation for Py3 that resembles the Py2 string? | 15:20 |
srichter | I guess that's too hacky | 15:20 |
mgedmin | I can't come up with anything better than 'try ascii, fall back to bytes' | 15:27 |
srichter | let's try that first and see how it goes | 15:27 |
srichter | we or someone else can provide the app-level fixes later | 15:28 |
mgedmin | API suggestion: pickle.loads(data, encoding="ASCII", errors="bytes") | 15:33 |
srichter | mgedmin: +1 | 15:40 |
mgedmin | https://github.com/zopefoundation/zodbpickle/commit/b5cedd8e1ae56ccd8e8bba8524d932dbda6e6107 | 15:54 |
*** srichter_ has joined #zodb | 16:01 | |
*** srichter has quit IRC | 16:01 | |
*** srichter_ is now known as srichter | 16:04 | |
*** J1m has joined #zodb | 16:09 | |
*** nueces has joined #zodb | 17:17 | |
*** JaRoel|4d has quit IRC | 17:31 | |
*** JaRoel|4d has joined #zodb | 18:09 | |
*** srichter has quit IRC | 18:18 | |
*** JaRoel|4d has quit IRC | 19:10 | |
*** srichter has joined #zodb | 22:01 | |
*** J1m has quit IRC | 22:13 | |
*** J1m has joined #zodb | 22:14 | |
*** srichter has quit IRC | 22:43 | |
*** srichter has joined #zodb | 22:43 | |
*** davisagli is now known as davisagli|afk | 22:59 | |
*** davisagli|afk is now known as davisagli | 23:26 | |
*** J1m has quit IRC | 23:34 | |
*** JaRoel|4d has joined #zodb | 23:44 | |
*** JaRoel|4d has joined #zodb | 23:45 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!