Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
.Net Runtime Library for Delphi 6.0.4.0
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
AnyChart JS Charts and Dashboards 8.4.2
OrgChart JS 3.8.0
dbForge Compare Bundle for MySQL 8.1
dbForge Search for SQL Server 2.3
Database Workbench Pro 5.5.0
Luxand FaceSDK 7.0
SSIS Data Flow Components 1.10
Entity Developer Professional 6.3
dbForge Index Manager for SQL Server 1.9
dbForge Data Generator For MySQL 2.2
Magento Australia Post eParcel Extension 1.0
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
PHP MLM Software 2.0.1
Faculty Evaluation System 1.1
Database Workbench Pro 5.5.0
Sportsbook software by BOOKIE Software 3.01
School Management Script 1.0.4
Image retrieval - Query by Example Demo 1.0
Shopping System for Shopping Carts 1.1
Billing System 1.0.1
SCHOOL MANAGEMENT SOFTWARE 1.2
WordStat 2.0
Real Time Changing Clock v1.0
GnuWin64 64
Skeletonz 1.0b
dbForge Fusion for SQL Server 1.8
Top Rated
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
Curious Recursive Decorator Pattern 
File ID: 65092






Curious Recursive Decorator Pattern 
Download Curious Recursive Decorator Pattern http://code.activestate.com/recipes/576758-curious-recursive-decorator-pattern/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 0
Submit Rating:
Curious Recursive Decorator Pattern  Description
Description: There are no ABCs for ordering operations.
This is because the recursive class difinition like:

class Derived(XXX(Derived)):

is invalid syntax. This recipe implements an ABC ordering class with using decorator.

License: Freeware

Related: decorator, Oop

O/S:Windows

Downloads: 0



More Similar Code

Decorator for use with objects following the state pattern.



A new tail recursion decorator that eliminates tail calls for recursive functions is introduced.



This recipe is a simple solution for turning a recursive function into a non-recursive function.



Decorator makes function currying as long as there are more correct arguments to take and fires it as soon as there is enough to call, also checks arguments up front for errors.



The Singleton design pattern (DP) has a catchy name, but the wrong focus -- on identity rather than on state. The Borg design pattern has all instances share state instead, and Python makes it, literally, a snap.



A decorator to deprecate a function and provide a new one as replacement.



A simple decorator that helps define abstract methods: when such a method is called, an appropriate exception is raised.



Please note that the present is a fork of the recipe 577283 "Decorator to expose local variables of a function after execution" of Pietro Berkes, available at...



An example Maybe pattern implementation for Python.



The recipe presents a function overloading decorator in python that do type check. The type signature is marked with the @takes and @returns decorator, which causes the function to raise an InputParameterError exception if called with...

User Review for Curious Recursive Decorator Pattern
- required fields
     

Please enter text on the image