Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install say

How to install say

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install say
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.504
1.0.5Never BuiltWhy not?
0.504 Available View build log
0.115 Available View build log
Windows (64-bit)
Mac OS X (10.5+)
0.504
1.0.5Never BuiltWhy not?
0.504 Available View build log
0.115 Available View build log
0.833
1.0.5Never BuiltWhy not?
0.833 Available View build log
0.828 Available View build log
0.513 Available View build log
0.504 Available View build log
Linux (32-bit)
0.833
1.0.5Never BuiltWhy not?
0.833 Available View build log
0.828 Available View build log
0.513 Available View build log
0.504 Available View build log
0.189 Available View build log
0.115 Available View build log
0.107 Available View build log
0.833
1.0.5Never BuiltWhy not?
0.833 Available View build log
0.828 Available View build log
0.513 Available View build log
0.504 Available View build log
Linux (64-bit)
1.0.5 Available View build log
0.833 Available View build log
0.828 Available View build log
0.513 Available View build log
0.504 Available View build log
0.189 Available View build log
0.115 Available View build log
0.107 Available View build log
0.833
1.0.5Never BuiltWhy not?
0.833 Available View build log
0.828 Available View build log
0.513 Available View build log
0.504 Available View build log
1.0.5 Available View build log
 
Depended by
Imports
Lastest release
version 1.0.5 on Sep 20th, 2013

print, format, and %, evolved.

Q: It's been forty years since C introduced printf() and the basic formatted printing of positional parameters. Isn't it time for an upgrade?

A: Yes! ZOMG, yes!

https://pypip.in/d/say/badge.png

say supplements or replaces Python's print statement/function, format function/method, and % string interpolation operator with simpler, higher-level facilities. For example:

from say import say

x = 12
nums = list(range(4))

say("There are {x} things.")
say("Nums has {len(nums)} items: {nums}")

yields:

There are 12 things.
Nums has 4 items: [0, 1, 2, 3]

At this level, say is basically a simpler, nicer recasting of:

from __future__ import print_function

print("There are {0} things.".format(x))
print("Nums has {0} items: {1}".format(len(nums), nums))

The more items being printed, and the more complicated the format invocation, the more valuable this simple inline specification becomes.

Beyond DRY, Pythonic templates that piggyback the Python's well-proven format() method, syntax, and underlying engine, say's virtues include:

  • A single output mechanism identical and compatible across Python 2.x and Python 3.x.
  • A companion fmt() object for string formatting.
  • Higher-order line formatting such as indentation and wrapping built in.
  • Convenient methods for common formatting items such as titles, horizontal separators, and vertical whitespace.
  • Super-duper template/text aggregator objects for easily building, reading, and writing multi-line texts.

Take it for a test drive today! See also the full documentation at Read the Docs.

Subscribe to package updates

Last updated Sep 20th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.