Simple Wrapper for string.translate

Category: Python - Miscellaneous

It seems like every time I want to use string.maketrans and str.translate, I have to stop for a minute and think really hard about how to accomplish what I want to do. Eventually, I wrote this little wrapper class to ease my pain. Date: 05 January, 2012


Text

Homepage: http://code.activestate.com/recipes/303342-simple-wrapper-for-stringtranslate/?in=lang-python

Developer: Chris Perkins

License: Python License

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

A program for creating and playing console-based text adventures that are intended for a competitive environment (such as The Game, Puzzle Hunts, etc.

developer Developer: cranea
license License: BSD License
operating systems Operating System: OS Portable (Source code to work with many OS platforms)


This Fun JavaScript makes your messages dance and wriggle through your webpage.

developer Developer: Peter Gehrig
license License: Freeware
operating systems Operating System: all


Powerful scroller with No need for PHP, Perl, etc.

developer Developer: Raj
license License: Freeware
operating systems Operating System: Platform Independent


SIM card data salvage utility recovers all deleted text messages, phonebook directory information and contact numbers.

developer Developer: Freeware Undelete
license License: GNU General Public License (GPL)
operating systems Operating System: Not Available


A multiuser textbased (via telnet) server application for the card game UNO.

developer Developer: uno-darmstadt
license License: GNU General Public License (GPL)
operating systems Operating System: All POSIX (Linux/BSD/UNIX-like OSes), Linux


An easily modified text based RPG written in C++ created to help teach new programmers how to break apart parts of a game into something creatable.

developer Developer: wrathlands2
license License: GNU General Public License (GPL)
operating systems Operating System: WinXP


Something I wrote when my brothers were twelve to introduce them to programming.

developer Developer: Jonathan Hayward
license License: GNU General Public License (GPL)
operating systems Operating System: Not Available


These are just some simple examples of how you can leverage the operator module to help gain performance with something like map (it works great with sort too).

developer Developer: John Nielsen
license License: Python License
operating systems Operating System: Windows


A script to compare and diff two md5 files.

developer Developer: Stefano Spinucci
license License: Python License
operating systems Operating System: Windows