You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the issue?
The shown Python 2 code is outdated and gives instant errors if you try to run it in Python 3 (which is out since 2008, so definitely the today's standard):
Can you propose a solution?
To just make it work again it would be
importjson,http.client# new importconnection=http.client.HTTPSConnection('YOUR.PARSE-SERVER.HERE', 443) # using new importconnection.connect()
connection.request('GET', '/parse/classes/GameScore', '', {
"X-Parse-Application-Id": "${APPLICATION_ID}",
"X-Parse-REST-API-Key": "${REST_API_KEY}"
})
result=json.loads(connection.getresponse().read())
print(result) # changed print syntax
Do we want to renew all the Python examples step by step to have modern examples you can directly use without errors and Googling what to change to make everything work again???
I'm interested in doing this if you say we want this to be done.
Activity
mtrezza commentedon Aug 6, 2022
I'd say that would be preferred. Is there a reason why it wouldn't be?
cyb3rko commentedon Aug 6, 2022
Alright. I don't think there's a reason not to do so.
mtrezza commentedon Aug 6, 2022
Got it. In that case it would be fantastic if you wanted to take this on.