3 Mar 17:40
paste frustrations
Robin <robince <at> gmail.com>
2009-03-03 16:40:21 GMT
2009-03-03 16:40:21 GMT
Hi, I have some data that was generated as a list of tuples which i thought it would be easy to copy and paste between sessions. However I have come completely unstuck and am having a lot of trouble pasting it into both Ipython and the normal python prompt. The data I would like to paste are at http://www.robince.net/robince/data.txt Initially there was a leading space (how the list was displayed by default in ipython) which I removed since I was getting indentation errors. (although I thought it was a principle that it should be possible to copy and paste objects like lists without such manual intervention). I can paste different sections OK, but when I try and paste the whole lot I get errors like this: ------------------------------------------------------------ File "<ipython console>", line 33 (5.898507409(5.898507409(5.898507409(5.898507409(5.898507409(5.898507409193459628247, 11.799637880699656, 0.51856981446673678)] ^ SyntaxError: invalid syntax This is driving me absolutely batty - I have quite a few sets like this I was planning to paste in - I'd appreciate any pointers on how to load this text data into an ipython variable.(Continue reading)
)
RSS Feed