8000 Unable to add string values to RecordTrie · Issue #79 · pytries/marisa-trie · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unable to add string values to RecordTrie #79
Open
@joshhu

Description

@joshhu

The code is in the following

keys = [u'1', u'12', u'13', u'123', u'132', u'1234']
vals = [u'a', u'b', u'c', u'd', u'e', u'f']
fmt = "s"
trie = marisa_trie.RecordTrie("s", zip(keys, map(vals, str.encode)))

But I still get

TypeError: 'method_descriptor' object is not iterable

Anyone can help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0