Skip to content

Issue with #py data reader tag in macros #1129

Closed
@ikappaki

Description

@ikappaki

Hi,

it appears that #py data reader tag does not work within macros:
No data reader found for tag #basilisp.user/py

To reproduce:

  • Open up the REPL and attempt to create a macro that uses #py, it fails with the above error
basilisp.user=> (defmacro issue [] `(println #py [1 2]))
  exception: <class 'basilisp.lang.reader.SyntaxError'>
    message: No data reader found for tag #basilisp.user/py
       line: 1:38

I would expect the #py tag to work within macros, as I can't see a reason why it shouldn't at the language level.

Workaround is to use the python/* built ins, such as python/tuple.

Thanks

Metadata

Metadata

Assignees

Labels

component:readerIssue pertaining to Basilisp reader moduleissue-type:bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions