john-science / slowloris

A DIY-LISP.
5 stars 3 forks source link

Upgrade to Python 3 #50

Open john-science opened 6 years ago

john-science commented 6 years ago

Death to Python 2, long live Python 3! Etcetera.

Really, the language should support Python 3.3 and newer.

john-science commented 5 years ago

Bump. This should be done soon. Python 2.7 is really out of date.

john-science commented 5 years ago

I just tried a naive version bump and it died hard.

The major issue being that the Python standard library ast has changed a TON between Python 2 and 3. In particular, the new version of ast no longer has functions like: is_boolean or is_list.

How does Python handle the AST without these now? What's the new approach? Or can we just re-implement those functions ourself?

marqov commented 5 years ago

Hi again ! I have tried to run the tests on virtualenv with python3.5 ! I have got some errors and I think it is problem of paths and importation of modules ?

john-science commented 5 years ago

That seems possible. I originally wrote this for Python 2.6, not 3.x.

What are the errors? Or I can try to run them myself.