Skip to content

inconsistent keywordization of keys containing slashes with py->lisp #1156

Closed
@ikappaki

Description

@ikappaki

Hi,

It appears that keyword in maps containing slashes created from python dictionaries with py->lisp suffer from the same issue fixed for plain keywords in #1131. They do not compare equal with their corresponding keyword, even though their key representation match.

To reproduce, convert a python dictionary with a key containing a slash to a Basilisp map, and compare its key with its corresponding keyword, it compares false although both keywords string representation is the same.

basilisp.user=> (def issue (py->lisp #py {"abc/xyz" 5}))
#'basilisp.user/issue

basilisp.user=> (first (keys issue))
:abc/xyz

basilisp.user=> (= (first (keys issue)) :abc/xyz)
false

basilisp.user=> (name (first (keys issue)))
"abc/xyz"

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions