{"action":"opened","issue":{"url":"https://api.github.com/repos/spyder-ide/spyder/issues/2474","labels_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2474/labels{/name}","comments_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2474/comments","events_url":"https://api.github.com/repos/spyder-ide/spyder/issues/2474/events","html_url":"https://github.com/spyder-ide/spyder/issues/2474","id":86354814,"number":2474,"title":"String generated by file.readline() gives list options when using tab-complete","user":{"login":"jessimekirk","id":10926338,"avatar_url":"https://avatars.githubusercontent.com/u/10926338?v=3","gravatar_id":"","url":"https://api.github.com/users/jessimekirk","html_url":"https://github.com/jessimekirk","followers_url":"https://api.github.com/users/jessimekirk/followers","following_url":"https://api.github.com/users/jessimekirk/following{/other_user}","gists_url":"https://api.github.com/users/jessimekirk/gists{/gist_id}","starred_url":"https://api.github.com/users/jessimekirk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessimekirk/subscriptions","organizations_url":"https://api.github.com/users/jessimekirk/orgs","repos_url":"https://api.github.com/users/jessimekirk/repos","events_url":"https://api.github.com/users/jessimekirk/events{/privacy}","received_events_url":"https://api.github.com/users/jessimekirk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-08T22:25:07Z","updated_at":"2015-06-08T22:25:07Z","closed_at":null,"body":"## Description\r\n\r\n* *What steps will reproduce the problem?*\r\n1. Open new file in Spyder.\r\n2. Write a line to open a text file: my_file = open(\"path/text.txt\", \"r\")\r\n3. Read first line of file with: first_line = my_file.readline()\r\n4. Search through string methods by: first_line. *hit tab button here* \r\n\r\n* *What is the expected output? What do you see instead?*\r\nA drop-down menu should appear including options such as:\r\ncapitalize\r\ncenter\r\ncount\r\ndecode\r\n...\r\n\r\nInstead the menu shows:\r\nappend\r\ncount\r\nextend\r\nindex\r\n...\r\n\r\n\r\n* *Please provide any additional information below*\r\nBasically, the menu would make it appear as if the variable \"first_line\" is a list instead of a string. Here are a few things that I've tried so far:\r\n\r\n1. I've tested this on three computers; all show the same result. \r\n2. Other strings will still tab complete to their methods properly in the same script.\r\n3. If I run the exact same lines in the IPython console, the tab completes properly.\r\n4. Executing a string method on \"first_line\" (i.e. print first_line.capitalize) from the file runs without producing any errors.\r\n5.  I updated everthing via \"conda update conda\" and \"conda update anaconda\".\r\n6. The image I've attached shows the menu when produced from a file, and when produced from the IPython console (top and bottom respectively).\r\n\r\n![error](https://cloud.githubusercontent.com/assets/10926338/8046659/c99ebf6a-0e0a-11e5-85fa-55ef76055a66.png)\r\n\r\n\r\n## Version and main components\r\n\r\n* Spyder Version:  2.3.4\r\n* Python Version:  2.7.8\r\n* Qt Version    :  4.8.6, PyQt4 (API v2) 4.10.4 on Windows\r\n\r\n## Optional dependencies\r\n\r\npyflakes >=0.5.0:  0.8.1 (OK)\r\npep8 >=0.6      :  1.6.2 (OK)\r\nIPython >=1.0   :  3.0.0 (OK)\r\nzmq >=2.1.11    :  14.5.0 (OK)\r\npygments >=1.6  :  2.0.2 (OK)\r\npandas >=0.13.1 :  0.15.2 (OK)\r\nsphinx >=0.6.6  :  1.2.3 (OK)\r\nrope >=0.9.2    :  0.9.4 (OK)\r\njedi >=0.8.1    :  0.8.1 (OK)\r\nmatplotlib >=1.0:  1.4.3 (OK)\r\nsympy >=0.7.3   :  0.7.6 (OK)\r\npylint >=0.25   :  None (NOK)\r\n"}}