skip to navigation
skip to content

Not Logged In

strings 0.1.2

Python strings for humans.

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.

 
File Type Py Version Uploaded on Size
strings-0.1.2.tar.gz (md5) Source 2013-07-11 2KB
  • Downloads (All Versions):
  • 4 downloads in the last day
  • 65 downloads in the last week
  • 290 downloads in the last month