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
Spire.PDF for Java 2.7.8
Database Workbench Pro 5.6.10.0
The C# PDF Library 2020.1.5
CAD-Viewer 3DVBVIEW V4
dotConnect for SQLite 5.15
LuaStudio 9.92
EntityDAC 2.3
Devart ODBC Driver for QuickBooks 2.0
phpEnter 5.1.
Udemy Clone script 2.01
VisualNEO Web 19.11.7
VisualNEO for Windows 19.4.29.0
SentiVeillance SDK Trial 7.3
Devart ODBC Driver for PostgreSQL 3.2
SecureBridge 9.2
Top Code
SecureBridge 8.0
dotConnect for SQLite 5.9
Database Workbench Pro 5.6.10.0
EntityDAC 1.6
ATN Site Builder 3.0
ATN Resume Finder 2.0
PHP Review Script 1.0
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
The C# PDF Library 1.0
Active Dhtml Drop Down Menu In Java Script 2.I
A beginner's guide to threading in C#
Ping Pong Game Code Script 1.1
Creating and Using Custom Attributes in C#
Py Tic Tac Toe
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
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
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
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