pickle.dumps(a) returns a str that is somewhat readable, so why not
look at it?  (pickle.dumps(v, n) is readable when n=0, the default.)

In the following, c will not include the instance corresponding to a.b
- it will just have the key (if any) because a came directly from the
datastore.

If e is not None after "e = d.b", look at pickle.dumps(d).  You'll see
an instance and a key for d.b.  (They'll be stored in different
instance variables - I think that the key will be in "_b" and the
instance will be in "__RESOLVED_b".)

If f is not None after "f = a.b", you'll see both an instance and a
key in pickle.dumps(a).  (Do "f = a.b" after "c = pickle.dumps(a)".)

On Nov 11, 11:43 pm, gops <[EMAIL PROTECTED]> wrote:
> sorry typo in above post in code in last line ,
>
> a = db.get(key_of_a)
> c = pickle.dumps(a)
> d = pickle.loads(c)
> e = d.b # will gae fetch b behind the scene or it is already available
> as an instance. ??
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to