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
Inventory Manager For Dynamics CRM 4.0
Dockit Migrator for SharePoint 11.8.6905
Australia Post Shipping For Magento 2 1.0.0
StarTrack Shipping For Magento 2 2.0.0
Mydala script 1.3
dotConnect for FreshBooks 1.8
Odoo Kingfisher Theme 1.0
Bitcoin Mining Software - Bitcoin Mining Script 1.0.2
Excel Add-in for Magento 1.7
Excel Add-in for MailChimp 1.7
Devart Excel Add-in for QuickBooks 1.7
Excel Add-in for PostgreSQL 1.7
Devart Excel Add-in for MySQL 1.7
Devart Excel Add-in for NetSuite 1.7
Excel Add-in for Salesforce 1.7
Top Code
ATN Site Builder 3.0
ATN Resume Finder 2.0
Excel Add-in for PostgreSQL 1.1
Excel Add-in for Salesforce 1.1
Invoice Manager by PHPJabbers 3.0
Aglowsoft SQL Query Tools 8.2
Classified Ad Lister 1.0
Solid File System OS edition 5.1
ADO.NET Provider for ExactTarget 1.0
Excel Add-in for MailChimp 1.1
PHP Review Script 1.0
ICPennyBid Penny Auction Script 4.0
Deals and Discounts Website Script 1.0.2
dotConnect for FreshBooks 1.8
Devart Excel Add-in for MySQL 1.7
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 for BindingConstants at compile time 
File ID: 64995






Decorator for BindingConstants at compile time 
Download Decorator for BindingConstants at compile time http://code.activestate.com/recipes/577024-yet-another-enum-for-python/?in=lang-pythonReport Error Link
License: Freeware
Downloads: 5
Submit Rating:
Decorator for BindingConstants at compile time  Description
Description: Decorator for automatic code optimization. If a global is known at compile time, replace it with a constant. Fold tuples of constants into a single constant. Fold constant attribute lookups into a single constant.

This is only an update of Recipe 277940, making it compatible with Python 3. All credit must go to the original author, Raymond Hettinger.

License: Freeware

Related: Optimisation, Optimization, Programs

O/S:Windows

Downloads: 5



More Similar Code

This code converts variables which is made with upper-leters only, into
constants at compile time, if it is possible to be replaced. and generate
.pyc file.

This recipe pay attensions to the compile time evaluation,
the feature of Constants.



QJ-Pro is a sophisticated code quality assessment and coding standards technology for Java development detecting potential software defects at compile time. It offers the ability to significantly reduce code review effort by automating a major...



LLVM supports effective optimization at compile time, link-time (particularly interprocedural), run-time and offline (i.e., after software is installed), while remaining transparent to developers and maintaining compatibility with existing build...



UIEForum is not available for download at this time.



c2xmc, the C-to-any language Macro Converter, is a tool that helps to keep documentation in sync with optional program features selected at compile time via C preprocessor macros.



The Logging Framework supports stream-like usability, extensibility, portability, type-safety, allows enabling/disabling certain parts or fully at compile time and dependent on the configuration also at runtime and avoids macro-related pitfalls.



Session Java is an extention over Java which provides functionality to allow the typechecking of sessions at compile time. The sessions are defined using the Web Service Description Language (WSDL) and are modelled on sessions in Pi Calculus.



Cool consists of (a) a polymorphic object model written in C that checks the type of all objects at compile time (b) a container library implementing basic data structures like lists and strings and (c) an optional C preprocessor with a Java-like...



Although python has no literal representation for compiled
regular expressions (which is good) you can compile them
at Python read/compile-time. You can also use regexs to
match strings and automatically call funtions with...



whoaminow() can be used inside a function to determine, at the time it is called, the name under which that function has been invoked.

NOTE: This solution is extremely brittle and provides very limited utility, as it stands. However, it...

User Review for Decorator for BindingConstants at compile time
- required fields
     

Please enter text on the image