Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-13 Thread Nick Coghlan
M.-A. Lemburg wrote: sys.userdirsuffix - sys.userdirsuffix is an implementation and platform specific string that is used to construct the path for the user site directory as explained in PEP 370. The string contains the implementation name as well as the version number of

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-13 Thread M.-A. Lemburg
Nick Coghlan wrote: M.-A. Lemburg wrote: sys.userdirsuffix - sys.userdirsuffix is an implementation and platform specific string that is used to construct the path for the user site directory as explained in PEP 370. The string contains the implementation name as well as the

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-12 Thread M.-A. Lemburg
Martin v. Löwis wrote: id (required): lower case identifier, for example cpython, ironpython, jython, pypy Doing some bike-shedding: I'd like to not use cpython as the name of the python.org implementation. This term, I believe, was coined around JPython, somehow making the

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-12 Thread M.-A. Lemburg
Christian Heimes wrote: sys.implementation -- platform (required): platform or language of the implementation, for example C, .NET, Java I'd call this attribute language. We already have sys.platform with a different meaning. Possible values would then be C, C#, Java,

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-12 Thread Scott Dial
Christian Heimes wrote: id (required): lower case identifier, for example cpython, ironpython, jython, pypy name (required): mixed case name of the implementation, for example CPython, IronPython, Jython, PyPy Why both? Is it not true that the following is guaranteed?

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-11 Thread M.-A. Lemburg
Nick Coghlan wrote: M.-A. Lemburg wrote: Benjamin Peterson wrote: I forgot to ask before: Does this deprecate platform.python_implementation()? No, platform.py is meant to be portable across multiple Python versions and as such not really suitable for such deprecations. It'll also take a

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-11 Thread Frank Wierzbicki
On Fri, Oct 9, 2009 at 8:42 PM, Martin v. Löwis mar...@v.loewis.de wrote: I think it is important to confirm in advance that all the implementations listed below agree to implement the PEP soonish after it's adopted. Required sounds like a strong term - however, if an implementation chooses

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-11 Thread Frank Wierzbicki
On Fri, Oct 9, 2009 at 8:34 PM, Martin v. Löwis mar...@v.loewis.de wrote: Also, why is it the name of the JIT compiler, and not the name of the source language compiler? From the Jython side it is easier to get the VM name compared to the source language compiler. Although there is a property

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-11 Thread Guido van Rossum
On Sun, Oct 11, 2009 at 4:31 PM, Frank Wierzbicki fwierzbi...@gmail.com wrote: On Fri, Oct 9, 2009 at 8:42 PM, Martin v. Löwis mar...@v.loewis.de wrote: So I propose that the python.org version is identified as python. I'll add my voice to the group that likes cpython and CPython as the

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-10 Thread Willem Broekema
On Sat, Oct 10, 2009 at 1:29 AM, Christian Heimes li...@cheimes.de wrote: I'm proposing two new attributes in the sys module: sys.implementation and sys.userdirsuffix. This seems like a good idea. I'm not sure this idea will easily be accepted, but I'd like to see the sys module eventually

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-10 Thread M.-A. Lemburg
Benjamin Peterson wrote: I forgot to ask before: Does this deprecate platform.python_implementation()? No, platform.py is meant to be portable across multiple Python versions and as such not really suitable for such deprecations. It'll also take a long while before all Python implementations

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-10 Thread Benjamin Peterson
2009/10/10 Willem Broekema metaw...@gmail.com: On Sat, Oct 10, 2009 at 1:29 AM, Christian Heimes li...@cheimes.de wrote: I'm proposing two new attributes in the sys module: sys.implementation and sys.userdirsuffix. This seems like a good idea. I'm not sure this idea will easily be accepted,

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-10 Thread Nick Coghlan
M.-A. Lemburg wrote: Benjamin Peterson wrote: I forgot to ask before: Does this deprecate platform.python_implementation()? No, platform.py is meant to be portable across multiple Python versions and as such not really suitable for such deprecations. It'll also take a long while before

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-10 Thread Nick Coghlan
Martin v. Löwis wrote: Doing some bike-shedding: I'd like to not use cpython as the name of the python.org implementation. This term, I believe, was coined around JPython, somehow making the implementation language the primary means of distinction. However, there may be alternative

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-10 Thread Michael Foord
Christian Heimes wrote: Fellow Python developers! In the light of our recent discussion about implementation specific information and user site directory I like to start a new PEP. Much to my regret I wasn't able to contribute to Python core development over the past months. I hope I can find

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-10 Thread Nick Coghlan
Michael Foord wrote: Why not just sys.implementation as a string? Everything else can trivially be deduced from that anyway. What is the use-case for the extra information? I think Christian's set of required attributes is much too large (I would only have name as a required field), but I can

[Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
Fellow Python developers! In the light of our recent discussion about implementation specific information and user site directory I like to start a new PEP. Much to my regret I wasn't able to contribute to Python core development over the past months. I hope I can find some free time over the

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Dino Viehland
Christian wrote: sys.implementation is a PyStructSequence that contains various information about the current implementation. Some fields are required to be present on every implementation. Implementations may choose to add additional fields as they see fit. Some fields like compiler are

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Benjamin Peterson
2009/10/9 Christian Heimes li...@cheimes.de: Fellow Python developers! In the light of our recent discussion about implementation specific information and user site directory I like to start a new PEP. Much to my regret I wasn't able to contribute to Python core development over the past

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
Benjamin Peterson wrote: sys.implementation is a PyStructSequence that contains various information about the current implementation. Some fields are required to be present on every implementation. Implementations may choose to add additional fields as they see fit. Some fields like compiler

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Benjamin Peterson
2009/10/9 Christian Heimes li...@cheimes.de: Benjamin Peterson wrote: sys.userdirsuffix - Why not site.userdirsuffix? Because all implementations of Python like to use the same, unpatched site module. The sys module is different for every implementation. It's more

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Martin v. Löwis
Given that this is all about establishing some common ground between implementations I would propose not using a CPython specific term here such as PyStructSequence :) The Python docs seem to use structseq for sys.float_info. Also, why does it have to be a sequence in the first place?

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Martin v. Löwis
sys.implementation is a PyStructSequence that contains various information about the current implementation. Some fields are required to be present on every implementation. I think it is important to confirm in advance that all the implementations listed below agree to implement the PEP

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
Martin v. Löwis wrote: Given that this is all about establishing some common ground between implementations I would propose not using a CPython specific term here such as PyStructSequence :) The Python docs seem to use structseq for sys.float_info. Also, why does it have to be a sequence

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Greg Ewing
Martin v. Löwis wrote: So I propose that the python.org version is identified as python. But then we won't have a generic term for the language itself, independent of any implementation. The c in cpython doesn't necessarily have to refer to the implementation language. Maybe it stands for

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
Martin v. Löwis wrote: sys.implementation is a PyStructSequence that contains various information about the current implementation. Some fields are required to be present on every implementation. I think it is important to confirm in advance that all the implementations listed below agree

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
Dino Viehland wrote: Given that this is all about establishing some common ground between implementations I would propose not using a CPython specific term here such as PyStructSequence :) The Python docs seem to use structseq for sys.float_info. You got me! :) compiler (required):

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Dino Viehland
Christian wrote: Martin has already answered both points to my satisfaction. Do you agree with him? Sure, source level makes more sense - so we'd have csc or gmcs if compiled with Mono (assuming there's some way to do that...). ___ Python-Dev

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Christian Heimes
Benjamin Peterson wrote: I think we should make a semi-private (public to the stdlib) module like _sys or _implementation part of the Python VM API. Then, instead of stuffing everything into sys, we can provide this information in modules where it belongs. That's an interesting counter

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Benjamin Peterson
2009/10/9 Christian Heimes li...@cheimes.de: Benjamin Peterson wrote: I think we should make a semi-private (public to the stdlib) module like _sys or _implementation part of the Python VM API. Then, instead of stuffing everything into sys, we can provide this information in modules where it

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Brett Cannon
On Fri, Oct 9, 2009 at 18:14, Benjamin Peterson benja...@python.org wrote: 2009/10/9 Christian Heimes li...@cheimes.de: Benjamin Peterson wrote: I think we should make a semi-private (public to the stdlib) module like _sys or _implementation part of the Python VM API. Then, instead of

Re: [Python-Dev] PEP about sys.implementation and implementation specific user site directory

2009-10-09 Thread Benjamin Peterson
2009/10/9 Brett Cannon br...@python.org: But I honestly don't see why this doesn't belong in sys; it has to do with the system environment which is the interpreter. Yes, some things currently in sys could possibly be put elsewhere (e.g. the exception stuff could be in 'exceptions'), but I