mirror of https://github.com/python/cpython
gh-111803: Support loading more deeply nested lists in binary plist format (GH-114024)
It no longer uses the C stack. The depth of nesting is only limited by Python recursion limit setting.
This commit is contained in:
parent
dd56b57483
commit
77b45fa6d0
|
@ -600,7 +600,8 @@ class _BinaryPlistParser:
|
|||
obj_refs = self._read_refs(s)
|
||||
result = []
|
||||
self._objects[ref] = result
|
||||
result.extend(self._read_object(x) for x in obj_refs)
|
||||
for x in obj_refs:
|
||||
result.append(self._read_object(x))
|
||||
|
||||
# tokenH == 0xB0 is documented as 'ordset', but is not actually
|
||||
# implemented in the Apple reference code.
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
:mod:`plistlib` now supports loading more deeply nested lists in binary
|
||||
format.
|
Loading…
Reference in New Issue