Re: [Python-Dev] [Python-ideas] minmax() function returning (minimum, maximum) tuple of a sequence

2010-10-11 Thread Xavier Morel
On 2010-10-11, at 07:56 , Carl M. Johnson wrote: > On Sun, Oct 10, 2010 at 2:55 PM, Zac Burns wrote: >> This could be generalized and placed into itertools if we create a function >> (say, apply for lack of a better name at the moment) that takes in an >> iterable and creates new iterables that yi

Re: [Python-Dev] Relative imports in Py3k

2010-10-11 Thread Nick Coghlan
On Mon, Oct 11, 2010 at 1:54 AM, anatoly techtonik wrote: > On Sun, Sep 26, 2010 at 2:32 PM, Nick Coghlan wrote: >> This is almost certainly failing because the directory containing the >> spyderlib package isn't on sys.path anywhere (instead, whichever >> directory contains the script you execut

[Python-Dev] PyArg_ParseTuple

2010-10-11 Thread Ioan Ferencik
I would like to ask where can I find more detailed info on PyArg_ParseTuple function. I find the doc limited on the matter. Mainly I am curious why the function requires an address of a pointer. I have issues in the following case: in python int jmax = 16 print type(jmax) which is just all

Re: [Python-Dev] PyArg_ParseTuple

2010-10-11 Thread Benjamin Peterson
2010/10/11 Ioan Ferencik : > I  would like to ask where can I find more detailed info on > PyArg_ParseTuple function. See python-list. > > I find the doc limited on the matter. > Mainly I am curious why the function requires an address of a pointer. So it can change the pointer. -- Regards,

[Python-Dev] Cheeseshop (was Re: Distutils2 scripts)

2010-10-11 Thread Frank Lomax
On Oct 08, 2010, at 03:40 PM, Brett Cannon wrote: >Richard Jones is the authority on the story, but from what I can >remember from the discussion it was decided that managers would have >had issues with using a service called the Cheeseshop. So basically >the idea of professional-sounding name won

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Martin v. Löwis
Am 08.10.2010 17:21, schrieb Michael Foord: > On 08/10/2010 16:07, Barry Warsaw wrote: >> On Oct 08, 2010, at 11:04 AM, Toshio Kuratomi wrote: >> >>> python-setup is a lot like python setup.py >>> pysetup is shorter >>> pyegg is even shorter :-) >> wfm! > > To avoid any potential confusion, wfm

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Daniel Stutzbach
On Fri, Oct 8, 2010 at 4:44 PM, Tarek Ziadé wrote: > Hehe. What's the story behind changing the name from Cheeseshop to PyPI btw > ? > I found the first one much nicer A through investigation revealed that the Cheeseshop did not in fact have any cheese at all. Not even Wensleydale. -- Daniel

Re: [Python-Dev] Relative imports in Py3k

2010-10-11 Thread Ron Adam
On 10/11/2010 07:27 AM, Nick Coghlan wrote: On Mon, Oct 11, 2010 at 1:54 AM, anatoly techtonik wrote: On Sun, Sep 26, 2010 at 2:32 PM, Nick Coghlan wrote: This is almost certainly failing because the directory containing the spyderlib package isn't on sys.path anywhere (instead, whichever d

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Giampaolo Rodolà
2010/10/8 Eric Smith : > On 10/8/10 10:26 AM, Barry Warsaw wrote: >> In any case, these could be a simple shell script wrapping 'python -m >> setup'. >> It could even take a --use-python-version option to select the pythonX.Y >> it >> used, without having to encode the Python version number in the

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Giampaolo Rodolà
Wouldn't be kinda weird that one can open the command prompt and run "pysetup" but not "python" on Windows? I recall an old issue on the bug tracker in which the latter proposal was widely discussed and finally rejected for reasons I can't remember (and it seems I can't even find the bug right now)

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Antoine Pitrou
On Tue, 12 Oct 2010 01:11:24 +0200 Giampaolo Rodolà wrote: > Wouldn't be kinda weird that one can open the command prompt and run > "pysetup" but not "python" on Windows? If you add C:\PythonXY to your path, you can run "python". Regards Antoine. __

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Greg Ewing
Giampaolo Rodolà wrote: If that's the case what would I type in the command prompt in order to install a module? "C:\PythonXX\pysetup.exe"? If so I would strongly miss old "setup.py install". Another thing bothers me about this. With the current scheme, if you have multiple Pythons available,

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Greg Ewing
Giampaolo Rodolà wrote: Wouldn't be kinda weird that one can open the command prompt and run "pysetup" but not "python" on Windows? I recall an old issue on the bug tracker in which the latter proposal was widely discussed and finally rejected for reasons I can't remember On Windows I think it'

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Giampaolo Rodolà
2010/10/12 Antoine Pitrou : > On Tue, 12 Oct 2010 01:11:24 +0200 > Giampaolo Rodolà wrote: >> Wouldn't be kinda weird that one can open the command prompt and run >> "pysetup" but not "python" on Windows? > > If you add C:\PythonXY to your path, you can run "python". I know. My point was you can'

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Eric Smith
On 10/11/2010 5:17 PM, Giampaolo Rodolà wrote: 2010/10/8 Eric Smith: On 10/8/10 10:26 AM, Barry Warsaw wrote: In any case, these could be a simple shell script wrapping 'python -m setup'. It could even take a --use-python-version option to select the pythonX.Y it used, without having to encode

Re: [Python-Dev] Distutils2 scripts

2010-10-11 Thread Éric Araujo
Le 12/10/2010 01:11, Giampaolo Rodolà a écrit : > Wouldn't be kinda weird that one can open the command prompt and run > "pysetup" but not "python" on Windows? > I recall an old issue on the bug tracker in which the latter proposal > was widely discussed and finally rejected for reasons I can't rem