Skip to content

Commit

Permalink
pythongh-111803: Support loading more deeply nested lists in binary p…
Browse files Browse the repository at this point in the history
…list format (pythonGH-114024)

It no longer uses the C stack. The depth of nesting is only limited by
Python recursion limit setting.
  • Loading branch information
serhiy-storchaka authored Jan 13, 2024
1 parent dd56b57 commit 77b45fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/plistlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:mod:`plistlib` now supports loading more deeply nested lists in binary
format.

0 comments on commit 77b45fa

Please sign in to comment.