Well, with a few changes to your code, that would indeed work (you are using
stdin as your pipe. Correct me if I'm wrong but if you intend to read from
it, you need to change it to "stdout = subprocess.PIPE" and the other lines
as well to reflect this change). My Google Summer of Code modifications
Hmm... can't you do this?
if encryptionEnabled:
p = subprocess.Popen(["gpg", "--decrypt", "supersecret.html.gpg"],
stdin = subprocess.PIPE)
fileobj = 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 sa
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
On Sun, Jul 26, 2009 at 11:01 AM, Joshua Haberman wrote:
> I'm writing a C Python extension that needs to generate PyTypeObjects
> dynamically. Unfortunately, the Py_TPFLAGS_HEAPTYPE flag is overloaded
> in a way that makes it difficult to achieve this goal.
>
> The documentation for Pt_TPFLAGS_HE
Jesse Noller gmail.com> writes:
>
> I really do think this mail thread needs to move to disutils-sig or
> python-ideas.
+1
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.
On Wed, Jul 29, 2009 at 2:36 AM, David Lyon wrote:
> On Wed, 29 Jul 2009 10:56:20 +1000, Nick Coghlan
> wrote:
>> The words "eggs" brings with it a whole lot more baggage than just the
>> sum of the technical parts in the language core that support them
>> (primarily distutils and zipimport).
>
>
David Lyon wrote:
> There's an awful lot to take in, and there must be 20,000 lines of
> emails for every 1 line of python code that is required to fix this
> thing.
Yep, which goes way back to one of my first emails in this thread:
compared to the social aspects, the technical aspects of packagin