lihaoyi / macropy

Macros in Python: quasiquotes, case classes, LINQ and more!
3.28k stars 178 forks source link

macropy doesn't seem to work in python 2.7.12 #77

Closed HuStmpHrrr closed 6 years ago

HuStmpHrrr commented 7 years ago
In [2]: from macropy.case_classes import macros, case

In [3]: @case
   ...: class Point(x, y): pass
   ...:
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-3-24790b7cee0d> in <module>()
      1 @case
----> 2 class Point(x, y): pass

NameError: name 'x' is not defined

It's also true with source code.

ariwaranosai commented 7 years ago

did you import macropy.console?

azazel75 commented 6 years ago

I'm closing this because Py2.7 is not supported anymore and the issue seems just a missing import of macropy.console