From c689eca77b3ef06531d4d7e9fe292122f09afcde Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Tue, 28 Jul 2015 07:07:09 +0300 Subject: [PATCH] Internal doc: graph serialization --- doc/bytecode.rst | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/bytecode.rst b/doc/bytecode.rst index 4b085290..5582f2e6 100644 --- a/doc/bytecode.rst +++ b/doc/bytecode.rst @@ -452,8 +452,16 @@ Full value serialization ------------------------ Bytecode dump/load is restricted to a subset of function values. It would be -more elegant to support generic value dump/load. However, that would mean -supporting e.g. arbitrary object graphs which is quite challenging. +more elegant to support generic value dump/load. However, there are several +practical issues: + +* Arbitrary object graphs would need to be supported, which is quite + challenging. + +* There'd have to be some mechanism to "revive" any native values on + load. For example, for a native object representing an open file, + the revive operation would reopen the file and perhaps seek the file + to the correct offset. Support bound functions -----------------------