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
Uber App Clone 1.0
TeeChart NET for Xamarin.Forms 2017
JavaScript Framework Shield UI 1.7.33
SentiVeillance SDK Trial 6.0.171442
Instacart Clone 1.0
Dynamic Product Options for Magento 2 2.3.0
AnyChart JS Charts and Dashboards 8.0.0
Key Transformation 8.1131
AnyGantt JS Gantt Charts 8.0.0
Hex Comparison 5.12
SecureBridge 8.1
Hotelline PMS 1.0
TeeBI for RAD Studio Suite 2017
AnyStock Stock and Financial JS Charts 8.0.0
Entrepreneur News Portal 1.0.2
Top Code
Portfolio Optimizer Tool 1.0
MLM Software ONE 1.5.46
Uber App Clone 1.0
Using MATLAB to Develop Portfolio Optimization Models 1.0
Image Edge Detection Using Ant Colony Optimization 1.0
VintaSoft Twain .NET SDK 10.2.0.1
Vincenty,Angle,Latitude,Longitude class 1.0.3
MMORPG Creator 1.0
Remez Algorithm 1.0
The BEST TIC-TAC-TOE 1.1
mouse simulation 1.0
Windows Animation Example 1.1
Hotel Management - Full Board Version 6.55
TWAIN Toolkit for Delphi 6 2.0
Stop and Wait ARQ with CRC 4 1.0
Top Rated
Jango Clone Script 1.0
Get Random Record Based on Weight 1.0.0
Travel Portal Script 9.29
Magento Product Designer 1.0
OFOS - Just Eat Clone Script 1.0
PrestaShop Upload Images Module 1.2.1
Trading Software 1.2.4
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
Sine Wave Using JavaFX 1.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
Creating a Local dict __
File ID: 65712






Creating a Local dict __
Download Creating a Local dict __http://code.activestate.com/recipes/303800-creating-a-local-__dict__/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 1
Submit Rating:
Creating a Local dict __ Description
Description: Accessing the local namespace dict is already done by calling the builtin method locals(). However, the limitation of doing this is that modifying the dict returned by locals() is not considered 'safe'. Safe in the sense that any modifications are not guaranteed to be reflected in the actual namespace.

In order to implement a 'safe' reference and modification of the local dictionary, I use sys._getframe().f_locals. This gives me direct access to the local dict each time I use it. But beyond just having safe access to the local dict, I also would like a local __dict__ dict that acts exactly the way a class __dict__ would. Currently, there is not a local __dict__ available. So here is a way to create your own:

License: Freeware

Related: Shortcuts

O/S:Windows

Downloads: 1



More Similar Code

An Overview in Creating a COM ActiveX DLL for Use with ASP Scripts is an article which specially concentrates on steps involved in generating ActiveX Dll component with the help of VB. This article offers procedure to create functions of ActiveX DLL and the method to call these functions from the ASP pages.



Creating a Component using Visual C++ to Manipulate Virtual Directories is an article which tells about building of server component using Visual C++ inorder to access ADSI and to control IIS. Here author also describes about applying server...



Creating a Custom ADO.NET DataAdapter is a web based tutorial in which the programmers can learn about the process of generating ADO.NET data adapter by using dataAdapter objects. The author gives details about OleDbCommand object and the method...



Creating a custom DataGrid delete button is a tutorial which helps in deleting the data of the datagrid control using the delete button created on the HTML page. This tutorial clearly explains the procedure with sample code which will be useful...



Creating a Custom DataGridColumn Class is a tutorial which is useful for the .NET programmers to know how to build template and bound columns in a datagrid control. You can easily control the length of the column using template and bound column of...



Creating a Data Access Layer in .NET -Part 1 is an article that describes you about how to create a Data Access Layer (DAL) in ADO.NET using the latest whiz-bang tools in Visual Studio. In this article the author also discusses about various...



Creating a Data Access Layer in .NET -Part 2 is an article through which you can know about the Data Handler classes that has Connection, Command and DataAdapter objects. This article also gives you a brief explanation about configuring the...



Creating a Database-Driven Login Page is an ASP article in which author discusses about how to generate an authentication system using password protection to the users website by using database-driven codes that the author offers for the users....



Creating a File Explorer is an ASP article briefing on the classes and functions of ASP. You will come to know the procedures and techniques involved in generating a simple file browser through the ASP codes. The author has explained the above...



Creating a File-Upload User Control with ASP.NET is a web based tutorial that deals with generating a user control for file uploading with the help of ASP.NET application. The author discusses about creating MIME upload form which helps in...

User Review for Creating a Local dict
- required fields
     

Please enter text on the image