[Python-Dev] Questions about '@' in pep 318

"Martin v. Löwis" martin at v.loewis.de
Fri Aug 6 00:38:20 CEST 2004


Edward K. Ream wrote:
> Oh dear.  Does this mean that @x is a potential annotation for any
> identifier x?  

Yes. Take a look at the documentation, and the test case.

> I was using __future__ by way of explanation.  I do hope namespaces could
> somehow denote annotations.  My off-the-cuff suggestion was for
> pseudo-modules, so maybe the normal module rules could be sidestepped?

I don't see how this would be possible. The plan is that arbitrary 
callables can be used as decorations, as long as they take a single
argument.

Regards,
Martin


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant