Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How can i limit length string?
Post: RE: How can i limit length string?

Just replace queue['name'] everywhere with queue['name'][:128] and probably you will be fine. Or even better: try to learn some Python, it is not that difficult **smile**
Jendker General Coding Help 3 14,003 Feb-10-2020, 04:52 PM
    Thread: Memory consumption grows during execution only on single machine
Post: RE: Memory consumption grows during execution only...

Thank you! I will mark thread as solved as soon as I get it sorted out.
Jendker General Coding Help 2 1,868 Feb-10-2020, 01:57 PM
    Thread: How can i limit length string?
Post: RE: How can i limit length string?

variable = queue['name'][:128] will give you a string variable variable which is queue['name'] truncated to 128 first characters. If it is less it will still work fine.
Jendker General Coding Help 3 14,003 Feb-10-2020, 12:11 PM
    Thread: Memory consumption grows during execution only on single machine
Post: Memory consumption grows during execution only on ...

I have a strange problem. I've spent the whole weekend trying to find the root cause of the unrestricted growth of memory consumption of my Python program until it turned out, that it happens only on ...
Jendker General Coding Help 2 1,868 Feb-10-2020, 06:11 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020