[GH-ISSUE #329] Documentation examples use print builtin instead of function which is not python 3 compatible #189

Closed
opened 2026-02-27 23:21:17 +03:00 by kerem · 0 comments
Owner

Originally created by @toabctl on GitHub (Oct 13, 2018).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/329

The documentation (eg. https://github.com/plamere/spotipy/blob/master/docs/index.rst#welcome-to-spotipy). uses the built-in print statement instead of the print() function. This works for python2 but raises a syntax error on python3

print "Usage: %s username" % (sys.argv[0],)
                             ^
SyntaxError: invalid syntax
Originally created by @toabctl on GitHub (Oct 13, 2018). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/329 The documentation (eg. https://github.com/plamere/spotipy/blob/master/docs/index.rst#welcome-to-spotipy). uses the built-in ```print``` statement instead of the ```print()``` function. This works for python2 but raises a syntax error on python3 ``` print "Usage: %s username" % (sys.argv[0],) ^ SyntaxError: invalid syntax ```
kerem closed this issue 2026-02-27 23:21:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#189
No description provided.