Module classes

Built-in Classes for XXL

Classes


Classes


PClass Bool subclass of PObject

Built-in Class for `true` and `false` values

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (l, value)

PyFunc at classes.py:1283 (pobj_init)

default PObject init method (fatal error)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (x)

Closure at bootstrap.xxl:93:21

Return truthiness of `x` (as Bool). NOTE!! A static method, not a metaclass method!!!

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:2039 (bool_str)

return Str representation: "true" or "false"

Method reprx (this)

PyFunc at classes.py:1276 (pobj_reprx)

for debug: show Class name, and Python repr

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Bool'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary !== (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary === (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class BoundMethod subclass of Callable

Built-in Class for a method bound to an Object

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method clear_cache (this_class)

PyFunc at classes.py:1213 (class_clear_cache)

Clear the per-Class cache of methods and operators.

Method create (this_class, ...args)

PyFunc at classes.py:1142 (class_create)

Default create method for `Class` (the base metaclass); Creates an empty instance of this_class (called from `Class.new`).

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_class, props)

PyFunc at classes.py:1150 (class_init)

init method for meta-class "Class" -- used to create new Classes. `props` is Dict holding properties (see doc/creating-classes.md and src/const.py CLASS_PROPS)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (this_class, ...args)

Closure at bootstrap.xxl:78:35

Default metaclass (Class) new method; Manually invoked as `SomeClass.new`. Calls `this_class.create` to create obj, and then calls `obj.init()` (ie; the `SomeClass.init` method).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method subclass_of (this_class, c)

PyFunc at classes.py:1198 (class_subclass_of)

Return `true` if Class `this_class` is a subclass of Class (or CList of Classes) `c`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'BoundMethod'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class Callable subclass of Object

Virtual base Class for built-in callable classes (BoundMethod, Continuation, PyFunc, PyVMFunc)

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_obj, ...args)

PyFunc at classes.py:803 (obj_init)

default init method for Object class a fatal error if any arguments given

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Callable'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class Class subclass of Object

Base Metaclass, home of the default 'new' method

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method clear_cache (this_class)

PyFunc at classes.py:1213 (class_clear_cache)

Clear the per-Class cache of methods and operators.

Method create (this_class, ...args)

PyFunc at classes.py:1142 (class_create)

Default create method for `Class` (the base metaclass); Creates an empty instance of this_class (called from `Class.new`).

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_class, props)

PyFunc at classes.py:1150 (class_init)

init method for meta-class "Class" -- used to create new Classes. `props` is Dict holding properties (see doc/creating-classes.md and src/const.py CLASS_PROPS)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (this_class, ...args)

Closure at bootstrap.xxl:78:35

Default metaclass (Class) new method; Manually invoked as `SomeClass.new`. Calls `this_class.create` to create obj, and then calls `obj.init()` (ie; the `SomeClass.init` method).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method subclass_of (this_class, c)

PyFunc at classes.py:1198 (class_subclass_of)

Return `true` if Class `this_class` is a subclass of Class (or CList of Classes) `c`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Class'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class Closure subclass of Callable

Built-in Class for a native function bound to a scope

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method clear_cache (this_class)

PyFunc at classes.py:1213 (class_clear_cache)

Clear the per-Class cache of methods and operators.

Method create (this_class, ...args)

PyFunc at classes.py:1142 (class_create)

Default create method for `Class` (the base metaclass); Creates an empty instance of this_class (called from `Class.new`).

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_class, props)

PyFunc at classes.py:1150 (class_init)

init method for meta-class "Class" -- used to create new Classes. `props` is Dict holding properties (see doc/creating-classes.md and src/const.py CLASS_PROPS)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (this_class, ...args)

Closure at bootstrap.xxl:78:35

Default metaclass (Class) new method; Manually invoked as `SomeClass.new`. Calls `this_class.create` to create obj, and then calls `obj.init()` (ie; the `SomeClass.init` method).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method subclass_of (this_class, c)

PyFunc at classes.py:1198 (class_subclass_of)

Return `true` if Class `this_class` is a subclass of Class (or CList of Classes) `c`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Closure'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class Continuation subclass of Callable

Built-in Class for a Continuation

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_obj, ...args)

PyFunc at classes.py:803 (obj_init)

default init method for Object class a fatal error if any arguments given

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Continuation'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

PClass Dict subclass of PyIterable

Built-in dictionary mapping Class

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method each_for (this, func)

Closure at bootstrap.xxl:119:35

Create reverse Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method for_each (this, func)

Closure at bootstrap.xxl:107:35

Create Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this, arg)

Closure at bootstrap.xxl:190:35

init method for Dict. arg passed to this.update().

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method items (this)

PyFunc at classes.py:1505 (dict_items)

Return PyIterable for [key, value] value pairs.

Method iter (this)

PyFunc at classes.py:1409 (pyiterable_iter)

Return forward iterator.

Method keys (this)

PyFunc at classes.py:1512 (dict_keys)

Return PyIterable for Dict keys.

Method len (this)

PyFunc at classes.py:1253 (pobj_len)

returns length (of String, CList or Dict)

Method map (this, func)

Closure at bootstrap.xxl:138:30

Create Iterator from `this`; Return List of results of `func` passed each iterator item.

Method map2 (this, func, ignore)

Closure at bootstrap.xxl:153:31

Return List of results of `func` passed each iterator item, ignores any returns with value `ignore` (defaults to `null`).

Method pop (obj, key)

PyFunc at classes.py:1497 (dict_pop)

Remove Dict item with specified `key`.

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method range (...args)

PyFunc at classes.py:1441 (pyiterable_range)

Static method: returns PyIterable for an integer range; iter() method generates fresh Iterators. range(10): returns Iterable for 0..9; range(1,10): returns Iterable for 1..9; range(1,10,2): returns Iterable for odd numbers 1..9

Method repr (this)

Closure at bootstrap.xxl:228:35

return representation of Dict

Method reprx (this)

PyFunc at classes.py:1276 (pobj_reprx)

for debug: show Class name, and Python repr

Method reversed (this)

PyFunc at classes.py:1416 (pyiterable_reversed)

Return reverse iterator.

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method sorted (this, reverse)

PyFunc at classes.py:1424 (pyiterable_sorted)

Return sorted CList of iterator values. `reverse` is Bool to sort in reverse order (defaults to `false`).

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Method update (this, arg)

Closure at bootstrap.xxl:200:37

Update `this` using `arg.iter()` legal iterator values: List w/ two elements: `this[l[0]] = l[1];` Non-list: `this[item] = arg[item];`

Method values (this)

PyFunc at classes.py:1519 (dict_values)

Return PyIterable for Dict values.

Member name

Str
'Dict'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary !== (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary === (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary [ (l, r)

PyFunc at classes.py:1479 (dict_getitem)

`l[r]`

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

LHS [ (l, r, value)

PyFunc at classes.py:1470 (dict_putitem)

`l[r] = value`

Class Iterable subclass of Object

Mixin for Classes that can be iterated over

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method each_for (this, func)

Closure at bootstrap.xxl:119:35

Create reverse Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method for_each (this, func)

Closure at bootstrap.xxl:107:35

Create Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_obj, ...args)

PyFunc at classes.py:803 (obj_init)

default init method for Object class a fatal error if any arguments given

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method iter (this, func)

Closure at bootstrap.xxl:131:31

Default `iter` method for `Iterable` mixin; fatal error.

Method map (this, func)

Closure at bootstrap.xxl:138:30

Create Iterator from `this`; Return List of results of `func` passed each iterator item.

Method map2 (this, func, ignore)

Closure at bootstrap.xxl:153:31

Return List of results of `func` passed each iterator item, ignores any returns with value `ignore` (defaults to `null`).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method reversed (this)

Closure at bootstrap.xxl:170:43

Creates List from `this`, returns reverse PyIterator.

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method sorted (this, reverse)

Closure at bootstrap.xxl:178:41

Return sorted List of values from iterator (creates List first). `reverse` is Bool to sort in reverse order (defaults to `false`).

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Iterable'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

PClass List subclass of PyIterable

Built-in mutable sequence Class

Method append (this, item)

PyFunc at classes.py:1552 (list_append)

append `item`.

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method each_for (this, func)

Closure at bootstrap.xxl:119:35

Create reverse Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method extend (this, iterable)

Closure at bootstrap.xxl:253:37

Create an iterator from `iterable`, and iterate appending values to `this`; Returns `null`

Method for_each (this, func)

Closure at bootstrap.xxl:107:35

Create Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this, arg)

Closure at bootstrap.xxl:243:35

init method for List: takes Iterable

Method insert (this, index, object)

PyFunc at classes.py:1579 (list_insert)

Insert `object` at `index` (0 is first, -1 is last); Returns `null`.

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method iter (this)

PyFunc at classes.py:1409 (pyiterable_iter)

Return forward iterator.

Method len (this)

PyFunc at classes.py:1253 (pobj_len)

returns length (of String, CList or Dict)

Method map (this, func)

Closure at bootstrap.xxl:138:30

Create Iterator from `this`; Return List of results of `func` passed each iterator item.

Method map2 (this, func, ignore)

Closure at bootstrap.xxl:153:31

Return List of results of `func` passed each iterator item, ignores any returns with value `ignore` (defaults to `null`).

Method pop (this, index)

PyFunc at classes.py:1561 (list_pop)

Remove and return item at `index` (default last).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method range (...args)

PyFunc at classes.py:1441 (pyiterable_range)

Static method: returns PyIterable for an integer range; iter() method generates fresh Iterators. range(10): returns Iterable for 0..9; range(1,10): returns Iterable for 1..9; range(1,10,2): returns Iterable for odd numbers 1..9

Method repr (this)

Closure at bootstrap.xxl:269:35

Return representation of `this` List as Str.

Method reprx (this)

PyFunc at classes.py:1276 (pobj_reprx)

for debug: show Class name, and Python repr

Method reversed (this)

PyFunc at classes.py:1416 (pyiterable_reversed)

Return reverse iterator.

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method slice (this, start, end)

PyFunc at classes.py:1337 (pobj_slice)

return a subrange (slice) of `this` starting at position `start` ending at position `end` (defaults to remainder)

Method sorted (this, reverse)

PyFunc at classes.py:1424 (pyiterable_sorted)

Return sorted CList of iterator values. `reverse` is Bool to sort in reverse order (defaults to `false`).

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'List'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary !== (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary === (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary [ (this, item)

PyFunc at classes.py:1571 (list_get)

`l[r]`

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

LHS [ (this, r, value)

PyFunc at classes.py:1588 (list_put)

`l[r] = value`

Class ModInfo subclass of Object

Built-in Class for __modinfo Objects (inside Modules)

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method assemble (this, tree, srcfile)

PyFunc at classes.py:2321 (modinfo_assemble)

Assemble List of Lists representing VM code. `tree`: List of Lists. `srcfile`: source of code (for output only). Returns Closure in __modinfo.module top level scope.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_obj, ...args)

PyFunc at classes.py:803 (obj_init)

default init method for Object class a fatal error if any arguments given

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method load_vmx (this, fname)

PyFunc at classes.py:2309 (modinfo_load_vmx)

Load compiled `.vmx` file; Returns Closure in __modinfo.module top level scope.

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'ModInfo'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class Module subclass of Object

Built-in class for a Module (from import function)

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method clear_cache (this_class)

PyFunc at classes.py:1213 (class_clear_cache)

Clear the per-Class cache of methods and operators.

Method create (this_class, ...args)

PyFunc at classes.py:1142 (class_create)

Default create method for `Class` (the base metaclass); Creates an empty instance of this_class (called from `Class.new`).

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_class, props)

PyFunc at classes.py:1150 (class_init)

init method for meta-class "Class" -- used to create new Classes. `props` is Dict holding properties (see doc/creating-classes.md and src/const.py CLASS_PROPS)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (this_class, ...args)

Closure at bootstrap.xxl:78:35

Default metaclass (Class) new method; Manually invoked as `SomeClass.new`. Calls `this_class.create` to create obj, and then calls `obj.init()` (ie; the `SomeClass.init` method).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method subclass_of (this_class, c)

PyFunc at classes.py:1198 (class_subclass_of)

Return `true` if Class `this_class` is a subclass of Class (or CList of Classes) `c`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member modules

Dict
{'classes': <Module>, 'lib/doc.xxl': <Module>, 'parser.vmx': <Module>, 'lib/markup.xxl': <Module>}

Member name

Str
'Module'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class Null subclass of Nullish,PObject

Built-in Class of `null` value

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:2000 (nullish_getprop)

`.` method for Nullish (null, undefined) values. Fatal error if unknown property. Allows all Object methods (JavaScript is stricter, Python is not).

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (l, value)

PyFunc at classes.py:1283 (pobj_init)

default PObject init method (fatal error)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (x)

Closure at bootstrap.xxl:279:21

Return `null` value NOTE!! A static method, not a metaclass method!!!

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:1977 (null_str)

to_string/repr method for Null Class: returns "null"

Method reprx (this)

PyFunc at classes.py:1276 (pobj_reprx)

for debug: show Class name, and Python repr

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:2018 (nullish_setprop)

Nullish Object setprop method/operator

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Null'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary !== (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary ( (this, ...args)

PyFunc at classes.py:1984 (null_call)

`(` method for `null` value (fatal error)

Binary . (l, r)

PyFunc at classes.py:2000 (nullish_getprop)

`.` method for Nullish (null, undefined) values. Fatal error if unknown property. Allows all Object methods (JavaScript is stricter, Python is not).

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary === (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class Nullish subclass of Object

Mixin for nullish classes.

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:2000 (nullish_getprop)

`.` method for Nullish (null, undefined) values. Fatal error if unknown property. Allows all Object methods (JavaScript is stricter, Python is not).

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_obj, ...args)

PyFunc at classes.py:803 (obj_init)

default init method for Object class a fatal error if any arguments given

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:2018 (nullish_setprop)

Nullish Object setprop method/operator

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Nullish'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (l, ...args)

PyFunc at classes.py:1086 (obj_call)

default Object `(` binop (fatal error)

Binary . (l, r)

PyFunc at classes.py:2000 (nullish_getprop)

`.` method for Nullish (null, undefined) values. Fatal error if unknown property. Allows all Object methods (JavaScript is stricter, Python is not).

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:2018 (nullish_setprop)

Nullish Object setprop method/operator

PClass Number subclass of PObject

Built-in int/float wrapper Class

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (l, value)

PyFunc at classes.py:1283 (pobj_init)

default PObject init method (fatal error)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (x)

Closure at bootstrap.xxl:290:23

Convert `x` to a `Number` NOTE!! A static method, not a metaclass method!!!

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:1268 (pobj_repr)

return less human-friendly string representation of `this` (use Python repr function on value)

Method reprx (this)

PyFunc at classes.py:1276 (pobj_reprx)

for debug: show Class name, and Python repr

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method to_float (this)

PyFunc at classes.py:1750 (num_to_float)

If value is a float, return `this` If value is an int, return a new Number object

Method to_int (this)

PyFunc at classes.py:1760 (num_to_int)

If value is an int, return `this` If value is a float, return a new Number object

Method to_number (this)

PyFunc at classes.py:1770 (num_to_number)

identity method; returns `this`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Number'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Unary - (x)

PyFunc at classes.py:1617 (neg)

Return negative of `x`

Unary ~ (this)

PyFunc at classes.py:1743 (bitnot)

return bitwise (binary) "not" (complement) of `this`

Binary != (l, r)

PyFunc at classes.py:1680 (ne)

return `true` if value of `l` is different from the value of `r`

Binary !== (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary & (l, r)

PyFunc at classes.py:1717 (bitand)

return bitwise (binary) "and" (conjunction) of `l` and `r`

Binary ( (l, ...args)

PyFunc at classes.py:1086 (obj_call)

default Object `(` binop (fatal error)

Binary * (l, r)

PyFunc at classes.py:1648 (mul)

multiply `l` and `r`

Binary + (l, r)

PyFunc at classes.py:1624 (add)

add `l` and `r`

Binary - (l, r)

PyFunc at classes.py:1637 (sub)

subtract `r` from `l`

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary / (l, r)

PyFunc at classes.py:1661 (div)

Divide `l` by `r`; always creates float.

Binary < (l, r)

PyFunc at classes.py:1695 (lt)

return `true` if value of `l` is < the value of `r`

Binary <= (l, r)

PyFunc at classes.py:1702 (le)

return `true` if value of `l` is <= the value of `r`

Binary == (l, r)

PyFunc at classes.py:1672 (eq)

return `true` if value of `l` is the same as value of `r`

Binary === (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary > (l, r)

PyFunc at classes.py:1709 (gt)

return `true` if value of `l` is > the value of `r` (implemented as `!(l <= r)`)

Binary >= (l, r)

PyFunc at classes.py:1688 (ge)

return `true` if value of `l` is >= the value of `r`

Binary | (l, r)

PyFunc at classes.py:1730 (bitor)

return bitwise (binary) "or" (union) of `l` and `r`

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class Object subclass of Object

Base Class

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_obj, ...args)

PyFunc at classes.py:803 (obj_init)

default init method for Object class a fatal error if any arguments given

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Object'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (l, ...args)

PyFunc at classes.py:1086 (obj_call)

default Object `(` binop (fatal error)

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class PClass subclass of Class

Metaclass for Primitive/Python value Classes

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method clear_cache (this_class)

PyFunc at classes.py:1213 (class_clear_cache)

Clear the per-Class cache of methods and operators.

Method create (this_class)

PyFunc at classes.py:1238 (pclass_create)

'create' method for PClass metaclass makes an instance of this_class backed by a CPObject used to create PClass subclass objects (Number, CList, Dict, Bool, Null)

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_class, props)

PyFunc at classes.py:1150 (class_init)

init method for meta-class "Class" -- used to create new Classes. `props` is Dict holding properties (see doc/creating-classes.md and src/const.py CLASS_PROPS)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (this_class, ...args)

Closure at bootstrap.xxl:78:35

Default metaclass (Class) new method; Manually invoked as `SomeClass.new`. Calls `this_class.create` to create obj, and then calls `obj.init()` (ie; the `SomeClass.init` method).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method subclass_of (this_class, c)

PyFunc at classes.py:1198 (class_subclass_of)

Return `true` if Class `this_class` is a subclass of Class (or CList of Classes) `c`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'PClass'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

PClass PObject subclass of Object

Base class for Primitive/Python value Classes

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (l, value)

PyFunc at classes.py:1283 (pobj_init)

default PObject init method (fatal error)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:1268 (pobj_repr)

return less human-friendly string representation of `this` (use Python repr function on value)

Method reprx (this)

PyFunc at classes.py:1276 (pobj_reprx)

for debug: show Class name, and Python repr

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'PObject'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary !== (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary ( (l, ...args)

PyFunc at classes.py:1086 (obj_call)

default Object `(` binop (fatal error)

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary === (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class PyFunc subclass of Callable

Built-in Class for function implemented in Python

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method clear_cache (this_class)

PyFunc at classes.py:1213 (class_clear_cache)

Clear the per-Class cache of methods and operators.

Method create (this_class, ...args)

PyFunc at classes.py:1142 (class_create)

Default create method for `Class` (the base metaclass); Creates an empty instance of this_class (called from `Class.new`).

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_class, props)

PyFunc at classes.py:1150 (class_init)

init method for meta-class "Class" -- used to create new Classes. `props` is Dict holding properties (see doc/creating-classes.md and src/const.py CLASS_PROPS)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (this_class, ...args)

Closure at bootstrap.xxl:78:35

Default metaclass (Class) new method; Manually invoked as `SomeClass.new`. Calls `this_class.create` to create obj, and then calls `obj.init()` (ie; the `SomeClass.init` method).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method subclass_of (this_class, c)

PyFunc at classes.py:1198 (class_subclass_of)

Return `true` if Class `this_class` is a subclass of Class (or CList of Classes) `c`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'PyFunc'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

PClass PyIterable subclass of PObject,Iterable

Wrapper for Python 'iterable' Objects (CDict, CList, Str); Also returned by Dict.items(), Dict.keys(), Dict.values(), Object.props(), static method PyIterable.range().

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method each_for (this, func)

Closure at bootstrap.xxl:119:35

Create reverse Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method for_each (this, func)

Closure at bootstrap.xxl:107:35

Create Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (l, value)

PyFunc at classes.py:1283 (pobj_init)

default PObject init method (fatal error)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method iter (this)

PyFunc at classes.py:1409 (pyiterable_iter)

Return forward iterator.

Method map (this, func)

Closure at bootstrap.xxl:138:30

Create Iterator from `this`; Return List of results of `func` passed each iterator item.

Method map2 (this, func, ignore)

Closure at bootstrap.xxl:153:31

Return List of results of `func` passed each iterator item, ignores any returns with value `ignore` (defaults to `null`).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method range (...args)

PyFunc at classes.py:1441 (pyiterable_range)

Static method: returns PyIterable for an integer range; iter() method generates fresh Iterators. range(10): returns Iterable for 0..9; range(1,10): returns Iterable for 1..9; range(1,10,2): returns Iterable for odd numbers 1..9

Method repr (this)

PyFunc at classes.py:1268 (pobj_repr)

return less human-friendly string representation of `this` (use Python repr function on value)

Method reprx (this)

PyFunc at classes.py:1276 (pobj_reprx)

for debug: show Class name, and Python repr

Method reversed (this)

PyFunc at classes.py:1416 (pyiterable_reversed)

Return reverse iterator.

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method sorted (this, reverse)

PyFunc at classes.py:1424 (pyiterable_sorted)

Return sorted CList of iterator values. `reverse` is Bool to sort in reverse order (defaults to `false`).

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'PyIterable'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary !== (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary === (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

PClass PyIterableObject subclass of PyObject,PyIterable

Built-in Class for a wrapper around an arbitrary Python Object that is an iterable (has an __iter__ method -- an iterator factory).

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method create (this_class)

PyFunc at classes.py:1238 (pclass_create)

'create' method for PClass metaclass makes an instance of this_class backed by a CPObject used to create PClass subclass objects (Number, CList, Dict, Bool, Null)

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method each_for (this, func)

Closure at bootstrap.xxl:119:35

Create reverse Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method for_each (this, func)

Closure at bootstrap.xxl:107:35

Create Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (l, value)

PyFunc at classes.py:1283 (pobj_init)

default PObject init method (fatal error)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method iter (this)

PyFunc at classes.py:1409 (pyiterable_iter)

Return forward iterator.

Method map (this, func)

Closure at bootstrap.xxl:138:30

Create Iterator from `this`; Return List of results of `func` passed each iterator item.

Method map2 (this, func, ignore)

Closure at bootstrap.xxl:153:31

Return List of results of `func` passed each iterator item, ignores any returns with value `ignore` (defaults to `null`).

Method props (this)

PyFunc at classes.py:2109 (pyobj_props)

return dir() of wrapped Python object

Method range (...args)

PyFunc at classes.py:1441 (pyiterable_range)

Static method: returns PyIterable for an integer range; iter() method generates fresh Iterators. range(10): returns Iterable for 0..9; range(1,10): returns Iterable for 1..9; range(1,10,2): returns Iterable for odd numbers 1..9

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method reversed (this)

PyFunc at classes.py:1416 (pyiterable_reversed)

Return reverse iterator.

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method sorted (this, reverse)

PyFunc at classes.py:1424 (pyiterable_sorted)

Return sorted CList of iterator values. `reverse` is Bool to sort in reverse order (defaults to `false`).

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'PyIterableObject'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:2092 (pyobj_getprop)

PyObject `.` binop -- proxies to Python object getattr

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary [ (l, r)

PyFunc at classes.py:2116 (pyobj_getitem)

PyObject `[` binop

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class PyIterator subclass of Object,Iterable

Built-in Class for a wrapper around a Python iterator

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method each_for (this, func)

Closure at bootstrap.xxl:119:35

Create reverse Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method for_each (this, func)

Closure at bootstrap.xxl:107:35

Create Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_obj, ...args)

PyFunc at classes.py:803 (obj_init)

default init method for Object class a fatal error if any arguments given

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method iter (this)

PyFunc at classes.py:2145 (pyiterator_iter)

Returns `this.` https://docs.python.org/3/library/stdtypes.html#typeiter says an iterator should have an __iter__ method.

Method map (this, func)

Closure at bootstrap.xxl:138:30

Create Iterator from `this`; Return List of results of `func` passed each iterator item.

Method map2 (this, func, ignore)

Closure at bootstrap.xxl:153:31

Return List of results of `func` passed each iterator item, ignores any returns with value `ignore` (defaults to `null`).

Method next (this, finished)

PyFunc at classes.py:2155 (pyiterator_next)

Returns next value; calls `finished` (a block leave label or `return` Continuation) to call when iterator exhausted.

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method reversed (this)

Closure at bootstrap.xxl:170:43

Creates List from `this`, returns reverse PyIterator.

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method sorted (this, reverse)

Closure at bootstrap.xxl:178:41

Return sorted List of values from iterator (creates List first). `reverse` is Bool to sort in reverse order (defaults to `false`).

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'PyIterator'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

PClass PyIteratorObject subclass of PyObject,PyIterator

Built-in Class for a wrapper around an arbitrary Python Object that is an iterator (has a __next__ method -- should also have __iter__ method).

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method create (this_class)

PyFunc at classes.py:1238 (pclass_create)

'create' method for PClass metaclass makes an instance of this_class backed by a CPObject used to create PClass subclass objects (Number, CList, Dict, Bool, Null)

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method each_for (this, func)

Closure at bootstrap.xxl:119:35

Create reverse Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method for_each (this, func)

Closure at bootstrap.xxl:107:35

Create Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (l, value)

PyFunc at classes.py:1283 (pobj_init)

default PObject init method (fatal error)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method iter (this)

PyFunc at classes.py:2145 (pyiterator_iter)

Returns `this.` https://docs.python.org/3/library/stdtypes.html#typeiter says an iterator should have an __iter__ method.

Method map (this, func)

Closure at bootstrap.xxl:138:30

Create Iterator from `this`; Return List of results of `func` passed each iterator item.

Method map2 (this, func, ignore)

Closure at bootstrap.xxl:153:31

Return List of results of `func` passed each iterator item, ignores any returns with value `ignore` (defaults to `null`).

Method next (this, finished)

PyFunc at classes.py:2155 (pyiterator_next)

Returns next value; calls `finished` (a block leave label or `return` Continuation) to call when iterator exhausted.

Method props (this)

PyFunc at classes.py:2109 (pyobj_props)

return dir() of wrapped Python object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method reversed (this)

Closure at bootstrap.xxl:170:43

Creates List from `this`, returns reverse PyIterator.

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method sorted (this, reverse)

Closure at bootstrap.xxl:178:41

Return sorted List of values from iterator (creates List first). `reverse` is Bool to sort in reverse order (defaults to `false`).

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'PyIteratorObject'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:2092 (pyobj_getprop)

PyObject `.` binop -- proxies to Python object getattr

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary [ (l, r)

PyFunc at classes.py:2116 (pyobj_getitem)

PyObject `[` binop

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

PClass PyObject subclass of Object

Built-in Class for a wrapper around an arbitrary Python Object (returned by pyimport, or operations on PyObjects)

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (l, value)

PyFunc at classes.py:1283 (pobj_init)

default PObject init method (fatal error)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method props (this)

PyFunc at classes.py:2109 (pyobj_props)

return dir() of wrapped Python object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'PyObject'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this, ...args)

PyFunc at classes.py:2124 (pyobj_call)

Binary . (l, r)

PyFunc at classes.py:2092 (pyobj_getprop)

PyObject `.` binop -- proxies to Python object getattr

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary [ (l, r)

PyFunc at classes.py:2116 (pyobj_getitem)

PyObject `[` binop

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class PyVMFunc subclass of Callable

Built-in Class for function implemented in Python with access to VM internals

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method clear_cache (this_class)

PyFunc at classes.py:1213 (class_clear_cache)

Clear the per-Class cache of methods and operators.

Method create (this_class, ...args)

PyFunc at classes.py:1142 (class_create)

Default create method for `Class` (the base metaclass); Creates an empty instance of this_class (called from `Class.new`).

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_class, props)

PyFunc at classes.py:1150 (class_init)

init method for meta-class "Class" -- used to create new Classes. `props` is Dict holding properties (see doc/creating-classes.md and src/const.py CLASS_PROPS)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (this_class, ...args)

Closure at bootstrap.xxl:78:35

Default metaclass (Class) new method; Manually invoked as `SomeClass.new`. Calls `this_class.create` to create obj, and then calls `obj.init()` (ie; the `SomeClass.init` method).

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method subclass_of (this_class, c)

PyFunc at classes.py:1198 (class_subclass_of)

Return `true` if Class `this_class` is a subclass of Class (or CList of Classes) `c`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'PyVMFunc'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

PClass Set subclass of PyIterable

Built-in unordered collection of unique elements.

Method add (...args)

PyFunc at classes.py:2466 (add)

Add an element to a set. This has no effect if the element is already present.

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method clear (...args)

PyFunc at classes.py:2466 (clear)

Remove all elements from this set.

Method copy (...args)

PyFunc at classes.py:2466 (copy)

Return a shallow copy of a set.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method difference (...args)

PyFunc at classes.py:2466 (difference)

Return the difference of two or more sets as a new set. (i.e. all elements that are in this set but not the others.)

Method difference_update (...args)

PyFunc at classes.py:2466 (difference_update)

Remove all elements of another set from this set.

Method discard (...args)

PyFunc at classes.py:2466 (discard)

Remove an element from a set if it is a member. If the element is not a member, do nothing.

Method each_for (this, func)

Closure at bootstrap.xxl:119:35

Create reverse Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method for_each (this, func)

Closure at bootstrap.xxl:107:35

Create Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this, arg)

Closure at bootstrap.xxl:301:34

init method for Set. arg passed to this.update().

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method intersection (...args)

PyFunc at classes.py:2466 (intersection)

Return the intersection of two sets as a new set. (i.e. all elements that are in both sets.)

Method intersection_update (...args)

PyFunc at classes.py:2466 (intersection_update)

Update a set with the intersection of itself and another.

Method is_disjoint (...args)

PyFunc at classes.py:2466 (is_disjoint)

Return True if two sets have a null intersection.

Method is_subset (...args)

PyFunc at classes.py:2466 (is_subset)

Report whether another set contains this set.

Method is_superset (...args)

PyFunc at classes.py:2466 (is_superset)

Report whether this set contains another set.

Method iter (this)

PyFunc at classes.py:1409 (pyiterable_iter)

Return forward iterator.

Method len (this)

PyFunc at classes.py:1253 (pobj_len)

returns length (of String, CList or Dict)

Method map (this, func)

Closure at bootstrap.xxl:138:30

Create Iterator from `this`; Return List of results of `func` passed each iterator item.

Method map2 (this, func, ignore)

Closure at bootstrap.xxl:153:31

Return List of results of `func` passed each iterator item, ignores any returns with value `ignore` (defaults to `null`).

Method pop (...args)

PyFunc at classes.py:2466 (pop)

Remove and return an arbitrary set element. Raises KeyError if the set is empty.

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method range (...args)

PyFunc at classes.py:1441 (pyiterable_range)

Static method: returns PyIterable for an integer range; iter() method generates fresh Iterators. range(10): returns Iterable for 0..9; range(1,10): returns Iterable for 1..9; range(1,10,2): returns Iterable for odd numbers 1..9

Method remove (...args)

PyFunc at classes.py:2466 (remove)

Remove an element from a set; it must be a member. If the element is not a member, raise a KeyError.

Method repr (this)

Closure at bootstrap.xxl:325:34

return representation of Set

Method reprx (this)

PyFunc at classes.py:1276 (pobj_reprx)

for debug: show Class name, and Python repr

Method reversed (this)

PyFunc at classes.py:1416 (pyiterable_reversed)

Return reverse iterator.

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method sorted (this, reverse)

PyFunc at classes.py:1424 (pyiterable_sorted)

Return sorted CList of iterator values. `reverse` is Bool to sort in reverse order (defaults to `false`).

Method symmetric_difference (...args)

PyFunc at classes.py:2466 (symmetric_difference)

Return the symmetric difference of two sets as a new set. (i.e. all elements that are in exactly one of the sets.)

Method symmetric_difference_update (...args)

PyFunc at classes.py:2466 (symmetric_difference_update)

Update a set with the symmetric difference of itself and another.

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Method union (...args)

PyFunc at classes.py:2466 (union)

Return the union of sets as a new set. (i.e. all elements that are in either set.)

Method update (this, arg)

Closure at bootstrap.xxl:311:36

Update `this` using `arg.iter()`

Member name

Str
'Set'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary !== (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary === (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class SingletonClass subclass of Class

Metaclass for Classes with singleton values. Invoke classes.SingletonClass.new instead of Class.new to create a singleton Class.

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method clear_cache (this_class)

PyFunc at classes.py:1213 (class_clear_cache)

Clear the per-Class cache of methods and operators.

Method create (this_class, ...args)

PyFunc at classes.py:1142 (class_create)

Default create method for `Class` (the base metaclass); Creates an empty instance of this_class (called from `Class.new`).

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_class, props)

PyFunc at classes.py:1150 (class_init)

init method for meta-class "Class" -- used to create new Classes. `props` is Dict holding properties (see doc/creating-classes.md and src/const.py CLASS_PROPS)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (this_class, ...args)

Closure at bootstrap.xxl:344:8

SingletonClass new method: invoke to create a new class with a single value. First time: calls `this_class.create` to create obj, then calls obj.init(); After: returns previous value.

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method subclass_of (this_class, c)

PyFunc at classes.py:1198 (class_subclass_of)

Return `true` if Class `this_class` is a subclass of Class (or CList of Classes) `c`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'SingletonClass'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

PClass Str subclass of PyIterable

Built-in immutable Unicode string Class

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method capitalize (self)

PyFunc at classes.py:2466 (capitalize)

Return a capitalized version of the string. More specifically, make the first character have upper case and the rest lower case.

Method case_fold (self)

PyFunc at classes.py:2466 (case_fold)

Return a version of the string suitable for caseless comparisons.

Method center (self, width, fillchar)

PyFunc at classes.py:2466 (center)

Return a centered string of length width. Padding is done using the specified fill character (default is a space).

Method chr (i)

PyFunc at classes.py:1940 (str_chr)

Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff

Method count (...args)

PyFunc at classes.py:2466 (count)

S.count(sub[, start[, end]]) -> int Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method each_for (this, func)

Closure at bootstrap.xxl:119:35

Create reverse Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method ends_with (this, suff)

PyFunc at classes.py:1863 (str_ends_with)

Return `true` if `this` ends with the suffix `suff`, `false` otherwise.

Method expand_tabs (self, tabsize)

PyFunc at classes.py:2466 (expand_tabs)

Return a copy where all tab characters are expanded using spaces. If tabsize is not given, a tab size of 8 characters is assumed.

Method find (...args)

PyFunc at classes.py:2466 (find)

S.find(sub[, start[, end]]) -> int Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 on failure.

Method for_each (this, func)

Closure at bootstrap.xxl:107:35

Create Iterator from `this`, call `func` with each value. Iterator `next` method calls `return` continuation when exhausted. returns `null`

Method format (...args)

PyFunc at classes.py:2466 (format)

S.format(*args, **kwargs) -> str Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces ('{' and '}').

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method index (...args)

PyFunc at classes.py:2466 (index)

S.index(sub[, start[, end]]) -> int Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation. Raises ValueError when the substring is not found.

Method init (l, value)

PyFunc at classes.py:1283 (pobj_init)

default PObject init method (fatal error)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method is_alnum (self)

PyFunc at classes.py:2466 (is_alnum)

Return True if the string is an alpha-numeric string, False otherwise. A string is alpha-numeric if all characters in the string are alpha-numeric and there is at least one character in the string.

Method is_alpha (self)

PyFunc at classes.py:2466 (is_alpha)

Return True if the string is an alphabetic string, False otherwise. A string is alphabetic if all characters in the string are alphabetic and there is at least one character in the string.

Method is_ascii (self)

PyFunc at classes.py:2466 (is_ascii)

Return True if all characters in the string are ASCII, False otherwise. ASCII characters have code points in the range U+0000-U+007F. Empty string is ASCII too.

Method is_decimal (self)

PyFunc at classes.py:2466 (is_decimal)

Return True if the string is a decimal string, False otherwise. A string is a decimal string if all characters in the string are decimal and there is at least one character in the string.

Method is_digit (self)

PyFunc at classes.py:2466 (is_digit)

Return True if the string is a digit string, False otherwise. A string is a digit string if all characters in the string are digits and there is at least one character in the string.

Method is_identifier (self)

PyFunc at classes.py:2466 (is_identifier)

Return True if the string is a valid Python identifier, False otherwise. Call keyword.iskeyword(s) to test whether string s is a reserved identifier, such as "def" or "class".

Method is_lower (self)

PyFunc at classes.py:2466 (is_lower)

Return True if the string is a lowercase string, False otherwise. A string is lowercase if all cased characters in the string are lowercase and there is at least one cased character in the string.

Method is_numeric (self)

PyFunc at classes.py:2466 (is_numeric)

Return True if the string is a numeric string, False otherwise. A string is numeric if all characters in the string are numeric and there is at least one character in the string.

Method is_printable (self)

PyFunc at classes.py:2466 (is_printable)

Return True if the string is printable, False otherwise. A string is printable if all of its characters are considered printable in repr() or if it is empty.

Method is_space (self)

PyFunc at classes.py:2466 (is_space)

Return True if the string is a whitespace string, False otherwise. A string is whitespace if all characters in the string are whitespace and there is at least one character in the string.

Method is_title (self)

PyFunc at classes.py:2466 (is_title)

Return True if the string is a title-cased string, False otherwise. In a title-cased string, upper- and title-case characters may only follow uncased characters and lowercase characters only cased ones.

Method is_upper (self)

PyFunc at classes.py:2466 (is_upper)

Return True if the string is an uppercase string, False otherwise. A string is uppercase if all cased characters in the string are uppercase and there is at least one cased character in the string.

Method iter (this)

PyFunc at classes.py:1409 (pyiterable_iter)

Return forward iterator.

Method join (this, iterable)

Closure at bootstrap.xxl:364:34

Concatenate strings from `iterable` using `this` as the separator.

Method len (this)

PyFunc at classes.py:1253 (pobj_len)

returns length (of String, CList or Dict)

Method ljust (self, width, fillchar)

PyFunc at classes.py:2466 (ljust)

Return a left-justified string of length width. Padding is done using the specified fill character (default is a space).

Method map (this, func)

Closure at bootstrap.xxl:138:30

Create Iterator from `this`; Return List of results of `func` passed each iterator item.

Method map2 (this, func, ignore)

Closure at bootstrap.xxl:153:31

Return List of results of `func` passed each iterator item, ignores any returns with value `ignore` (defaults to `null`).

Method new (arg)

Closure at bootstrap.xxl:380:20

Str Class new (static) method; calls arg.to_str method

Method ord (this)

PyFunc at classes.py:1881 (str_ord)

Return the Unicode code point for a one-character string `this`

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method range (...args)

PyFunc at classes.py:1441 (pyiterable_range)

Static method: returns PyIterable for an integer range; iter() method generates fresh Iterators. range(10): returns Iterable for 0..9; range(1,10): returns Iterable for 1..9; range(1,10,2): returns Iterable for odd numbers 1..9

Method replace (self, old, new, count)

PyFunc at classes.py:2466 (replace)

Return a copy with all occurrences of substring old replaced by new. count Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences. If the optional argument count is given, only the first count occurrences are replaced.

Method repr (this)

PyFunc at classes.py:1268 (pobj_repr)

return less human-friendly string representation of `this` (use Python repr function on value)

Method reprx (this)

PyFunc at classes.py:1276 (pobj_reprx)

for debug: show Class name, and Python repr

Method reversed (this)

PyFunc at classes.py:1416 (pyiterable_reversed)

Return reverse iterator.

Method rfind (...args)

PyFunc at classes.py:2466 (rfind)

S.rfind(sub[, start[, end]]) -> int Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 on failure.

Method rsplit (self, sep, maxsplit)

PyFunc at classes.py:2466 (rsplit)

Return a list of the substrings in the string, using sep as the separator string. sep The separator used to split the string. When set to None (the default value), will split on any whitespace character (including \\n \\r \\t \\f and spaces) and will discard empty strings from the result. maxsplit Maximum number of splits (starting from the left). -1 (the default value) means no limit. Splitting starts at the end of the string and works to the front.

Method rstrip (self, chars)

PyFunc at classes.py:2466 (rstrip)

Return a copy of the string with trailing whitespace removed. If chars is given and not None, remove characters in chars instead.

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method slice (this, start, end)

PyFunc at classes.py:1337 (pobj_slice)

return a subrange (slice) of `this` starting at position `start` ending at position `end` (defaults to remainder)

Method sorted (this, reverse)

PyFunc at classes.py:1424 (pyiterable_sorted)

Return sorted CList of iterator values. `reverse` is Bool to sort in reverse order (defaults to `false`).

Method split (this, sep, limit)

PyFunc at classes.py:1845 (str_split)

Return a CList of the words in the string, using sep as the delimiter string (default to `null` -- any whitespace). Limit to `limit` return values (defaults to -1 -- no limit)

Method split_lines (self, keepends)

PyFunc at classes.py:2466 (split_lines)

Return a list of the lines in the string, breaking at line boundaries. Line breaks are not included in the resulting list unless keepends is given and true.

Method starts_with (this, pref)

PyFunc at classes.py:1888 (str_starts_with)

Return `true` if `this` starts with prefix `pref, `false` otherwise.

Method strip (this)

PyFunc at classes.py:1902 (str_strip)

Return a copy of the string with leading and trailing whitespace removed.

Method swap_case (self)

PyFunc at classes.py:2466 (swap_case)

Convert uppercase characters to lowercase and lowercase characters to uppercase.

Method to_float (this)

PyFunc at classes.py:1909 (str_to_float)

Convert string to a floating point Number

Method to_int (this, base)

PyFunc at classes.py:1916 (str_to_int)

Convert string to integer Number. Int `base` defaults to zero (accept 0xXXX, 0oOOO, 0bBBB).

Method to_lower (self)

PyFunc at classes.py:2466 (to_lower)

Return a copy of the string converted to lowercase.

Method to_number (this)

PyFunc at classes.py:1929 (str_to_number)

Convert string to a Number

Method to_str (this)

PyFunc at classes.py:1895 (str_str)

Identity method

Method to_upper (self)

PyFunc at classes.py:2466 (to_upper)

Return a copy of the string converted to uppercase.

Method zfill (self, width)

PyFunc at classes.py:2466 (zfill)

Pad a numeric string with zeros on the left, to fill a field of the given width. The string is never truncated.

Member name

Str
'Str'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:1680 (ne)

return `true` if value of `l` is different from the value of `r`

Binary !== (l, r)

PyFunc at classes.py:1308 (pobj_differ)

Check if value of PObject `l` is not the same Python Object as value of PObject `r`

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary + (x, y)

PyFunc at classes.py:1823 (str_concat)

String concatenation

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary < (l, r)

PyFunc at classes.py:1695 (lt)

return `true` if value of `l` is < the value of `r`

Binary <= (l, r)

PyFunc at classes.py:1702 (le)

return `true` if value of `l` is <= the value of `r`

Binary == (l, r)

PyFunc at classes.py:1672 (eq)

return `true` if value of `l` is the same as value of `r`

Binary === (l, r)

PyFunc at classes.py:1299 (pobj_ident)

Check if value of PObject `l` is the same Python Object as value of PObject `r`

Binary > (l, r)

PyFunc at classes.py:1709 (gt)

return `true` if value of `l` is > the value of `r` (implemented as `!(l <= r)`)

Binary >= (l, r)

PyFunc at classes.py:1688 (ge)

return `true` if value of `l` is >= the value of `r`

Binary [ (l, r)

PyFunc at classes.py:1836 (str_get)

Str l[r] return `r`'th character of Str `l`

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class Undefined subclass of Nullish,Object

Class for undefined value.

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:2000 (nullish_getprop)

`.` method for Nullish (null, undefined) values. Fatal error if unknown property. Allows all Object methods (JavaScript is stricter, Python is not).

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_obj, ...args)

PyFunc at classes.py:803 (obj_init)

default init method for Object class a fatal error if any arguments given

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (x)

Closure at bootstrap.xxl:390:26

Return `undefined` value NOTE!! A static method, not a metaclass method!!!

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method repr (this)

PyFunc at classes.py:2179 (undef_str)

to_string/repr method for Undefined Class: returns `"undefined"`

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:2018 (nullish_setprop)

Nullish Object setprop method/operator

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Member name

Str
'Undefined'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this, ...args)

PyFunc at classes.py:2186 (undef_call)

`(` method for `undefined` value (fatal error). commonly happens when a bad method name is used, so output a "helpful" message.

Binary . (l, r)

PyFunc at classes.py:2000 (nullish_getprop)

`.` method for Nullish (null, undefined) values. Fatal error if unknown property. Allows all Object methods (JavaScript is stricter, Python is not).

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Class XXLObject subclass of Object

Class for __xxl object

Method as_class (this, klass)

PyFunc at classes.py:1075 (obj_as_class)

return an Object of Class `klass`, sharing properties with `this`. Use for calling superclass methods: `this.as_class(MyClass)..method`.

Method backtrace ()

PyFunc at xxlobj.py:60 (xxl_backtrace)

print VM backtrace to stderr

Method break (x)

PyFunc at xxlobj.py:51 (xxl_break)

break to python debugger to debug VM argument (if any) available as `x`

Method clear_cache (this_class)

PyFunc at classes.py:1213 (class_clear_cache)

Clear the per-Class cache of methods and operators.

Method create (this_class, ...args)

PyFunc at classes.py:1142 (class_create)

Default create method for `Class` (the base metaclass); Creates an empty instance of this_class (called from `Class.new`).

Method delprop (this, name)

PyFunc at classes.py:874 (obj_delprop)

Delete property `name` from Object `this` (only effects `this` -- never Class or superclasses)

Method error (...args)

Closure at bootstrap.xxl:418:28

print args (as strings) to stderr

Method exit (status)

PyFunc at xxlobj.py:219 (xxl_exit)

Exit the interpreter. `status` defaults to zero.

Method getclass (this)

PyFunc at classes.py:1057 (obj_getclass)

return Class for `this`

Method getprop (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Method hasprop (l, r)

PyFunc at classes.py:987 (obj_hasprop)

Return `true` if object `l` has own (Str) property `r` (not interited).

Method init (this_class, props)

PyFunc at classes.py:1150 (class_init)

init method for meta-class "Class" -- used to create new Classes. `props` is Dict holding properties (see doc/creating-classes.md and src/const.py CLASS_PROPS)

Method instance_of (this, c)

PyFunc at classes.py:1094 (obj_instance_of)

return `true` if Object `this` is an instance of Class (or CList of Classes) `c`

Method new (this_class, ...args)

Closure at bootstrap.xxl:78:35

Default metaclass (Class) new method; Manually invoked as `SomeClass.new`. Calls `this_class.create` to create obj, and then calls `obj.init()` (ie; the `SomeClass.init` method).

Method print (...args)

Closure at bootstrap.xxl:411:28

print args (as strings) to stdout

Method props (this)

PyFunc at classes.py:821 (obj_props)

returns an Iterable for (String) property names of `this` Object

Method pyimport (module)

PyFunc at xxlobj.py:360 (xxl_pyimport)

Method repr (this)

PyFunc at classes.py:829 (obj_repr)

Default Object string representation method (calls Python repr(this))

Method reprx (l)

PyFunc at classes.py:837 (obj_reprx)

for debug: show Class, and Python value (which may include id?)

Method setclass (this, klass)

PyFunc at classes.py:1066 (obj_setclass)

set Class for `this`!!

Method setprop (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

Method subclass_of (this_class, c)

PyFunc at classes.py:1198 (class_subclass_of)

Return `true` if Class `this_class` is a subclass of Class (or CList of Classes) `c`

Method to_str (this)

Closure at bootstrap.xxl:67:39

Default `to`_str method: calls `this.repr()`.

Method uerror (msg)

PyFunc at xxlobj.py:70 (xxl_uerror)

Member argv

List
['classes']

Member name

Str
'XXLObject'

Member parser_vmx

Str
'parser.vmx'

Unary ! (x)

PyFunc at classes.py:866 (obj_not)

Object unary logical "not" operator; returns `true` if `x` is "falsey" (false, zero, null, or undefined)

Binary != (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary !== (l, r)

PyFunc at classes.py:851 (obj_differ)

Test if `l` and `r` refer to different Objects

Binary ( (this_class, ...args)

PyFunc at classes.py:1188 (class_call)

`(` binop for Class -- fatal error (but common mistake if you have Python fingers) -- tells you to use .new method!!

Binary . (l, r)

PyFunc at classes.py:976 (obj_getprop)

Object getprop method/operator return `r` (String) property of object `l`

Binary .. (this, prop)

PyFunc at classes.py:1046 (obj_get_in_supers)

Object `..` operator; for calling superclass methods Looks for `prop` as property or method of superclasses of `this`; can be used as: `this.as_class(MyClass)..method`.

Binary == (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

Binary === (l, r)

PyFunc at classes.py:844 (obj_ident)

Test if `l` and `r` refer to the same Object

LHS . (l, r, value)

PyFunc at classes.py:883 (obj_setprop)

Object setprop method/operator store `value` as `r` (String) property of object `l`

formatted by doc.xxl on 2023-08-12