[Python-Dev] PEP 380 (yield from a subgenerator) comments

2009-03-20 Thread Nick Coghlan
I really like the PEP - it's a solid extension of the ideas introduced by PEP 342. The two changes I would suggest is that the PEP be made more explicit regarding the fact that the try/finally block only enclose the yield expression itself (i.e. no other parts of the containing statement) and that

Re: [Python-Dev] Proposal: new list function: pack

2009-03-20 Thread Nick Coghlan
Hrvoje Niksic wrote: > Looking at izip(*[iter(l)]*n), I tend to agree. Note that the itertools recipes page in the docs includes the following: def pairwise(iterable): "s -> (s0,s1), (s1,s2), (s2, s3), ..." a, b = tee(iterable) next(b, None) return izip(a, b) There are a couple o

Re: [Python-Dev] What level of detail wanted for import and the language reference?

2009-03-20 Thread Brett Cannon
On Fri, Mar 20, 2009 at 20:18, Benjamin Peterson wrote: > 2009/3/20 Brett Cannon : > > Doc changes are now checked in. Someone who has not been starting at > import > > for over two years should probably go in and clean it up as it is > probably > > not clear to a newbie (but then again newbies sh

Re: [Python-Dev] What level of detail wanted for import and the language reference?

2009-03-20 Thread Benjamin Peterson
2009/3/20 Brett Cannon : > Doc changes are now checked in. Someone who has not been starting at import > for over two years should probably go in and clean it up as it is probably > not clear to a newbie (but then again newbies should not be reading the > language ref; more worried about the docs i

Re: [Python-Dev] What level of detail wanted for import and the language reference?

2009-03-20 Thread Brett Cannon
Doc changes are now checked in. Someone who has not been starting at import for over two years should probably go in and clean it up as it is probably not clear to a newbie (but then again newbies should not be reading the language ref; more worried about the docs in sys). On Mon, Mar 16, 2009 at

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Jesse Noller
On Fri, Mar 20, 2009 at 9:51 PM, wrote: >    Jesse> Known issue: > >    Jesse> http://bugs.python.org/issue3110 > >    Jesse> I haven't had time to look into it, I was planning on working on >    Jesse> many of the mp bugs during the sprint at pycon. > > Jesse, I will be at the sprints for a coup

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread skip
Jesse> Known issue: Jesse> http://bugs.python.org/issue3110 Jesse> I haven't had time to look into it, I was planning on working on Jesse> many of the mp bugs during the sprint at pycon. Jesse, I will be at the sprints for a couple days and should be able to test things out on So

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Scott Dial
Jesse Noller wrote: > On Fri, Mar 20, 2009 at 8:50 PM, Christian Heimes wrote: >> Martin v. Löwis schrieb: Today I was in contact with a Python user who tried to compile pyprocessing - the ancestor of multiprocessing - on Solaris. It failed to run because Solaris is missing two feat

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Jesse Noller
On Fri, Mar 20, 2009 at 8:50 PM, Christian Heimes wrote: > Martin v. Löwis schrieb: >>> Today I was in contact with a Python user who tried to compile >>> pyprocessing - the ancestor of multiprocessing - on Solaris. It failed >>> to run because Solaris is missing two features (HAVE_FD_TRANSFER and

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Christian Heimes
Martin v. Löwis schrieb: >> Today I was in contact with a Python user who tried to compile >> pyprocessing - the ancestor of multiprocessing - on Solaris. It failed >> to run because Solaris is missing two features (HAVE_FD_TRANSFER and >> HAVE_SEM_TIMEDWAIT). Does anybody have a Solaris box at his

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Jesse Noller
Known issue: http://bugs.python.org/issue3110 I haven't had time to look into it, I was planning on working on many of the mp bugs during the sprint at pycon. On Fri, Mar 20, 2009 at 8:18 PM, Christian Heimes wrote: > Hello fellow co-developers! > > Today I was in contact with a Python user who

Re: [Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Martin v. Löwis
> Today I was in contact with a Python user who tried to compile > pyprocessing - the ancestor of multiprocessing - on Solaris. It failed > to run because Solaris is missing two features (HAVE_FD_TRANSFER and > HAVE_SEM_TIMEDWAIT). Does anybody have a Solaris box at his disposal to > test the setti

[Python-Dev] Multiprocessing on Solaris

2009-03-20 Thread Christian Heimes
Hello fellow co-developers! Today I was in contact with a Python user who tried to compile pyprocessing - the ancestor of multiprocessing - on Solaris. It failed to run because Solaris is missing two features (HAVE_FD_TRANSFER and HAVE_SEM_TIMEDWAIT). Does anybody have a Solaris box at his disposa

[Python-Dev] Core projects for Summer of Code

2009-03-20 Thread average
> Summer of Code is ramping up.  Every year the common complaint is that not > enough Python core projects get proposed by students, and of course a big > reason for that is often the only encouragement we offer prospective > students is a link to the PEP index. > > The challenge is finding project

Re: [Python-Dev] Py_ssize_t support for ctypes arrays and pointers

2009-03-20 Thread Kristján Valur Jónsson
Will testing an array of chars do? You can easily allocate 4-5Gb on a regular 64bit pc, even with only 1G of ram, given that your swap space is sufficient. If you want to excercise your array, then you might get some paging, but it's not completely impossible. K -Original Message- From:

[Python-Dev] Py_ssize_t support for ctypes arrays and pointers

2009-03-20 Thread Thomas Heller
I received some (so far unfinished) patches for ctypes that will allow to create arrays with more than 2**31 elements and that will eventually also support pointer offsets larger than int, on 64-bit platforms. Since I do not have a machine with so much memory: Does one of the buildbots allow to ru

[Python-Dev] Summary of Python tracker Issues

2009-03-20 Thread Python tracker
ACTIVITY SUMMARY (03/13/09 - 03/20/09) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2392 open (+27) / 14957 closed (+14) / 17349 total (+41) Open issues with patches: 836 Average

Re: [Python-Dev] Proposal: new list function: pack

2009-03-20 Thread Hrvoje Niksic
Isaac Morland wrote: I propose this because i need a lot of times pack and slide function over list and this one combine the two in a generator way. I've written functions with a subset of this functionality on more than one occasion. Having it in itertools looks like it would be useful to a

Re: [Python-Dev] Proposal: new list function: pack

2009-03-20 Thread Isaac Morland
On Fri, 20 Mar 2009, paul bedaride wrote: I propose a new function for list for pack values of a list and sliding over them: then we can do things like this: for i, j, k in pack(range(10), 3, partialend=False): print i, j, k I propose this because i need a lot of times pack and slide functi

Re: [Python-Dev] Proposal: new list function: pack

2009-03-20 Thread Aahz
On Fri, Mar 20, 2009, paul bedaride wrote: > > I propose a new function for list for pack values of a list and > sliding over them: Please switch this discussion to python-ideas -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "Programming language design is not a

Re: [Python-Dev] [snakebite] Re: snakebite for GSoC?

2009-03-20 Thread C. Titus Brown
On Fri, Mar 20, 2009 at 07:37:40AM +, Trent Nelson wrote: -> -> On Thu, Mar 19, 2009 at 10:32:03AM -0700, ajaksu wrote: -> > Does anyone have good ideas for assigning students to snakebite? Is it -> > too early? -> -> Perhaps a little too early, python-dev@ won't know anything about -

[Python-Dev] Proposal: new list function: pack

2009-03-20 Thread paul bedaride
I propose a new function for list for pack values of a list and sliding over them: then we can do things like this: for i, j, k in pack(range(10), 3, partialend=False): print i, j, k I propose this because i need a lot of times pack and slide function over list and this one combine the two in

Re: [Python-Dev] [snakebite] snakebite for GSoC?

2009-03-20 Thread Trent Nelson
On Thu, Mar 19, 2009 at 10:32:03AM -0700, ajaksu wrote: > Does anyone have good ideas for assigning students to snakebite? Is it > too early? Perhaps a little too early, python-dev@ won't know anything about Snakebite yet as I haven't publicly announced it there ;-) Watch this spa