Feb-10-2020, 12:11 PM
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.
How can i limit length string?
|
|
Messages In This Thread |
How can i limit length string? - by perrfect - Feb-10-2020, 12:05 PM
RE: How can i limit length string? - by Jendker - Feb-10-2020, 12:11 PM
RE: How can i limit length string? - by perrfect - Feb-10-2020, 02:34 PM
RE: How can i limit length string? - by Jendker - Feb-10-2020, 04:52 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
python gives wrong string length and wrong character | thienson30 | 2 | 3,004 |
Oct-15-2019, 08:54 PM Last Post: Gribouillis |
|
Highlight/Underline a string | ValueError: zero length field name in format | searching1 | 1 | 3,025 |
Jul-01-2019, 03:06 AM Last Post: metulburr |
|
calculating length of string | desul | 12 | 8,703 |
May-22-2019, 10:50 AM Last Post: ankit |
|
Python - Limit Sentence Length to 10 Words - Text file | dj99 | 2 | 5,201 |
Jul-21-2018, 02:24 PM Last Post: dj99 |
|
Python find the minimum length of string to differentiate dictionary items | zydjohn | 3 | 3,627 |
Mar-03-2018, 05:23 PM Last Post: Gribouillis |
|
Get string length | RedSkeleton007 | 3 | 4,610 |
Dec-04-2017, 03:19 PM Last Post: DeaD_EyE |