nimpy icon indicating copy to clipboard operation
nimpy copied to clipboard

Allow exporting constants

Open Keithcat1 opened this issue 5 years ago • 1 comments

Hi, The following code: import nimpy const x {.exportpy.}=0

Doesn't compile. Could you add support for this? Thanks

Keithcat1 avatar Apr 08 '20 20:04 Keithcat1

This would be great for defining a version number in Nim and then getting to it from Python, which is my use case.

Benjamin-Lee avatar May 26 '20 11:05 Benjamin-Lee