Re: [Python-Dev] First draft of "sysconfig"

2009-12-15 Thread David Lyon
On Tue, 15 Dec 2009 09:32:55 +, Floris Bruynooghe wrote: > If I write a shared library under C I am expected to install it under > one of the default locations if I don't want to require people to have > to tweak things before they can use it. I see no difference with > python modules or pac

Re: [Python-Dev] First draft of "sysconfig"

2009-12-15 Thread M.-A. Lemburg
Tarek Ziadé wrote: > On Mon, Dec 14, 2009 at 10:52 AM, M.-A. Lemburg wrote: > [..] >>> I've refactored distutils/ and site.py so they work with this new >>> module, and added deprecation warnings in distutils.sysconfig. >> >> I think we really need to do something about these kinds of >> deprecati

Re: [Python-Dev] First draft of "sysconfig"

2009-12-15 Thread Dino Viehland
Tarek wrote: > How would you use it when a list is returned ? Can you provide a few > examples where > the code wants to know the default architecture for the current platform ? > etc. The consumer could enumerate over it and then do whatever they were doing w/ the platform multiple times. If an

Re: [Python-Dev] Pronouncement on PEP 389: argparse?

2009-12-15 Thread Steven Bethard
On Tue, Dec 15, 2009 at 4:33 AM, Neal Becker wrote: > Ian Bicking wrote: >> If argparse doesn't do this, then I think at least it should give good >> error messages for all cases where these optparse-isms remain.  For >> instance, now if you include %prog in your usage you get: ValueError: >> unsu

[Python-Dev] Command line options for features in stdlib WAS: Pronouncement on PEP 389: argparse?

2009-12-15 Thread Olemis Lang
/me starting a new thread because this goes beyond argparse itself On Tue, Dec 15, 2009 at 4:34 AM, Antoine Pitrou wrote: > Steven Bethard gmail.com> writes: >> >> Because people are continuing this discussion, I'll say again that >> argparse already supports this: > > Well I think the point is

Re: [Python-Dev] Pronouncement on PEP 389: argparse?

2009-12-15 Thread Neal Becker
Ian Bicking wrote: > On Mon, Dec 14, 2009 at 6:34 PM, sstein...@gmail.com > wrote: >>> Although I am of the people who think working modules shouldn't be >>> deprecated, I also don't think adding compatibility aliases is a good >>> idea. They only make the APIs more bloated and maintenance more t

Re: [Python-Dev] Issue 3745 backwards incompatibility

2009-12-15 Thread M.-A. Lemburg
Michael Foord wrote: > On 15/12/2009 11:23, M.-A. Lemburg wrote: >> Karen Tracey wrote: >> >>> In testing some existing code with the 2.7 alpha release, I've run into: >>> >>> TypeError: Unicode-objects must be encoded before hashing >>> >>> when the existing code tries to pass unicode obje

Re: [Python-Dev] Issue 3745 backwards incompatibility

2009-12-15 Thread Michael Foord
On 15/12/2009 11:23, M.-A. Lemburg wrote: Karen Tracey wrote: In testing some existing code with the 2.7 alpha release, I've run into: TypeError: Unicode-objects must be encoded before hashing when the existing code tries to pass unicode objects to hashlib.sha1 and hashlib.md5. This

Re: [Python-Dev] Issue 3745 backwards incompatibility

2009-12-15 Thread M.-A. Lemburg
Karen Tracey wrote: > In testing some existing code with the 2.7 alpha release, I've run into: > > TypeError: Unicode-objects must be encoded before hashing > > when the existing code tries to pass unicode objects to hashlib.sha1 and > hashlib.md5. This is, I believe, due to changes made for

Re: [Python-Dev] First draft of "sysconfig"

2009-12-15 Thread Tarek Ziadé
On Tue, Dec 15, 2009 at 5:12 AM, Ben Finney wrote: [..] > >> > I don't think they belong in this PEP; they are a property of the OS >> > install/version, not of the specific Python install/version. > > I think the “sysconfig” specification should allow for *extension*, > without needing a modified

Re: [Python-Dev] First draft of "sysconfig"

2009-12-15 Thread Tarek Ziadé
On Tue, Dec 15, 2009 at 1:00 AM, Dino Viehland wrote: [..] > How would you know what other architectures would be valid to pass in > here?  Returning a list would let the implementation say that it knows > a certain set of architectural binaries are valid. How would you use it when a list is retu

Re: [Python-Dev] Pronouncement on PEP 389: argparse?

2009-12-15 Thread Antoine Pitrou
Steven Bethard gmail.com> writes: > > Because people are continuing this discussion, I'll say again that > argparse already supports this: Well I think the point is that if there is a default, the default should be sensible and not run against expectations. It would probably be fine not to have

Re: [Python-Dev] First draft of "sysconfig"

2009-12-15 Thread Floris Bruynooghe
On Mon, Dec 14, 2009 at 11:39:02PM -0500, David Lyon wrote: > On Tue, 15 Dec 2009 15:24:36 +1100, Mark Hammond > > wrote: > But under windows, an application developer might (as in probably > would) like to install an application in \Program Files\someapp > rather than hidden in the

Re: [Python-Dev] Request commit privileges for Stefan Krah

2009-12-15 Thread Nick Coghlan
Mark Dickinson wrote: > Sure; I guess that would work too, especially if there's a preference > for hg over > svn. It might be nice to have the commit history in the official > repository, though. Using an SVN branch also means the checkins can be reviewed as they go by on python-checkins. I'll