Python strings for humans.
Project description
Python strings for humans.
Usage:
>>> from strings import string
>>> s = string("Hello, World")
>>> s
'Hello, World'
>>> s.len()
12
>>> s.length
12
>>> s.size
12
>>> s + ", What?"
Traceback (most recent call last):
File "strings.py", line 27, in <module>
x = s.add(", world")
File "strings.py", line 20, in add
return self + string(value)
File "strings.py", line 23, in __add__
raise NotImplementedError("Use add instead")
NotImplementedError: Use add instead
>>> s.add(", What?")
'Hello, World, What?'
Background
Inspired by an April Fool’s Day joke.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
strings-0.1.1.tar.gz
(2.2 kB
view details)
File details
Details for the file strings-0.1.1.tar.gz
.
File metadata
- Download URL: strings-0.1.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbb79cb4aaee367f1ccd7c942c7b3929e80fe19d48648e654b0217083ae348cc |
|
MD5 | 0ca73f4ffdf2b79c54a4d68fcb75563e |
|
BLAKE2b-256 | 9cc7032ed62ca1a4b2cb299c9538d3edb4f5e7e3390dbf6b8b287c1d6534fb5c |