Re: [Python-Dev] Python Library Addition: First-class Procedure Signatures

2007-11-16 Thread Brett Cannon
On Nov 15, 2007 12:48 PM, Steven Bethard [EMAIL PROTECTED] wrote: On Nov 14, 2007 1:18 PM, Brett Cannon [EMAIL PROTECTED] wrote: On Nov 14, 2007 10:30 AM, Isaac Morland [EMAIL PROTECTED] wrote: So I wrote a Signature class. Instances of the class represent all the information present

Re: [Python-Dev] Python Library Addition: First-class Procedure Signatures

2007-11-16 Thread Brett Cannon
On Nov 15, 2007 12:48 PM, Steven Bethard [EMAIL PROTECTED] wrote: On Nov 14, 2007 1:18 PM, Brett Cannon [EMAIL PROTECTED] wrote: On Nov 14, 2007 10:30 AM, Isaac Morland [EMAIL PROTECTED] wrote: So I wrote a Signature class. Instances of the class represent all the information present

Re: [Python-Dev] Python Library Addition: First-class Procedure Signatures

2007-11-15 Thread Isaac Morland
On Wed, 14 Nov 2007, Brett Cannon wrote: As Collin already pointed out, it sounds like you want PEP 362 to get into the stdlib. I have not made a big push to try to get my existing implementation into Python 2.6/3.0, but I plan to at some point. Yes, it had not occurred to me to check the

Re: [Python-Dev] Python Library Addition: First-class Procedure Signatures

2007-11-15 Thread Isaac Morland
On Thu, 15 Nov 2007, Isaac Morland wrote: 1. For the name attribute of the Parameter object, I think it needs to be str | tuple(str) | tuple(tuple(str)) | : No, that's still wrong. I think it needs to be T, where T == str | tuple(T). Isaac Morland CSCF Web Guru DC

Re: [Python-Dev] Python Library Addition: First-class Procedure Signatures

2007-11-15 Thread Brett Cannon
On Nov 15, 2007 8:42 AM, Isaac Morland [EMAIL PROTECTED] wrote: On Wed, 14 Nov 2007, Brett Cannon wrote: As Collin already pointed out, it sounds like you want PEP 362 to get into the stdlib. I have not made a big push to try to get my existing implementation into Python 2.6/3.0, but I

Re: [Python-Dev] Python Library Addition: First-class Procedure Signatures

2007-11-15 Thread Steven Bethard
On Nov 14, 2007 1:18 PM, Brett Cannon [EMAIL PROTECTED] wrote: On Nov 14, 2007 10:30 AM, Isaac Morland [EMAIL PROTECTED] wrote: So I wrote a Signature class. Instances of the class represent all the information present between the parentheses of a procedure definition. Properties are

[Python-Dev] Python Library Addition: First-class Procedure Signatures

2007-11-14 Thread Isaac Morland
For another project (see my previous email on named tuples), I needed to represent procedure signatures, and use them to expand arguments into the dictionary of values that exists when execution of a procedure starts. To my surprise, this capability didn't seem to be provided by the Python

Re: [Python-Dev] Python Library Addition: First-class Procedure Signatures

2007-11-14 Thread Collin Winter
On Nov 14, 2007 10:30 AM, Isaac Morland [EMAIL PROTECTED] wrote: For another project (see my previous email on named tuples), I needed to represent procedure signatures, and use them to expand arguments into the dictionary of values that exists when execution of a procedure starts. To my

Re: [Python-Dev] Python Library Addition: First-class Procedure Signatures

2007-11-14 Thread Brett Cannon
On Nov 14, 2007 10:30 AM, Isaac Morland [EMAIL PROTECTED] wrote: For another project (see my previous email on named tuples), I needed to represent procedure signatures, and use them to expand arguments into the dictionary of values that exists when execution of a procedure starts. To my