Re: [Python-Dev] Additional behaviour for itertools.combinations

2009-01-24 Thread Raymond Hettinger
Raymond Hettinger wrote: Since I expect students to be among the users for the comb/perm functions, there is some merit to keeping the API as simple as possible. Besides, it is not hard to use the existing tool as a primitive to get to the one you want: def mycombinations(iterable, r_seq):

Re: [Python-Dev] Operator module deprecations

2009-01-24 Thread Nick Coghlan
Brett Cannon wrote: > On Sat, Jan 24, 2009 at 14:46, Raymond Hettinger wrote: >> I would like to deprecate some outdated functions in the operator module. >> >> The isSequenceType(), isMappingType(), and isNumberType() >> functions never worked reliably and now their >> intended purpose has been l

Re: [Python-Dev] Additional behaviour for itertools.combinations

2009-01-24 Thread Nick Coghlan
Raymond Hettinger wrote: > Since I expect students to be among the users for the comb/perm > functions, there is some merit to keeping the API as simple as possible. > Besides, it is not hard to use the existing tool as a primitive to get to > the one you want: > > def mycombinations(iterable,

Re: [Python-Dev] Operator module deprecations

2009-01-24 Thread Brett Cannon
On Sat, Jan 24, 2009 at 14:46, Raymond Hettinger wrote: > I would like to deprecate some outdated functions in the operator module. > > The isSequenceType(), isMappingType(), and isNumberType() > functions never worked reliably and now their > intended purpose has been largely fulfilled by > ABCs.

Re: [Python-Dev] PEP 374 (DVCS) now in reST

2009-01-24 Thread Brett Cannon
On Sat, Jan 24, 2009 at 16:44, Nick Coghlan wrote: > Brett Cannon wrote: >> On Sat, Jan 24, 2009 at 15:34, "Martin v. Löwis" wrote: > Second, I think it would be good to explicitly mention the option of > deferring this PEP. Based on previous discussion, it sounds like there > are a

Re: [Python-Dev] PEP 374 (DVCS) now in reST

2009-01-24 Thread Nick Coghlan
Brett Cannon wrote: > On Sat, Jan 24, 2009 at 15:34, "Martin v. Löwis" wrote: Second, I think it would be good to explicitly mention the option of deferring this PEP. Based on previous discussion, it sounds like there are a fair number of people who think that there is a DVCS in Py

Re: [Python-Dev] PEP 374 (DVCS) now in reST

2009-01-24 Thread Brett Cannon
On Sat, Jan 24, 2009 at 15:34, "Martin v. Löwis" wrote: >>> Second, I think it would be good to explicitly mention the option of >>> deferring this PEP. Based on previous discussion, it sounds like there >>> are a fair number of people who think that there is a DVCS in Python's >>> future, but no

Re: [Python-Dev] Change Makefile.pre.in based on configure?

2009-01-24 Thread skip
>> How do I work around this difference in Makefile.pre.in? Martin> To answer this question, I would have to see the exact fragment Martin> that you want to see in the Solaris case, and the exact fragment Martin> that you want to have in the OSX case. Can you provide these? I'll w

Re: [Python-Dev] PEP 374 (DVCS) now in reST

2009-01-24 Thread Martin v. Löwis
>> Second, I think it would be good to explicitly mention the option of >> deferring this PEP. Based on previous discussion, it sounds like there >> are a fair number of people who think that there is a DVCS in Python's >> future, but not now (where "now" means over the next couple of years). > >

Re: [Python-Dev] Change Makefile.pre.in based on configure?

2009-01-24 Thread Martin v. Löwis
> How do I work around this difference in Makefile.pre.in? To answer this question, I would have to see the exact fragment that you want to see in the Solaris case, and the exact fragment that you want to have in the OSX case. Can you provide these? Regards, Martin ___

Re: [Python-Dev] ac_sys_system == Monterey*?

2009-01-24 Thread skip
http://bugs.python.org/issue4111 Jeez, I'm an idiot. Should be http://bugs.python.org/issue5047 Skip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mai

Re: [Python-Dev] ac_sys_system == Monterey*?

2009-01-24 Thread skip
Martin> Monterey was cancelled in 2000, although parts of it were Martin> integrated into AIX 5L. Thanks... http://bugs.python.org/issue4111 It doesn't appear it's mentioned anywhere other than in the configure script. Skip ___ Python-De

[Python-Dev] Operator module deprecations

2009-01-24 Thread Raymond Hettinger
I would like to deprecate some outdated functions in the operator module. The isSequenceType(), isMappingType(), and isNumberType() functions never worked reliably and now their intended purpose has been largely fulfilled by ABCs. The isCallable() function has long been deprecated and I think it

[Python-Dev] mingw+msys port of python2.7a0 (svn #r68884)

2009-01-24 Thread Luke Kenneth Casson Leighton
http://bugs.python.org/issue5046 mingw+msys port which was previously done against python-2.5.2 has been brought forward to latest subversion r68884. the primary reason for initially doing python 2.5.2 was to 1) "stay out of the way" of primary python development 2) provide some hope for those pe

Re: [Python-Dev] PEP 374 (DVCS) now in reST

2009-01-24 Thread Brett Cannon
On Sat, Jan 24, 2009 at 07:25, Aahz wrote: > On Thu, Jan 22, 2009, Brett Cannon wrote: >> >> I have now converted PEP 374 >> (http://www.python.org/dev/peps/pep-0374/) from Google Docs to reST >> and checked it in. > > First of all, thanks for providing PEP number, URL, and short title; > that mak

Re: [Python-Dev] future-proofing vector tables for python APIs: binary-module interoperability

2009-01-24 Thread Luke Kenneth Casson Leighton
>> but basically, not only is this technique nothing new - it's in use in >> Apache RunTime, FreeDCE, the NT Kernel, the Linux Kernel - but also > This look like simple RPC implemantation. yep. > If I remember well SUN-RPC assign number to program, function, version. yep - i forgot about that

[Python-Dev] Change Makefile.pre.in based on configure?

2009-01-24 Thread skip
I'm working on issue 4111 which will add dtrace support to Python when requested by the builder and when supported by the platform (currently just Solaris and Mac OSX I believe). Sun and Apple have quite different ways to generate the code necessary to link into the executable. Sun's dtrace comma

Re: [Python-Dev] ac_sys_system == Monterey*?

2009-01-24 Thread Martin v. Löwis
> What is Monterey? Monterey was the code name of a joint operating system project of SCO and IBM, porting AIX to 64-bit processors (apparently, IA-64 and POWER). See http://www.cs.umbc.edu/help/architecture/idfmontereylab.pdf http://en.wikipedia.org/wiki/Project_Monterey Monterey was cancelled

Re: [Python-Dev] ac_sys_system == Monterey*?

2009-01-24 Thread Eric Smith
s...@pobox.com wrote: From configure.in: # The current (beta) Monterey compiler dies with optimizations # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? case $ac_sys_system in Monterey*) OPT="" ;; esac What is Monterey? C

[Python-Dev] ac_sys_system == Monterey*?

2009-01-24 Thread skip
>From configure.in: # The current (beta) Monterey compiler dies with optimizations # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? case $ac_sys_system in Monterey*) OPT="" ;; esac What is Monterey? Can this check be removed

Re: [Python-Dev] Additional behaviour for itertools.combinations

2009-01-24 Thread Raymond Hettinger
From: "Konrad Delong" I'm not sure if it's the right place to post it. If so - I'll be glad to learn where is one. Please post a feature request on the bug tracker and assign it to me. Anyway: I think the function itertools.combinations would benefit from making the 'r' (length of the combi

[Python-Dev] Additional behaviour for itertools.combinations

2009-01-24 Thread Konrad Delong
I'm not sure if it's the right place to post it. If so - I'll be glad to learn where is one. Anyway: I think the function itertools.combinations would benefit from making the 'r' (length of the combinations) argument optionally a sequence. With that change one could call combinations(sequence, [2,

Re: [Python-Dev] future-proofing vector tables for python APIs: binary-module interoperability

2009-01-24 Thread Roumen Petrov
Luke Kenneth Casson Leighton wrote: On Fri, Jan 23, 2009 at 10:48 PM, Roumen Petrov [SNIP] but it would certainly mean that there would be both a future-proof path for binary modules from either msvc-compiled _or_ mingw-compiled 2.5, 2.6, 2.7 etc. to work with 2.5, 2.6, 2.7, 2.8 etc. _without_

Re: [Python-Dev] PEP 374 (DVCS) now in reST

2009-01-24 Thread Nick Coghlan
Aahz wrote: > On Thu, Jan 22, 2009, Brett Cannon wrote: >> I have now converted PEP 374 >> (http://www.python.org/dev/peps/pep-0374/) from Google Docs to reST >> and checked it in. > > First of all, thanks for providing PEP number, URL, and short title; > that makes it much easier to keep track o

Re: [Python-Dev] subprocess crossplatformness and async communication

2009-01-24 Thread Guido van Rossum
Anatoly, I'm confused. The subprocess already allows reading/writing its stdin/stdout/stderr, and AFAIK it's a platform-neutral API. I'm sure there's something missing, but your post doesn't make it clear what exactly, and the recipe you reference is too large to digest easily. Can you explain wha

Re: [Python-Dev] PEP 374 (DVCS) now in reST

2009-01-24 Thread Aahz
On Thu, Jan 22, 2009, Brett Cannon wrote: > > I have now converted PEP 374 > (http://www.python.org/dev/peps/pep-0374/) from Google Docs to reST > and checked it in. First of all, thanks for providing PEP number, URL, and short title; that makes it much easier to keep track of the discussion on l

Re: [Python-Dev] Should ftplib use UTF-8 instead of latin-1 encoding?

2009-01-24 Thread Alexey G.
On Fri, Jan 23, 2009 at 11:18:37PM +0100, "Martin v. L?wis" wrote: > > I don't see how starting with an empty directory helps. The filename > > comes from the client, and the FTP server can't know what the actual > > encoding of that filename is. > > Sure it can. If the client supports RFC 2640,

[Python-Dev] subprocess crossplatformness and async communication

2009-01-24 Thread anatoly techtonik
Greetings, This turned out to be a rather long post that in short can be summarized as: "please-please-please, include asynchronous process communication in subprocess module and do not allow "available only on ..." functionality", because it hurts the brain". Code to speak for itself: http://cod

Re: [Python-Dev] About SCons Re: progress: compiling python2.5 under msys (specifically but not exclusively under wine) with msvcr80

2009-01-24 Thread anatoly techtonik
On Sat, Jan 24, 2009 at 12:28 AM, Roumen Petrov >> >> I would better use SCons for both unix and windows builds. In case of >> windows for both compilers - mingw and microsoft ones. To port curses >> extension to windows I need to know what gcc options mean, what are >> the rules to write Makefiles

[Python-Dev] future-proofing vector tables for python APIs: binary-module interoperability

2009-01-24 Thread Luke Kenneth Casson Leighton
On Fri, Jan 23, 2009 at 10:48 PM, Roumen Petrov wrote: >>> python.exe (say, the official one) loads >>> python25.dll. Then, an import is made of a ming-wine extension, say >>> foo.pyd, which is linked with libpython2.5.dll, which then gets loaded. >>> Voila, you have two interpreters in memory, w