What is the maximum number of characters that can be stored in a string variable in Python? I need to assign the whole configuration of a router to a variable, but the configuration is huge. Is any other type of variable I can use? This is part of my code:
self.output = self.channel.recv(64512)
while self.channel.recv_ready():
time.sleep(1)
print("Waiting for channel ready",count)
self.output += self.channel.recv(64512)
count -= 1
if count == 0:
break
This code receive info from the router and stores it in self.output variable. After exactly received the same amount of info, this code arrises and Exception. Help please. Thank you. Osmany