Jaymon / endpoints

Lightweight REST api backend framework that automatically maps urls to python modules and classes
MIT License
29 stars 10 forks source link

reflection get_val() method #7

Closed Jaymon closed 1 year ago

Jaymon commented 10 years ago

right now, these are unsupported:

na = _ast.Lambda instance
<
    id: 31331216

    __str__:
        <_ast.Lambda object at 0x1de1390>

    Class Variables:
        _fields =
            (
                0: "args",
                1: "body"
            )

    Instance Variables:
        body = <_ast.Call object at 0x1de1450>
        args = <_ast.arguments object at 0x1de13d0>
        lineno = 33
        col_offset = 37
>

and

na = _ast.Call instance
<
    id: 31032272

    __str__:
        <_ast.Call object at 0x1d983d0>

    Class Variables:
        _fields =
            (
                0: "func",
                1: "args",
                2: "keywords",
                3: "starargs",
                4: "kwargs"
            )

    Instance Variables:
        col_offset = 50
        starargs = None
        args =
            [
                0: _ast.Call instance
                <
                    id: 31032400

                    __str__:
                        <_ast.Call object at 0x1d98450>

                    Class Variables:
                        _fields =
                            (
                                0: "func",
                                1: "args",
                                2: "keywords",
                                3: "starargs",
                                4: "kwargs"
                            )

                    Instance Variables:
                        col_offset = 54
                        starargs = None
                        args =
                            [
                                0: <_ast.Num object at 0x1d984d0>,
                                1: <_ast.Num object at 0x1d98510>
                            ]
                        lineno = 26
                        func = <_ast.Name object at 0x1d98490>
                        kwargs = None
                        keywords = []
                >
            ]
        lineno = 26
        func = <_ast.Name object at 0x1d98410>
        kwargs = None
        keywords = []
>
Jaymon commented 1 year ago

I've moved most of the reflection functionality into datatypes and I'm not even sure what this was referring to anymore so I'm just going to close it