Skip to content

StringMethods should have the same methods as standard str #9111

Closed
@sinhrks

Description

@sinhrks

Should StringMethods be compatible with standard str, or have only useful methods? Sometimes I have to adjust text formats before converting other types, and I've chosen additionals which makes formatting / adjustments easier. Any ideas?

NOTE For python 2.x, once convert target to unicode internally then call the func.

Which may not be very userful:

  • expandtabs
  • splitlines

I think there is an option to implement these to say "support the same methods as standard str".

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignStringsString extension data type and string data

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions