Re: Building Binary Packages

2007-10-10 Thread Jim B. Wilson
On Wed, 10 Oct 2007 14:35:35 +, kyosohma wrote: > I am trying to figure out how to build binaries for Python packages and > I've done it with MinGW. Apparently, you still can: http://tinyurl.com/yb4bps -- http://mail.python.org/mailman/listinfo/python-list

The curious behavior of integer objects

2007-01-15 Thread Jim B. Wilson
Am I nuts? Or only profoundly confused? I expected the this little script to print "0": class foo(int): def __init__(self, value): self = value & 0xF print foo(0x10) Instead, it prints "16" (at least on python 2.4.4 (Linux) and 2.5 (Wine). Jim Wilson GNV, FL -- http://mail.python.org/ma

Debugging pipe IPC

2007-12-17 Thread Jim B. Wilson
I have the mother (of all) application(s, written in C++) that occasionally outsources certain tasks to a child Python script. The mother fork/execs (or equivalent) the child and then begins serving the child's requests. The child/client sends requests on its stdout and receives responses on

Re: Debugging pipe IPC

2007-12-17 Thread Jim B. Wilson
Ian Clark pointed me to: > ... the cmd module. > Yes, I found that, but I could only get it to print a nice interactive prompt, "(Cmd)", read a line of input and discard it. Apparently, I'm too stupid to figure out how to hook it into python. Jim

Re: Another newbie design question

2007-12-17 Thread Jim B. Wilson
[EMAIL PROTECTED] wrote: > If you can only [block comments] or [multi-line strings] the other, > which is more helpful? I'm afraid no one would use a language that didn't feature block comments. However, inspection of a vast corpus of code might lead one to believe that any commenting capabili

Re: Debugging pipe IPC

2007-12-17 Thread Jim B. Wilson
Ian Clark wrote: > Jim B. Wilson wrote: > ... >> The child/client sends requests on its stdout and receives responses >> on stdin. > > So, why can't you just run this client on the command line and let the > shell handle stdin/stdout for you? I'm not s

Re: Debugging pipe IPC

2007-12-18 Thread Jim B. Wilson
Ian Clark wrote: > ... whatever 'mother' was sending it ("Clean your room!" most like) :) > If it's very verbose ... Alas, it is quite verbose. Constructing a single instance of a class (from the Pyrex extension acting as the child's two-way radio) could involve tens of thousands of more-or-le

Re: Debugging pipe IPC

2007-12-20 Thread Jim B. Wilson
Ian Clark wrote: > import os > os.system("netcat -l -p 1234 localhost") > > HTH, Nope, but the network theme got me thinking about how one might run Python on a remote host. After a few false starts, Googling "remote python shell" led me to Guido's "ripshell.py" (not *that* Guido, a diffe