Re: [Python-Dev] io.BufferedReader.peek() Behaviour in python3.1

2009-06-12 Thread Cameron Simpson
On 13Jun2009 12:24, Nick Coghlan wrote: | Frederick Reeve wrote: | > The other point still stands though. I would like to see peek | > changed. I am willing to write and submit changes but don't want to | > unless others agree this is a good idea. So I put forth the | > implementation at the bo

Re: [Python-Dev] io.BufferedReader.peek() Behaviour in python3.1

2009-06-12 Thread Nick Coghlan
Frederick Reeve wrote: > The other point still stands though. I would like to see peek > changed. I am willing to write and submit changes but don't want to > unless others agree this is a good idea. So I put forth the > implementation at the bottom of this email. If its bad or you don't > see

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FORTHE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Philip Jenvey
On Jun 12, 2009, at 5:17 PM, Raymond Hettinger wrote: [Matthew Wilkes] Oh, I didn't mean they should use proprietary software, just that in my experience the kind of people who are active in open source are quite anti-war, green, etc. There are notable exceptions, but I know people w

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FORTHE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Nick Coghlan
Raymond Hettinger wrote: > > [Matthew Wilkes] >> Oh, I didn't mean they should use proprietary software, just that in >> my experience the kind of people who are active in open source are >> quite anti-war, green, etc. There are notable exceptions, but I know >> people who worry that their wor

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FORTHE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Phillip Sitbon
>> I question the whole notion of using open source in military weapons. >> It seems like a rather basic violation of operational security.  Perhaps >> your enemies will exploit your bugs instead of nicely reporting them >> and submitting patches on SourceForge ;-) > > Eric Raymond would argue that

Re: [Python-Dev] Iterator version of contextlib.nested

2009-06-12 Thread Nick Coghlan
Hagen Fürstenau wrote: > I'm proposing to add an iterator version of "nested" to contextlib > (possibly called "inested"), which takes an iterable of context managers > instead of a variable number of parameters. The implementation could be > taken over from the present "nested", only changing "def

[Python-Dev] io.BufferedReader.peek() Behaviour in python3.1

2009-06-12 Thread Frederick Reeve
Greetings, I feel the need to point out I made a mistake. When I wrote my last email I said the behavior had changed python3-3.1. This seems not to be the case.. I had made that assumption because I had written code based on the looking at the code in _pyio.py as well as the python3 documenta

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FORTHE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Guido van Rossum
On Fri, Jun 12, 2009 at 5:17 PM, Raymond Hettinger wrote: > > [Matthew Wilkes] >> >> Oh, I didn't mean they should use proprietary software, just that in  my >> experience the kind of people who are active in open source are  quite >> anti-war, green, etc.  There are notable exceptions, but I know

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FORTHE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Raymond Hettinger
[Matthew Wilkes] Oh, I didn't mean they should use proprietary software, just that in my experience the kind of people who are active in open source are quite anti-war, green, etc. There are notable exceptions, but I know people who worry that their work will have military applications, an

Re: [Python-Dev] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-12 Thread Christian Heimes
Facundo Batista wrote: > I just don't like a huge try/finally... but as FDs are just ints, do > you think is there a better way to handle it? How about a nice 'n shiny context wrapper for the pipe: import os class Pipe(object): def __enter__(self): self.read, self.write = os.pipe()

Re: [Python-Dev] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-12 Thread Christian Heimes
Facundo Batista wrote: > I just don't like a huge try/finally... but as FDs are just ints, do > you think is there a better way to handle it? How about a nice 'n shiny context wrapper for the pipe: import os class Pipe(object): def __enter__(self): self.read, self.write = os.pipe()

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FOR THE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Matthew Wilkes
On 13 Jun 2009, at 01:00, Guido van Rossum wrote: That's a rather presumptuous statement. Despite the poster's use of SHOUTING I don't see a reason to tell them they should use proprietary software just because you disagree with their politics Oh, I didn't mean they should use proprietary sof

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FOR THE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Benjamin Peterson
2009/6/12 Guido van Rossum : > On Fri, Jun 12, 2009 at 4:53 PM, Matthew > Wilkes wrote: >> On 13 Jun 2009, at 00:01, OMEGA RED wrote: >>> HOW MANY OUT THERE WANT TO HELP IN THIS ENDEAVOR ? >> >> Nobody here.  You're off topic, this list is for development of Python, not >> pet projects. > > True. C

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FOR THE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Guido van Rossum
On Fri, Jun 12, 2009 at 4:53 PM, Matthew Wilkes wrote: > > On 13 Jun 2009, at 00:01, OMEGA RED wrote: > >> DEVELOP THE FIRST AND ONLY COMPLETELY OPEN SOURCE VARIANT OF THE >> PROPULSION ENGINE FOR THE F-35 JOINT STRIKE FIGHTER > > You're unlikely to find many people who want to help use open-source

Re: [Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FOR THE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread Matthew Wilkes
On 13 Jun 2009, at 00:01, OMEGA RED wrote: DEVELOP THE FIRST AND ONLY COMPLETELY OPEN SOURCE VARIANT OF THE PROPULSION ENGINE FOR THE F-35 JOINT STRIKE FIGHTER You're unlikely to find many people who want to help use open-source to facilitate murder. HOW MANY OUT THERE WANT TO HELP IN T

[Python-Dev] FINAL PROPULSION OPEN SOURCE ENGINE VARIANT FOR THE F-35 JOINT STRIKE FIGHTER

2009-06-12 Thread OMEGA RED
  TO ALL,     I AM HAPPY TO SAY THAT I AM NOW IN THE PROCESS OF DEVELOPING A WEBSITE FOR THE STATED PURPOSE OF COMBINING SOME OF THE BEST MINDS IN THE WORLD.  THIS PROJECT WILL BE A MEANS TO DEVELOP THE FIRST AND ONLY COMPLETELY OPEN SOURCE VARIANT OF THE PROPULSION ENGINE FOR THE F-35 J

[Python-Dev] Avoiding file descriptors leakage in subprocess.Popen()

2009-06-12 Thread Facundo Batista
In a long lived process at work, we started leaking file descriptors. The problem were that subprocess.Popen._execute_child() method creates two files descriptors through a call to os.pipe(), and after some work it closes them. But an os.read() on the descriptor was interrupted (EINTR), so an exce

[Python-Dev] Summary of Python tracker Issues

2009-06-12 Thread Python tracker
ACTIVITY SUMMARY (06/05/09 - 06/12/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. 2225 open (+39) / 15869 closed (+26) / 18094 total (+65) Open issues with patches: 882 Average

[Python-Dev] Iterator version of contextlib.nested

2009-06-12 Thread Hagen Fürstenau
contextlib.nested has recently been deprecated on grounds of being unnecessary now that the with statement accepts multiple context managers. However, as has been mentioned before (http://mail.python.org/pipermail/python-dev/2009-May/089359.html), that doesn't cover the case of a variable numbe