gpython icon indicating copy to clipboard operation
gpython copied to clipboard

`str` is missing `join`, `upper` and `lower` attributes

Open dankox opened this issue 1 year ago • 1 comments

Builtin string type doesn't support join, upper and lower functions/attributes.

# fails with missing attribute
",".join(list) 
"hello world".upper()
"HELLo".lower()
  • [ ] str.join
  • [x] str.upper
  • [x] str.lower

dankox avatar Feb 12 '24 10:02 dankox

based on the changes from https://github.com/go-python/gpython/pull/188 it should be relatively easy to implement upper and lower (assuming the strings.ToUpper and strings.ToLower stdlib functions achieve what str.upper and str.lower are expected to do).

do you want to give it a try ?

sbinet avatar Feb 12 '24 13:02 sbinet