Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. >>> k1 = Key('SomeKind', 1)
  2. <Key[{'kind': 'SomeKind', 'id': 1}]>
  3. >>> k1.is_partial()
  4. False
  5. >>> k2 = Key('ParentKind', 1, 'ChildKind')
  6. <Key[{'kind': 'ParentKind', 'id': 1}, {'kind': 'ChildKind'}]>
  7. >>> k2.is_partial()
  8. True
  9. >>> k3 = Key('ParentKind', 2, namespace='foo')
  10. >>> k3
  11. <Key[{'kind': 'ParentKind', 'id': 2}, namespace='foo']>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement