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
Betting system 6.x-1.x-dev
Java-2-Pseudo 1.0
Library Management System 1.0
Russian Roulette
soccerbet 1.0
Cuckoo Search (CS) Algorithm 1.0
JEDI Database Desktop 27012002
JAC (Java Asn.1 Compiler) 3.0
CONTRAST CONTROLLER 1.0
ActivePerl 5.8.4.810/5.6.1.638
Analog Clock from Jay 1.0
shopping mall management system 1.0
Stepping stone algorithum for solving the transhipment problem
Equipment Rental Script 1.0
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
Decorator to expose local variables of a function after execution [alternative implementation] 
File ID: 64674






Decorator to expose local variables of a function after execution [alternative implementation] 
Download Decorator to expose local variables of a function after execution [alternative implementation] http://code.activestate.com/recipes/577295-decorator-to-expose-local-variables-of-a-function-/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 3
Submit Rating:
Decorator to expose local variables of a function after execution [alternative implementation]  Description
Description: 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 http://code.activestate.com/recipes/577283-decorator-to-expose-local-variables-of-a-function-/ , and aiming only to report the alternative implementation "persistent_locals2", whose I'm co-author with Pietro Berkes, and which was submitted together to the original recipe. Refer to the latter for an exhaustive description and discussion.

License: Freeware

Related: decorator, Function, inner, Local, scope, variables

O/S:Windows

Downloads: 3



More Similar Code

Use a function decorator to tell when and how a function should be
logged. All kinds of things can be logged automatically, including the
function arguments and (theoretically) even the stack.



This is a decorator for doing the profiling of a function.



One can (ab)use this decorator to get the effect of a Lisp-like with_open_file block in Python. Kind of. Requires Python 2.4.



How to obtain the name of a method or a function from within
the running method/function.

Acknowledgement: the solution to this problem is given by
Christian Tismer (tismer@tismer.com; Mission Impossible 5oftware)



Computes the nth moment mean of a function (needs more implentation).

m = moment(x, y, n)

m = nth moment of y
x = domain
y = data
n = nth moment == 1 by default

m = int(x^n * y) / int(y)



This function solves the "forward geodesic problem," which is to compute the endpoint of a geodesic (shortest-distance) path on the ellipsoidal earth, given the start point, a path length, and a starting azimuth.

In response...



This makes it possible to expose the settings of a view to users through different displays.

Installation:

Unpack in your modules folder (usually '/sites/all/modules/')
Enable under Administer > Site Building >...



While I have seen many permutation recipes on this site, there seems to be no recipe yet which shows how to generate the permutations of a "bag". A bag is like a set but can contain elements more than once.



I decided not to customize the xml-parser to fit the structure of a xml-document, but to make a parser that adapts the structure of the document. By converting the xml-document in this way, the access to the elements is simple and...



You want to replace that portion of a string at a given position.

User Review for Decorator to expose local variables of a function after execution [alternative implementation]
- required fields
     

Please enter text on the image