stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.86k stars 1.51k forks source link

raw_input not longer available in Python 3.X.X #39

Closed kvillaville closed 7 years ago

kvillaville commented 8 years ago

Hello guys,

Please change raw_input() to input(), since it's not longer available in Python 3.X.X according to the documentation.

Link: https://docs.python.org/3/whatsnew/3.0.html

PEP 3111: raw_input() was renamed to input(). That is, the new input() function reads a line from sys.stdin and returns it with the trailing newline stripped. It raises EOFError if the input is terminated prematurely. To get the old behavior of input(), use eval(input()).

kvillaville commented 8 years ago

I'm going to create a fork and then do the pull request.

ghost commented 8 years ago

Sure, if you're trying to add 2/3 compatibility though you might consider using six.moves.input(). [1]

https://pythonhosted.org/six/