473,473 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Think you've got a new decorator syntax?

You probably don't. ;) Here's a script that generates (almost) all of
the proposals so far. Don't worry, there's only 1224 that are both
not currently valid syntax and also easily greppable. ;)

http://ucsu.colorado.edu/~bethard/py/decorators.py

And the output (throwing away any syntaxes that were currently valid
or not easily greppable):

http://ucsu.colorado.edu/~bethard/py...tors-output.py

Steve
Jul 18 '05 #1
1 1384
Steven Bethard wrote:
You probably don't. ;) Here's a script that generates (almost) all of
the proposals so far. Don't worry, there's only 1224 that are both
not currently valid syntax and also easily greppable. ;)

http://ucsu.colorado.edu/~bethard/py/decorators.py

And the output (throwing away any syntaxes that were currently valid
or not easily greppable):

http://ucsu.colorado.edu/~bethard/py...tors-output.py

Steve


Excellent! I propose that we accept *ALL* of the syntaxes! Flexibility!

David
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Theodore H. Smith | last post by:
OK, so I've invented a new data structure, used for look up tables (AKA "map" or "dictionary"), which is much faster, and uses less RAM, than the popular hashing algorithms. I've written a...
4
by: ahaupt | last post by:
Hi all, I'm trying to get a null value into a sql money field through a SqlCommand in c#. However, I get this lovely message (which sparks loads of happy emotions in this overworked body): ...
2
by: Jeff Brown | last post by:
Hi, I suspect that this isn't possible, but I figured I'd ask. My project has a root namespace, let's say it's "Root", that applies to almost every source file (which is why I've set it as the...
4
by: arad | last post by:
I was wondering if anybody knows how to get a script to do the following: when the user receives a new email into their inbox I want a small window to pop-up from the bottom right corner of the...
3
by: BMC | last post by:
When starting up, my app needs to pull some information out of a database, which it does. It also needs to quit if the SQL query returns no data. All the database checking stuff is in a private...
14
by: Martin Wells | last post by:
When I have errors in a program, whether they be compiler errors, linker errors, or if the program crashes when running, I have a list of things I check for initially. If I get an error for...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.