Skip to main content

Python strings for humans.

Project description

Python strings for humans.


>>> from strings import string
>>> s = string("Hello, World")
>>> s
'Hello, World'
>>> s.len()
>>> s.length
>>> s.size
>>> s + ", What?"
Traceback (most recent call last):
  File "", line 27, in <module>
    x = s.add(", world")
  File "", line 20, in add
    return self + string(value)
  File "", line 23, in __add__
    raise NotImplementedError("Use add instead")
NotImplementedError: Use add instead
>>> s.add(", What?")
'Hello, World, What?'


Inspired by an April Fool’s Day joke.

Project details

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page