[Python-Dev] PEP 318 restrictions on elements (original) (raw)
[Python-Dev] PEP 318 - generality of list; restrictions on elements
Ronald Oussoren oussoren at cistron.nl
Tue Mar 9 04:37:30 EST 2004
- Previous message: [Python-Dev] PEP 318 - generality of list; restrictions on elements
- Next message: [Python-Dev] PEP 318 - generality of list; restrictions on elements
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8-mrt-04, at 22:20, Barry Warsaw wrote:
On Mon, 2004-03-08 at 15:46, Skip Montanaro wrote:
I guess this is an area where PEP 318 should be fleshed out a bit. I don't see any reason it shouldn't be expanded to include semantics as well as syntax. That might require a title change, but I don't think the semantics should be left unspecified, nor do I think the syntax and semantics should reside in separate PEPs. I agree. FWIW, I think the list of things inside the square brackets should be simple identifiers, i.e. the names of callables that have been defined elsewhere. I'd prefer to keep them simple, meaning no lambdas or list comprehensions. But that's just me.
I'd would prefer allowing function calls as well. One of the reasons for using function wrappers is adding type information to functions (PyObjC and ctype), like so:
def myMethod_(self) [signature("i@:i")]:
pass
Ronald
X|support bv http://www.xsupport.nl/ T: +31 610271479 F: +31 204416173
- Previous message: [Python-Dev] PEP 318 - generality of list; restrictions on elements
- Next message: [Python-Dev] PEP 318 - generality of list; restrictions on elements
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]