mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Add initial Python 3.14 bytecode support
This commit is contained in:
parent
b428976097
commit
d3bdba9a94
14 changed files with 536 additions and 58 deletions
|
|
@ -78,3 +78,23 @@ bool PycDict::isEqual(PycRef<PycObject> obj) const
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/* PycSlice */
|
||||
void PycSlice::load(PycData* stream, PycModule* mod)
|
||||
{
|
||||
m_start = LoadObject(stream, mod);
|
||||
m_stop = LoadObject(stream, mod);
|
||||
m_step = LoadObject(stream, mod);
|
||||
}
|
||||
|
||||
bool PycSlice::isEqual(PycRef<PycObject> obj) const
|
||||
{
|
||||
if (type() != obj.type())
|
||||
return false;
|
||||
|
||||
PycRef<PycSlice> sliceObj = obj.cast<PycSlice>();
|
||||
return m_start->isEqual(sliceObj->m_start) &&
|
||||
m_stop->isEqual(sliceObj->m_stop) &&
|
||||
m_step->isEqual(sliceObj->m_step);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue