Re: [Python-Dev] IronPython specific code in inspect module

2009-05-19 Thread Daniel Diniz
Dino Viehland wrote: > What about instead defining __argspec__ for built-in functions/method > objects and allowing all the implementations to implement it?  We could > all agree to return: > > [ >        (return_type, (arg_types,...)), >        (return_type, (arg_types,...)), > ] > > Then inspect

Re: [Python-Dev] IronPython specific code in inspect module

2009-05-19 Thread Dino Viehland
Michael Foord wrote: > I have IronPython specific versions of several of these functions which > use .NET reflection and inspect could fallback to if sys.platform == > 'cli'. Would it be ok for me to add these to the inspect module? > Obviously the tests would only run on IronPython... The behaviou

Re: [Python-Dev] IronPython specific code in inspect module

2009-05-19 Thread Benjamin Peterson
2009/5/19 Maciej Fijalkowski : > From my observation (mostly according to jython), such changes easily get out > of > sync. The net result is that you have one, outdated, version in stdlib > and other implementation, like IronPython is maintaining it's own > anyway. IMO it's easy enough > to maint

Re: [Python-Dev] IronPython specific code in inspect module

2009-05-19 Thread David Stanek
On Tue, May 19, 2009 at 9:26 PM, Benjamin Peterson wrote: > 2009/5/19 Michael Foord : >> I have IronPython specific versions of several of these functions which use >> .NET reflection and inspect could fallback to if sys.platform == 'cli'. >> Would it be ok for me to add these to the inspect modul

Re: [Python-Dev] IronPython specific code in inspect module

2009-05-19 Thread Maciej Fijalkowski
On Tue, May 19, 2009 at 7:26 PM, Benjamin Peterson wrote: > 2009/5/19 Michael Foord : >> I have IronPython specific versions of several of these functions which use >> .NET reflection and inspect could fallback to if sys.platform == 'cli'. >> Would it be ok for me to add these to the inspect modul

Re: [Python-Dev] IronPython specific code in inspect module

2009-05-19 Thread Benjamin Peterson
2009/5/19 Michael Foord : > I have IronPython specific versions of several of these functions which use > .NET reflection and inspect could fallback to if sys.platform == 'cli'. > Would it be ok for me to add these to the inspect module? Obviously the > tests would only run on IronPython... The beh

[Python-Dev] IronPython specific code in inspect module

2009-05-19 Thread Michael Foord
Hello all, The inspect module (inspect.get_argspec etc) work fine for Python functions and classes in IronPython, but they don't work on .NET types which don't have the Python function attributes like im_func etc. I have IronPython specific versions of several of these functions which use .N

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread P.J. Eby
At 04:04 PM 5/19/2009 +0200, Tarek Ziadé wrote: On Sat, May 16, 2009 at 6:55 PM, P.J. Eby wrote: > > 1. Why ';' separation, instead of tabs as in PEP 262? Aren't semicolons a > valid character in filenames? I am changing this into a . for now. What about Antoine's idea about doing a quote() o

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Paul Moore
2009/5/19 Tarek Ziadé : > On Sat, May 16, 2009 at 6:55 PM, P.J. Eby wrote: >> >> 1. Why ';' separation, instead of tabs as in PEP 262?  Aren't semicolons a >> valid character in filenames? > > I am changing this into a . for now. I'm not following this thread at all, but can I put a strong vote *

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread MRAB
Tarek Ziadé wrote: On Sat, May 16, 2009 at 6:55 PM, P.J. Eby wrote: 1. Why ';' separation, instead of tabs as in PEP 262? Aren't semicolons a valid character in filenames? I am changing this into a . for now. What about Antoine's idea about doing a quote() on the names ? From my point of

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Tarek Ziadé
On Tue, May 19, 2009 at 4:03 PM, Antoine Pitrou wrote: > Ronald Oussoren mac.com> writes: >> >> Wouldn't it be possible to use a CSV file for this? That way we >> wouldn't have to invent yet another escaping mechanism and there's >> already good suppport for reading and writing CSV files in the >

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Tarek Ziadé
On Sat, May 16, 2009 at 6:55 PM, P.J. Eby wrote: > > 1. Why ';' separation, instead of tabs as in PEP 262?  Aren't semicolons a > valid character in filenames? I am changing this into a . for now. What about Antoine's idea about doing a quote() on the names ? >From my point of view seems more

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Antoine Pitrou
Ronald Oussoren mac.com> writes: > > Wouldn't it be possible to use a CSV file for this? That way we > wouldn't have to invent yet another escaping mechanism and there's > already good suppport for reading and writing CSV files in the > standard library. +1 We can even customize the delim

Re: [Python-Dev] PEP 376 : Changing the .egg-info structure

2009-05-19 Thread Ronald Oussoren
On 17 May, 2009, at 15:04, MRAB wrote: Alexander Shigin wrote: В Сбт, 16/05/2009 в 23:15 +0100, MRAB пишет: FYI, on RISC OS '/' is a valid filename character and '.' is used as the directory separator. I'd probably say that TAB is s reasonable character to use, even though it's OK in POSIX;

Re: [Python-Dev] [Fwd: Re: PEP 384: Defining a Stable ABI]

2009-05-19 Thread William Reade
My perspective is as follows: 1) If PEP-384 had always been in place, my life would now be a lot easier. 2) Since it hasn't always been in place, its introduction won't help me in the short term: there are an awful lot of extension modules that use excluded functions (for example, all(?) PyCxx