repr() , I've not seen that before
Thanks that's great....
User Profile
Collapse
-
How to print raw string data from a variable
Could someone (anyone) give me a clue how to display all characters stored in a string variable.
For example, if I have a text file containing '1\n2\n3\n'
I read it in with A=file.read()
Now I would like python to print A as 1\n2\n3\n and not
1
2
3
Do I have to convert A to a raw string, or does it already contain raw data that is then processed by the print statement?... -
Brilliant! I followed your previous advise on counting the number of times timer tries to read an empty queue. After a bit of tweaking my code works so much better.
Thanks...Leave a comment:
-
That's interesting, I hate the idea of wasting resources, BUT the data from the server is 'arratic' at best. Sometimes 20secs between lines then 50 lines arrive together.
Thanks for the tips, I'll have to experiment a bit more....Leave a comment:
-
Get data from a Queue to a wxtextcontrol
Hello, from linux I have created an interactive telnet session with a chess server.
With a combination of the threading, pexpect and Queue modules I put all recieved data into a queue.
The only way I can think of getting the data from the queue to a
wxtextcontrol is to have a wx.timer (set to a short interval) keep inspecting the queue.
This method seems to work OK, but I am wondering if there... -
No activity results to display
Show More
Leave a comment: