mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
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
2 changed files with 4 additions and 1 deletions
|
|
@ -600,7 +600,8 @@ def _read_object(self, ref):
|
|||
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…
Add table
Add a link
Reference in a new issue