Message380678
rstrip removes the trailing `e`s.
i = "external_eeeeeeeee_object"
i = i.rstrip('_object')
print(i)
"""
It should have printed `external_eeeeeeeee` but it prints only `external_`.
"""
It happens only when I user rstrip("_object") not for other strings.
# =======================================================
# it works fine in the below case.
i = "external_eeeeeeeee_trail"
i = i.rstrip('_trail')
print(i)
"""
It should have prints `external_eeeeeeeee`
""" |
|
Date |
User |
Action |
Args |
2020-11-10 15:31:08 | Athul-R | set | recipients:
+ Athul-R |
2020-11-10 15:31:08 | Athul-R | set | messageid: <1605022268.82.0.95951478559.issue42313@roundup.psfhosted.org> |
2020-11-10 15:31:08 | Athul-R | link | issue42313 messages |
2020-11-10 15:31:08 | Athul-R | create | |
|