kindnames.gsl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. .kind:: ObjectClassifier
  2. .kind:: NodeSet
  3. .kind:: callable
  4. .kind:: int
  5. .kind:: integer
  6. ..d: When it is not specified if an attribute is an int or long,
  7. it is specified as integer.
  8. .kind:: iterable
  9. .kind:: iterator
  10. .kind:: list
  11. .kind:: string
  12. .kind:: notnegative
  13. ..d: This is non-negative integer, int or long.
  14. .kind:: Any
  15. .kind:: RelationStructure
  16. .kind:: boolean
  17. .kind:: frame
  18. .kind:: None
  19. .kind:: CommonSet
  20. .kind:: ImmNodeSet
  21. .kind:: MutNodeSet
  22. .kind:: HeapView
  23. .kind:: NodeGraph
  24. .kind:: guppy
  25. .kind:: guppy_Root
  26. .superkind:: Guppy Glue+
  27. ..eg: _GLUECLAMP_
  28. ...in context:
  29. class _GLUECLAMP_:
  30. # Example module description class.
  31. # It must be named _GLUECLAMP_ to be recognized by Guppy Glue.
  32. # Tuple of on-demand imports.
  33. _imports_ = (
  34. '_root:os', # Import os as self.os
  35. '_parent:module', # Import a module from the parent of my module, as self.module
  36. '_parent.module.method' # Import a method, as self.method
  37. )
  38. # Tuple of changable attributes.
  39. _chgable_ = ('config',) # Allow self.config to be written
  40. # A 'normal' attribute.
  41. config = 'A'
  42. # Methods beginning with _get_ will be called to automatically
  43. # create the attribute with the name after _get_.
  44. def _get_table(self): # Create the table attribute on demand
  45. return {} # It is automatically memoized as self.table
  46. .superkind:: int+
  47. ..eg: 0
  48. .superkind:: None+
  49. ..eg: None
  50. .superkind:: notnegative+
  51. ..eg: 0
  52. .superkind:: positive+
  53. ..eg: 1
  54. .superkind:: iterable+
  55. ..eg: [1]
  56. .superkind:: Any+
  57. ..eg: ()
  58. .superkind:: dict+
  59. ..eg: {}
  60. .superkind:: Exception+
  61. ..eg: ValueError
  62. .superkind:: NodeGraph+
  63. ..eg: NodeGraph()
  64. ...in context:
  65. from guppy.heapy.heapyc import NodeGraph
  66. .superkind:: NodeSet+
  67. ..eg: immnodeset()
  68. ...in context:
  69. from guppy.sets import immnodeset
  70. .superkind:: string+
  71. ..eg: ""
  72. .superkind:: ObjectClassifier+
  73. ..eg: hv.cli_none()
  74. ...in context:
  75. from guppy.heapy.heapyc import HeapView
  76. hv = HeapView((), ())
  77. .superkind:: boolean+
  78. ..eg: True
  79. .superkind:: type+
  80. ..eg: int
  81. .superkind:: type_with_hiding_tag+
  82. ..eg: MutNodeSet
  83. ...in context:
  84. from guppy.sets import MutNodeSet