Support new marshal types from Python 3.4

This commit is contained in:
Michael Hansen
2014-01-21 00:07:34 -08:00
parent 6ecbcfb564
commit 176a049a68
9 changed files with 131 additions and 27 deletions

View File

@@ -5,7 +5,11 @@
/* PycTuple */
void PycTuple::load(PycData* stream, PycModule* mod)
{
m_size = stream->get32();
if (type() == TYPE_SMALL_TUPLE)
m_size = stream->getByte();
else
m_size = stream->get32();
m_values.resize(m_size);
for (int i=0; i<m_size; i++)
m_values[i] = LoadObject(stream, mod);