Show HN: First Crack, a simple static blog engine in Python
1–10 of 14 posts
Re: Show HN: First Crack, a simple static blog engine in Python
#2Re: Show HN: First Crack, a simple static blog engine in Python
#37 months until PY2 goes EOL...
Re: Show HN: First Crack, a simple static blog engine in Python
#4No example images or demo site?
Re: Show HN: First Crack, a simple static blog engine in Python
#5Re: Show HN: First Crack, a simple static blog engine in Python
#6Re: Show HN: First Crack, a simple static blog engine in Python
#7Re: Show HN: First Crack, a simple static blog engine in Python
#8That's music to my ears!
Re: Show HN: First Crack, a simple static blog engine in Python
#9All you need to do to make this work with Python 3 is change your print statements (add parentheses) and change raw_input to input, as far as I can tell running it in python 3 locally. It seems to work perfectly with these ~20 seconds of changes.
Ed: i think that should be:
from builtins import input
from __future__ import print_function
Re: Show HN: First Crack, a simple static blog engine in Python
#10All you need to do to make this work with Python 3 is change your print statements (add parentheses) and change raw_input to input, as far as I can tell running it in python 3 locally. It seems to work perfectly with these ~20 seconds of changes.
Sounds like 2to3 should be able to magically fix it? I suppose adding "from future import print" and similar for input would keep it working for python2 too? Ed: i think that should be: from builtins import input from __future__ import print_function