{"action":"created","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/2159","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2159/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2159/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2159/events","html_url":"https://github.com/spyder-ide/spyder/issues/2159","id":58000262,"number":2159,"title":"Built-in 'print' statement is displayed as two different colors depending on indentation","user":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/2%E2%80%935%20stars","name":"2–5 stars","color":"fef2c0"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/Editor","name":"Editor","color":"d4c5f9"},{"url":"https://api.github.com/repos/spyder-ide/spyder/labels/imported","name":"imported","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spyder-ide/spyder/milestones/16","html_url":"https://github.com/spyder-ide/spyder/milestones/v2.3.4","labels_url":"https://api.github.com/repos/spyder-ide/spyder/milestones/16/labels","id":983235,"number":16,"title":"v2.3.4","description":null,"creator":{"login":"spyder-issues-migrator","id":11021581,"avatar_url":"https://avatars.githubusercontent.com/u/11021581?v=3","gravatar_id":"","url":"https://api.github.com/users/spyder-issues-migrator","html_url":"https://github.com/spyder-issues-migrator","followers_url":"https://api.github.com/users/spyder-issues-migrator/followers","following_url":"https://api.github.com/users/spyder-issues-migrator/following{/other_user}","gists_url":"https://api.github.com/users/spyder-issues-migrator/gists{/gist_id}","starred_url":"https://api.github.com/users/spyder-issues-migrator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyder-issues-migrator/subscriptions","organizations_url":"https://api.github.com/users/spyder-issues-migrator/orgs","repos_url":"https://api.github.com/users/spyder-issues-migrator/repos","events_url":"https://api.github.com/users/spyder-issues-migrator/events{/privacy}","received_events_url":"https://api.github.com/users/spyder-issues-migrator/received_events","type":"User","site_admin":false},"open_issues":56,"closed_issues":3,"state":"open","created_at":"2015-02-17T17:19:03Z","updated_at":"2015-03-01T17:43:30Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-02-17T23:34:07Z","updated_at":"2015-03-02T22:54:23Z","closed_at":null,"body":"_From [doug.t...@gmail.com](https://code.google.com/u/107157864673511712940/) on 2015-02-05T17:05:42Z_\n\nSummary:\r\nThe built-in 'print' statement is displayed as two different colors (in Spyder/Dark theme: blue, purple) depending on indentation. It appears that the issue is because \"print\" belongs to both keywords.kwlist and dir(__builtins__)\r\n\r\nSpyder Version:  2.3.2\r\nPython Version:  2.7.6\r\nQt Version    :  4.8.4, PyQt4 (API v2) 4.9.6 on Windows\r\nIPython >=0.13  :  1.1.0 (OK)\r\ncoverage >=0.25 :  3.7.1 (OK)\r\nmatplotlib >=1.0:  1.3.1 (OK)\r\npandas >=0.13.1 :  0.14.1 (OK)\r\npep8 >=0.6      :  1.4.6 (OK)\r\npyflakes >=0.5.0:  0.7.3 (OK)\r\npygments >=1.6  :  1.6 (OK)\r\npylint >=0.25   :  1.0.0 (OK)\r\nrope >=0.9.2    :  0.10.2 (OK)\r\nsphinx >=0.6.6  :  1.2 (OK)\r\nsympy >=0.7.0   :  0.7.4.1 (OK)\r\nzmq >=2.1.11    :  14.0.1 (OK)\r\n\r\n\r\nTo Reproduce:\r\n1. In an empty .py file, type 'print' on line 1 and '    print' on line two.\r\n\r\nExpected Output: both words are the same color\r\nActual Output: line 1 is color coded as a \"keyword\" and line 2 is color coded as a \"builtin\".\r\n\r\n\r\nAdditional Info:\r\nI checked all the default themes for the editor - each one has the same issue. I also checked all of the python keywords as given by ``keywords.kwlist`` and built-in functions given by ``dir(__builtins__)``. Only \"print\" has this issue, though other builtins are not colored as such.\r\n\r\nI've attached a file which you can load into Spyder and see for yourself.\r\n\r\n\r\nThe purpose of this issue is to choose a color (builtin or keyword) for \"print\" and use it in all cases. I would prefer it being labeled as a builtin.\n\n**Attachment:** [print_keyword_color_discrepency_example.py](http://code.google.com/p/spyderlib/issues/detail?id=2159)\n\n_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2159_"},"comment":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/comments/76845249","html_url":"https://github.com/spyder-ide/spyder/issues/2159#issuecomment-76845249","issue_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2159","id":76845249,"user":{"login":"goanpeca","id":3627835,"avatar_url":"https://avatars.githubusercontent.com/u/3627835?v=3","gravatar_id":"","url":"https://api.github.com/users/goanpeca","html_url":"https://github.com/goanpeca","followers_url":"https://api.github.com/users/goanpeca/followers","following_url":"https://api.github.com/users/goanpeca/following{/other_user}","gists_url":"https://api.github.com/users/goanpeca/gists{/gist_id}","starred_url":"https://api.github.com/users/goanpeca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goanpeca/subscriptions","organizations_url":"https://api.github.com/users/goanpeca/orgs","repos_url":"https://api.github.com/users/goanpeca/repos","events_url":"https://api.github.com/users/goanpeca/events{/privacy}","received_events_url":"https://api.github.com/users/goanpeca/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T22:54:23Z","updated_at":"2015-03-02T22:54:23Z","body":"Hi @ccordoba12 what do you think we should do in this case?"}}