Decorate an output stream with print-lik

Category: Python - Education

This code shows how to "decorate" objects with new functions, in this case any stream with two methods that work similar to the built-in "print" statement. Date: 03 April, 2012


Output Stream Decoration - Print Methods - Object Oriented Programming - Output - Stream - Decoration

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This code shows how to "decorate" objects with new functions, in this case any stream with two methods that work similar to the built-in "print" statement.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


This tutorial covers how to get most out of the Object Oriented Programming Conecpts using C++ Language.

developer Developer: mycplus.com
license License: Freeware
operating systems Operating System: All


Sunframework is based on PHP5 (OOP,MVC) and is designed to be fast and simple.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


This handler manages a chain of registered callback functions.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Proxies can be useful at times but may not be simple to create and run.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script presents the implemetation of eiffel like methods (methods with preconditions and postconditions).

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


It was designed to be a powerful scripting language for small applications like games, due to its small size, reduced memory bandwidth and little real-time requirements.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


Random Password Generation script is a code snippet to generate an 8 character alphanumeric password.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script brings a Ruby-like class behavior.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All