8000 update() doesn't seem to work or I don't get it · Issue #63 · kennknowles/python-jsonpath-rw · GitHub
[go: up one dir, main page]

Skip to content
update() doesn't seem to work or I don't get it #63
Open
@jbasko

Description

@jbasko

Given:

 from jsonpath_rw import parse
 a = parse('$.a')
 x = {'a': None}
 y = {}

Both of these raise NotImplementedError:

 a.update(x, 1)
 a.update(y, 1)

I'm on Python 3.6.6

UPDATE: Ok, so update is not meant to add new keys. Which leaves a.update(x, 1).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0