Skip to content

make good __repr__, __str__ and tokenize methods to core and protocol #4

Description

@Zewsic

let make an example sfs object:

{
"num": Int(12),
"obj": {
  "what": Bool(false)
 }
}

repr

get a object in debug-mode
<SFSObject(2) at 0xXXXXXXX>

str

render object value fully

(int) num: 12
(sfs_object) obj: 
    (bool) what: false

tokenize

get only object structure

{
 "num": "int",
 "obj": {
  "what": bool
 }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions