473,396 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

pie-as-merely-syntax + decorator keyword

I haven't managed to catch up with all the decorator articles, but:

If we do get the pie syntax (or | or %% or whatever), is it too late
to get '@<keyword> staticmethod' and not just '@staticmethod'?

I've suggested it before, and I think others have too, but it seems to
have gotten lost in all the other discussion.

It's supposed to be a plus with the current pie syntax that the @
suggests something 'new' and non-obvious is going on. I don't see it.

For one thing, it isn't going to remain new. When we get something more
radically new, are we going to define it as '@$!!statement' to _really_
make it stand out?

For another, it _isn't_ new. It's just new syntax for something old.
All that is new is that there is a new type of _syntax_: A new way to
express how statements affect each other; neither indentation nor
program flow. It's not an _advantage_ of the pie syntax that it does
this, compared with most other proposals. It's merely _necessary_ that
it does it, since it does not use other visual cues like indentation.

So if we get a pie, I think that's all the pie should mean: 'Abnormal
Syntax Alert'. That could be a useful thing to have in the future, e.g.
for compiler directives, and it doesn't mix up two completely different
things: An entirely new kind of Python syntax, and statements that
express normal execution of code.

Then follow it with a keyword which says that this particular abnormal
syntax applies decorators to the following function definition.

Other 'pie-keywords' could be added later at need; there would be less
worry about having used up an unused character. Like, oh I don't know,
keywords that change the function they occur in so that it returns
something else than its return statement says. Such a keyword would
_really_ need to stand out. '@yield', for example:-) Or a keyword
which 'gunzip's the rest of the source file before reading more of it.

--
Hallvard
Jul 18 '05 #1
0 1240

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

Similar topics

0
by: Tarek | last post by:
hi all, I just created a new crystal report with pie chart. But when I started to test, then it cannot show the pie chart, it shows "x" on the chart top-left corner. but just only show the...
5
by: Thierry Lam | last post by:
Let's say I have the following data: 500 objects: -100 are red -300 are blue -the rest are green Is there some python package which can represen the above information in a pie chart?
0
by: Cool Sport | last post by:
Hi there, Could anyone tell me how to overcome this problem? I have to use Pie-Chart in my reports in Access and I have tried Access's built-in Chart and MS Excel Chart object. They all work ok...
8
by: LB | last post by:
Hello everybody I'm learning how to create pie chart using OWC. I'm able now to create a pie. But I can not figure out how to do the following : - for each pie, when mousing over, I would like...
0
by: gazelle04 | last post by:
Pie charts on Access reports are very ugly. I should repeat this very very ugly. The lines on the pie are not smooth, they are jagged or crooked lines. How could I present the reports to the manager....
0
by: gazelle04 | last post by:
I have a report with pie chart. I formatted the chart with what my own formats like putting the legent at the bottom, changing the size of fonts, etc. When I use that same report format into another...
4
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i learned how to make simple pie charts using code like the following from an article referenced at the end of post: For i = 0 To yaxis.Length - 1 currentangle = yaxis(i) / totalAng...
1
by: Redskin | last post by:
I am using ConvertReportToPDF (7.51); which I really like. I believe I've found a bug though. When a report has a pie chart, the pie slices do not remain the correct size. I have a...
1
by: Nitinkcv | last post by:
Hi all, Im not sure whether this can be done in asp. Like i was wondering whether i could create a kind of pie charts. The aim is that i need to create a pie chart which will show the...
2
by: buddyr | last post by:
Hello, I saw an example of microsoft access form based on table. the form had combo box to select employee and and then labels and textboxes below. The form had a pie chart that changed to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.