Re: [Python-Dev] PEP 3145 (With Contents)

2012-12-24 Thread Eric Pruitt
Hey, Anatoly, you are free to modify the PEP and code. I do not have any plans to work on this right now. Eric On Mon, Dec 24, 2012 at 04:42:20PM +0300, anatoly techtonik wrote: > What should I do in case Eric lost interest after his GSoC project for PSF > appeared as useless for python-dev comm

Re: [Python-Dev] PEP 3145 (With Contents)

2009-09-15 Thread Eric Pruitt
I'm bumping this PEP again in hopes of getting some feedback. Thanks, Eric On Tue, Sep 8, 2009 at 23:52, Eric Pruitt wrote: > PEP: 3145 > Title: Asynchronous I/O For subprocess.Popen > Author: (James) Eric Pruitt, Charles R. McCreary, Josiah Carlson > Type: Standards Track >

[Python-Dev] PEP 3145 (With Contents)

2009-09-08 Thread Eric Pruitt
3145: PEP: 3145 Title: Asynchronous I/O For subprocess.Popen Author: (James) Eric Pruitt, Charles R. McCreary, Josiah Carlson Type: Standards Track Content-Type: text/plain Created: 04-Aug-2009 Python-Version: 3.2 Abstract: In its present form, the subprocess.Popen implementation is prone to

[Python-Dev] PEP 3145

2009-09-07 Thread Eric Pruitt
Hello all, I have been working on adding asynchronous I/O to the Python subprocess module as part of my Google Summer of Code project. Now that I have finished documenting and pruning the code, I present PEP 3145 for its inclusion into the Python core code. Any and all feedback on the PEP (http://

[Python-Dev] PEP Submission

2009-08-17 Thread Eric Pruitt
Several days ago, around the time the python.org servers went down, I submitted a PEP to edi...@python.org. When things to have been worked, I submitted the PEP again. I have not seen any activity on the PEP in Python-Dev or any reply acknowledging that it was received. Did I misunderstand the proc

Re: [Python-Dev] (try-except) conditional expression similar to (if-else) conditional (PEP 308)

2009-08-06 Thread Eric Pruitt
What about catching specific error numbers? Maybe an option so that the dictionary elements can also be dictionaries with integers as the keys: filedata = try_3(open, randomfile, except = { IOError, {2: None} } ) If it isn't found in the dictionary, then we raise the error. On Thu, Aug 6, 2

Re: [Python-Dev] Functionality in subprocess.Popen.terminate()

2009-08-04 Thread Eric Pruitt
On Tue, Aug 4, 2009 at 04:27, Nick Coghlan wrote: > Eric Pruitt wrote: >> In my GSoC project, I have implemented asnychronous I/O in >> subprocess.Popen. Since the read/write operations are asynchronous, the >> program may have already exited by the time one calls the asyncre

[Python-Dev] Functionality in subprocess.Popen.terminate()

2009-08-03 Thread Eric Pruitt
In my GSoC project, I have implemented asnychronous I/O in subprocess.Popen. Since the read/write operations are asynchronous, the program may have already exited by the time one calls the asyncread function I have implemented. While it returns the data just fine, I have come across an issue with t

Re: [Python-Dev] Implementing File Modes

2009-07-30 Thread Eric Pruitt
> On Tue, 28 Jul 2009 04:06:45 am Eric Pruitt wrote: > > I am implementing the file wrapper using changes to subprocess.Popen > > that also make it asynchronous and non-blocking so implementing "r+" > > should be trivial to do. How about handling stderr? I have the

Re: [Python-Dev] Implementing File Modes

2009-07-29 Thread Eric Pruitt
p.stdin > else: >fileobj = open("notsosecret.html") > > I think that works. Is there something this way won't work for? You > can also do the same thing to get stdout and stderr file objects. I > guess a wrapper would simplify this process. > > -Devin >

Re: [Python-Dev] Implementing File Modes

2009-07-29 Thread Eric Pruitt
My motivation came from an instance when I was using subprocess.Popen for a Linux / Windows cross platform program. In part of the program, I was writing and reading to a cron like object. On Windows, it was a text file and on Linux it would be the crontab executable. Had I been able to substitute

Re: [Python-Dev] Implementing File Modes

2009-07-27 Thread Eric Pruitt
n optional additional argument like "outputstderr = False", create another function that toggles / sets whether stderr or stdout is returned or mix the two outputs. Thanks for the input, Eric On Mon, Jul 27, 2009 at 10:46, Paul Moore wrote: > 2009/7/27 Eric Pruitt : > > Hello,

[Python-Dev] Implementing File Modes

2009-07-27 Thread Eric Pruitt
Hello, Since there was a bit of confusion last time, I'll start by saying I am working on the subprocess.Popen module for Google Summer of Code. One of the features I am implementing is a class so that a running process can stand in in place of a file. For examples, instead of open( "filelist", mo

[Python-Dev] Replacing PyWin32's PeekNamedPipe, ReadFile, and WriteFile

2009-07-22 Thread Eric Pruitt
Hello, I have written replacements for a few of Mark Hammond's PyWin32 functions using ctypes to call upon the Windows kernel API. Code can be found here; http://pastebin.com/m46de01f . When calling ReadFile, it appears that the kernel API converts '/n' newlines '/r/n' newlines. I have not been ab

Re: [Python-Dev] Windows Toolchain

2009-07-14 Thread Eric Pruitt
The problem appears resolved again and I have two posts on the issue on my blog located at http://subdev.blogspot.com/. I was missing an MSVC++ run-time DLL and re-installing Visual C++ Express fixed the problem. A bit of a somewhat random note -- looking through some of the buildbot output for Pyt

Re: [Python-Dev] Windows Toolchain

2009-07-14 Thread Eric Pruitt
I will keep a grace period in mind when I am posting. In my defense, however, I had been working on the problem for some time before posting this and my messages in quick succession were in response to the suggestions people offered. The problem has arisen again but I will work on it some more and

Re: [Python-Dev] Windows Toolchain

2009-07-13 Thread Eric Pruitt
wrote: > 2009/7/13 Paul Moore : > > 2009/7/13 Eric Pruitt : > >> It is indeed the file ../PCBuild/pcbuild.sln. The line endings appear to > be > >> Unix style but after fixing them, I still have the same problem. > [...] > > I'd suggest trying to rep

Re: [Python-Dev] Windows Toolchain

2009-07-13 Thread Eric Pruitt
9/7/13 Eric Pruitt : > > It is indeed the file ../PCBuild/pcbuild.sln. The line endings appear to > be > > Unix style but after fixing them, I still have the same problem. > > Where did you get your copy of the Python source from? If it's from > Subversion, I'm sur

Re: [Python-Dev] Windows Toolchain

2009-07-13 Thread Eric Pruitt
It is indeed the file ../PCBuild/pcbuild.sln. The line endings appear to be Unix style but after fixing them, I still have the same problem. On Mon, Jul 13, 2009 at 11:43, Amaury Forgeot d'Arc wrote: > 2009/7/13 Eric Pruitt : > > I opened the solution, hit Ctrl+F5 and it began co

Re: [Python-Dev] Windows Toolchain

2009-07-13 Thread Eric Pruitt
n32-temp-Debug\select\BuildLog.htm" > 21>select - 1 error(s), 0 warning(s) > == Build: 0 succeeded, 20 failed, 4 up-to-date, 1 skipped == On Mon, Jul 13, 2009 at 11:03, Amaury Forgeot d'Arc wrote: > Hi, > > 2009/7/13 Eric Pruitt : > > Hello,

Re: [Python-Dev] Windows Toolchain

2009-07-13 Thread Eric Pruitt
Linking... > LINK : fatal error LNK1181: cannot open input file '.\python31_d.lib' > Creating browse information file... > Microsoft Browse Information Maintenance Utility Version 9.00.30729 > Copyright (C) Microsoft Corporation. All rights reserved. On Mon, Jul 13, 2009 at 10

[Python-Dev] Windows Toolchain

2009-07-13 Thread Eric Pruitt
Hello, I am trying to build Python 3.1 on Windows XP Pro (32 bit) using Microsoft Visual C++ Express Edition in order to test some modifications I made to the _subprocess.c file as part of my Google Summer of Code proposal. I cannot seem to figure out how to compile Python on Windows and could use

[Python-Dev] Bytes, Strings, Encoding

2009-07-01 Thread Eric Pruitt
Hello, I am working on the subprocess.Popen module for Python 2.7 and am now moving my changes over to Python 3.1 however I am having trouble with the whole byte situation and I can't quite seem to understand how to go back and forth between bytes and strings. I am also looking for the Python 3k e

Re: [Python-Dev] Popen asynchronous input for Windows

2009-06-18 Thread Eric Pruitt
t 13:32, Christian Heimes wrote: > Eric Pruitt schrieb: > > Hello, > > > > I am looking for alternatives to Josiah Carlson's asynchronous I/O patch > for > > subprocess.Popen. While his patch seems to work well, it relies on > pywin32 > >

[Python-Dev] Popen asynchronous input for Windows

2009-06-18 Thread Eric Pruitt
Hello, I am looking for alternatives to Josiah Carlson's asynchronous I/O patch for subprocess.Popen. While his patch seems to work well, it relies on pywin32 which is not part of the standard Python library. If I cannot find an alternative, I will be using cTypes with the parts of Mark Hammond's

Re: [Python-Dev] Status of 2.7 and 3.2

2009-06-13 Thread Eric Pruitt
I am in the process of implementing a number of often requested features and proposed patches in the subprocess module for my Google Summer of Code 2009 project. For information on my progress, check out my blog located at * http://subdev.blogspot.com/* . Any comments a