Python string.strip() optional arguments not implemented
See original GitHub issuePython
foo = 'foocba'
print(foo.strip('abc'))
foo Generated javascript prints foocba
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Strip in Python: An Overview on Strip() Function with Examples
Strip() method in string accepts only one parameter which is optional and has characters. If the specified character is available at the ...
Read more >Python strip() – How to Trim a String or Line - freeCodeCamp
The .strip() method takes optional characters passed as arguments. The characters you add as arguments specify what characters you would like to ...
Read more >Built-in Types — Python 3.11.1 documentation
The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, ...
Read more >Built-in Exceptions — Python 3.11.1 documentation
If str() is called on an instance of this class, the representation of the argument(s) to the instance are returned, or the empty...
Read more >argparse — Parser for command-line options, arguments and ...
In a script, parse_args() will typically be called with no arguments, ... usage - The string describing the program usage (default: generated from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The following works for my immediate problem but it makes my skin crawl a little.
@fzzylogic Good point! I think there are a couple of meta-issues here so I’m going to submit those separately to promote wider discussion.