No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
Hello Having trouble reading in some 8-bit data (not text) from serial port using pyserial module. Am storing the data in a string buffer as it comes in, that's working fine. Problem is that I'm printing the buffer out to the terminal screen, after a wee bit of data (30~200 … | |
Re: To answer your second question, try it out yourself in IDLE, what a quick for loop that creates a list and adds 1000 lines of some random sentence. TIP: It works :-) Your first question, sure I don't see anything that can't be done there. Just write the txt file … | |
Re: That error has nothing to do with the mechanize lib It simply means what ever you are trying to remove from the list (func) is not in the list, so it can't remove it. Try putting print self.bindedfuncs[triplet[2]][triplet[0]], func So you can see what the contents are | |
As part of a program I'm making, I have a class, and have 5 different instances of this class declared globally for accessing by anywhere else in the program. The class has a list associated with it, that should be different for each of the 5 instances of the classes. … | |
Hello I made a program that submits a paragraph to a webpage, using mechanize. Its all working great, except when I view the paragraph, all the newlines have disappeared and it makes all the paragraphs all block up together into one long sentence. But when I open up the page … | |
Is there any problem with manipulating very long strings? When I say long, I'm meaning like over 100,000 characters long. I'm using examplelongString = data.readline() to get it from an html file. I then use examplelongString .find('text to find') to search for stuff. I've been trying to do it, it … | |
I have a class, and create 4 instances of this class as per below: [code=PYTHON]class AuctionList: def __init__(self): self.Clear_Auction_List() # Data auctionList = [] #Functions .... [/code] [code=PYTHON]currentAuctionList = AuctionList() previousCurrentAuctionList = AuctionList() finishedAuctionList = AuctionList() successfulAuctionList = AuctionList()[/code] The class has a list variable and a few functions to … |
The End.