Behaviour of subprocess.Popen, ssh and nohup I don't understand

2011-03-31 Thread Adriaan Renting
ubprocess is actually running will it suspend if I generate keystrokes. If the ssh command is executed without -T option it suspends directly, so I think it's related to the ssh command. I log in with a public/private key pair to avoid having to enter a password. Any suggestions are welcome, thanks, Adriaan Renting -- http://mail.python.org/mailman/listinfo/python-list

Re: Behaviour of subprocess.Popen, ssh and nohup I don't understand

2011-04-06 Thread Adriaan Renting
>>> On 4/1/2011 at 07:33 AM, Kushal Kumaran wrote: > On Fri, Apr 1, 2011 at 4:31 AM, Adriaan Renting wrote: >> L.S. >> >> I have a problem that a background process that I'm trying to start with >> subprocess.Popen gets interrupted and starts waiting f

Re: Behaviour of subprocess.Popen, ssh and nohup I don't understand

2011-04-07 Thread Adriaan Renting
Thanks, that explains a lot. Adriaan Renting. >>> On 4/6/2011 at 07:43 PM, Dan Stromberg wrote: > On Wed, Apr 6, 2011 at 12:47 AM, Adriaan Renting wrote: >> >> >> This solves the problem using stdin=open(os.devnull, 'rb') instead of >> stdin

Re: [OT] Dutch Reach [was Re: Where has the practice of sending screen shots as source code come from?]

2018-01-31 Thread Adriaan Renting
Adriaan Renting| Email: rent...@astron.nl Software Engineer Radio Observatory ASTRON | Phone: +31 521 595 100 (797 direct) P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 595 101 The Netherlands| Web: http://www.astron.nl

[OT] multicore/cpu history Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-19 Thread Adriaan Renting
Adriaan Renting| Email: rent...@astron.nl Software Engineer Radio Observatory ASTRON | Phone: +31 521 595 100 (797 direct) P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 595 101 The Netherlands| Web: http://www.astron.nl

[OT] Re: Thank you Python community!

2018-03-20 Thread Adriaan Renting
Inc." on Netflix and I'm basically stunned and deeply concerned about > the major opioid epidemic in the US. Have no clue what this has to do with python, but the opioid epidemic was created by collision between big pharma and the government. -- https://mail.python.org/mailman/listinf

Re: Loop with else clause

2019-02-05 Thread Adriaan Renting
I don't know if it is very Pythonic, but I would do something like if no_oscar_nominees: print ("Sorry ...") else: print_list_of_oscar_nominees() And yes, that for/else construct can be confusing. Adriaan. >>> On 5-2-2019 at 5:29, DL Neil wrote: > What is the pythonic way to handl

Re: Loop with else clause

2019-02-08 Thread Adriaan Renting
ld be to handle your empty list/no valid candidates cases first, and then do the for loop at the end. If you style this with if/elif/else, or put return statements in certain places, I have no opinion about and will depend on the specific problem. Cheers, Adriaan Renting. >>> On 7-2-2019

Re: Why Python has no equivalent of JDBC of Java?

2019-05-21 Thread Adriaan Renting
I think it's partially a design philosophy difference. Java was meant to be generic, run anywhere and abstract and hide differences in its underlying infrastructure. This has led to the Java VM, and also JDBC I guess. Python was more of a script interpreted C-derivative, much closer to the bare

Re: Ide RAD for linux?

2005-09-23 Thread Adriaan Renting
I use Eric3 as IDE on Linux. -- http://mail.python.org/mailman/listinfo/python-list

Re: Stampare su stampante aghi

2005-09-23 Thread Adriaan Renting
|>>>"lux" <[EMAIL PROTECTED]> 09/22/05 4:01 pm >>> |Salve a tutti, |sono alle prese con delle stampe su |stampanti ad aghi... | |Per stampare puro testo la soluzione più gettonata |sembra essere | |f = open("LPT1:") |f.write("bla bla") |f.close() | |devo dire che funziona benissimo, ma

Re: Soap Question (WSDL)

2005-09-30 Thread Adriaan Renting
You need the WSDL file if you want external probrams to be able to discover what WebService you are running, so it depends on your need if you need to use one. You can perfectly run a SOAP service without a WSDL file, using SOAPpy, only then external programs do not have a way to find out how to

Re: IDLE dedent/unindent key bindings for non-us keybord?

2005-10-12 Thread Adriaan Renting
You could try using the Qscintilla based Eric3 IDE, it uses Ctrl-i and Ctrl-Shift-i. >>><[EMAIL PROTECTED]> 10/02/05 5:52 pm >>> |What could be wrong here, and do you have any other suggestions for a |"dedent" key binding that may work on a non-us/swedish keyboard (or |maybe an alternative e

Re: Converting C++ array into Python

2005-10-12 Thread Adriaan Renting
accomplish, how, and why it fails. Adriaan Renting. >>>"Deshdeep, Singh (IE10)" <[EMAIL PROTECTED]> 10/04/05 7:33 am >>> I am extending C++ application with python. I am not able to convert a C++ array in Python. If anyone has the experience of the

Re: UI toolkits for Python

2005-10-14 Thread Adriaan Renting
re's any consensus. I think any of a Tk, Wxwindows, GTK or Qt based solution might work for you, depending on what you are used to. Tk seems to be most traditional Python, but I think it's ugly, and I realy like the high level functionality that Qt provides. Adriaan Renting. >&

Re: UI toolkits for Python

2005-10-14 Thread Adriaan Renting
>>>Mike Meyer <[EMAIL PROTECTED]> 10/14/05 5:39 pm >>> $"Adriaan Renting" <[EMAIL PROTECTED]> writes: $[On Qt] $>I don't know how it performs on OSX, I think it works fine, as Qt is $>available on OSX. $ $Qt on OS X is halfway there. It loo

Re: UI toolkits for Python

2005-10-14 Thread Adriaan Renting
>>>Mike Meyer <[EMAIL PROTECTED]> 10/14/05 5:39 pm >>> #"Adriaan Renting" <[EMAIL PROTECTED]> writes: #[On Qt] #... #[mike on qt for Mac Os X] #... I've looked some more into this, and it seems that the confusion is because Qt on Mac maps:

OT: On Microsoft monopolies, was MS FAQ

2005-10-17 Thread Adriaan Renting
>>>"Jeroen Wenting" <"jwenting athornetdotdemondotnl"@bag.python.org> 10/16/05 >>>11:49 am >>> % %"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message %news:[EMAIL PROTECTED] %>In comp.os.linux.misc Jeroen Wenting %>wrote: %>>Without Microsoft 90% of us would never have seen a computer mo

OT: OS monopolies, was MS FAQ

2005-10-17 Thread Adriaan Renting
>>>John Bokma <[EMAIL PROTECTED]> 10/17/05 5:27 am >>> #Roel Schroeven <[EMAIL PROTECTED]> wrote: # #> #>Maybe they can force it, maybe not, but that's not the point (again). #>The point is what their intentions are, and that is trying to lock #>people into using their software. # #Can you

OT: MS litigation history, was MS FAQ

2005-10-18 Thread Adriaan Renting
>>>"David Schwartz" <[EMAIL PROTECTED]> 10/18/05 7:21 am >>> > >"Roedy Green" <[EMAIL PROTECTED]> wrote in >message news:[EMAIL PROTECTED] > >>On Mon, 17 Oct 2005 19:44:55 -0700, "David Schwartz" >><[EMAIL PROTECTED]> wrote or quoted : > >>> It is not Microsoft's obligation to be "fa

Re: Hygenic Macros

2005-10-18 Thread Adriaan Renting
Using numarray/pylab there's also dot: >>> from pylab import * >>> A = array(range(10)) >>> B = array(range(10)) >>> A * B [ 0, 1, 4, 9,16,25,36,49,64,81,] >>> dot(A, B) 285 It might also make your code more readable. I would like "A dot B", but even using ipython I can only get as close as "dot

Re: IDE recommendation please

2005-10-24 Thread Adriaan Renting
"kery" <[EMAIL PROTECTED]> 10/23/05 9:33 am >>> >Alex Martelli wrote: >>microsnot <[EMAIL PROTECTED]> wrote: >> > >Any suggestions for Linux, specifically SuSE or perhaps Red Hat? > >Thanks in advance, >Kery > Eric3 -- http://mail.python.org/mailman/listinfo/python-list

Re: Redirect os.system output

2005-10-25 Thread Adriaan Renting
Maybe Pexpect can help you, I think it does what you want, I'm just not sure it works on windows, as I think it uses pty's. Please read it's FAQ about stdio buffer behaviour, I think it's also valid on Windows. pexpect.sourceforge.net Adriaan Renting. >>>"

Re: Microsoft Hatred FAQ

2005-10-25 Thread Adriaan Renting
>>>"David Schwartz" <[EMAIL PROTECTED]> 10/25/05 6:06 am >>> & & Do you think it would be immoral if Microsoft said, "we will only sell &Windows wholesale to dealers who don't sell other operating systems?" & & DS 7 & It goes one further as that, MS had the tactic of "we will only sell Wi

Re: Microsoft Hatred FAQ

2005-10-25 Thread Adriaan Renting
>>>"David Schwartz" <[EMAIL PROTECTED]> 10/25/05 9:44 am >>> % %"Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message %news:[EMAIL PROTECTED] % %>>Essentially, Microsoft asked for exclusive arrangements. That is, %>>arrangements wherein you could not sell competing products if you wished

Re:

2005-06-23 Thread Adriaan Renting
I'm using Eric3 and realy like it. http://www.die-offenbachs.de/detlev/eric3.html Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 597 332 The Nether

Re: Boss wants me to program

2005-06-28 Thread Adriaan Renting
; "http://digilander.libero.it/chiediloapippo/Engineering/iarchitect/shame.htm"; "http://www.pixelcentric.net/x-shame/"; "http://www.joelonsoftware.com/articles/Wrong.html"; Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O

Re: Which kid's beginners programming - Python or Forth?

2005-06-28 Thread Adriaan Renting
In addition, for and while loops are pretty universally found in all program languages. It is therefore an essential part of material supposed to teach programming. Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM

Re: Boss wants me to program

2005-06-29 Thread Adriaan Renting
re school system. I'll stop here, or this will become a long OT rant. Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 597 332 The Netherlands| Web:

Re: Reading output from a child process non-blockingly

2005-06-30 Thread Adriaan Renting
-- In 2.3.4 this exits with an exception OSError: [Errno 5] Input/output error after showing the 'ls' output, I have a problem that this works in 2.3.4 but in 2.3.5 this just keeps running indefinately. In my own code I handle the OSError by setting fd_eof=1. This onyl works on Unix. Adriaan

Re:

2005-06-30 Thread Adriaan Renting
I do fundamentally not agree with you that IDE's and GUI design tools are a waste of time. I think that with a good IDE (graphical or not) the synergy between editor, debugger, documentation, refactoring, translations/internationalization, version control, software modelling, profiling, metrics, c

RE: Debugger Confusion

2005-06-30 Thread Adriaan Renting
#x27; - 'myuser' | L-- list L-[0] - 1 L-[1] - 'some value' You should know by now that I like this IDE ;-) Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990

Re:

2005-07-01 Thread Adriaan Renting
used than it is about any single > technology involved. Agreed. Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 597 332 The Netherlands| Web: h

LOC in Python and C++ in large projects

2005-07-01 Thread Adriaan Renting
omas Heller <[EMAIL PROTECTED]> 07/01/05 11:36 AM >>> Thomas Heller <[EMAIL PROTECTED]> writes: > "Adriaan Renting" <[EMAIL PROTECTED]> writes: > >> I'm not a very experienced Python programmer yet, so I might be >> mistaken, but there

Re:

2005-07-01 Thread Adriaan Renting
Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 597 332 The Netherlands| Web: http://www.astron.nl/~renting/ >>> Tom Anderson <[EMAIL PR

Re: Rich Graphics?

2005-07-28 Thread Adriaan Renting
I realy like Qt through PyQt. The combination Eric3+Qtdesigner is quite useful. Maybe PyQt is not yet ready for the new Qt4 I think, but it does lot's of the graphical stuff you seem to require. Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 21

Re: Opinions on KYLIX 3 (Delphi 4 Linux)

2005-07-29 Thread Adriaan Renting
ll probably halt any further Linux developement. Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 597 332 The Netherlands| Web: http://www.astron.nl

Re: Filtering out non-readable characters

2005-07-29 Thread Adriaan Renting
def StripNoPrint(self, S): from string import printable return "".join([ ch for ch in S if ch in printable ]) Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA

Filtering terminal commands on linux

2005-07-29 Thread Adriaan Renting
I have the problem that I need to interact with a CD/DVD burning program called gear. I do this by running it in a pseudo terminal. I also need to log what I'm doing, so I copy all output I get from gear to a logfile. The problem is that gear uses terminal control commands to create a nice command

Re: Python IDE's

2005-08-02 Thread Adriaan Renting
spend my time programming my code, not my developement environment. I currently use Eric3+QtDesigner for Python, and while not perfect, I realy like it. I have used Borland C++Builder for C/C++ in the past for Windows, but I haven't found a satisfactory C/C++ solution for my current Linux system y

Re: Filtering terminal commands on linux

2005-08-05 Thread Adriaan Renting
as "gear < batchfile". Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 597 332 The Netherlands| Web: http://www.astron.nl/~renting/

Re: Point and click GUI builder for Python

2005-08-08 Thread Adriaan Renting
Use Eric3 with QtDesigner. Works like a charm. Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 597 332 The Netherlands| Web: http://www.astron.nl

Re: Embedding a runtime graph in Qt3 designer generated UI

2005-08-08 Thread Adriaan Renting
ing a dime for it, I can only hope... Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 217 P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 597 332 The Netherlands| Web: http://www.astron.nl/~renting/

Re: Read from stdouton Popen on WinXP?

2005-08-17 Thread Adriaan Renting
h, otherwise you'll need to find out if anything similar to pty exists in Windows. I have 3 years of Windows programming experience, but I don't know of any solution. This probably also means your solution of piping the .exe will not work. Adriaan Renting. >>> "mhenr

Re: SOAP and XMLRPC

2005-08-17 Thread Adriaan Renting
import SOAPpy client = SOAPpy.SOAPProxy('http://localhost:80/Webservice') server = SOAPpy.SOAPServer(('localhost', 81), ) server.registerFunction(self.somefunction, 'urn:webservice') Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON

Re: Read from stdouton Popen on WinXP?

2005-08-17 Thread Adriaan Renting
>>Matthew Henry <[EMAIL PROTECTED]> 08/17/05 3:42 pm >>> On 8/17/05, Adriaan Renting <[EMAIL PROTECTED]> wrote: that only works on Unix. The problem is the way stdout in C works: >- If connected to a character device, it will flush after each line. >- If connecte

Re: GUI tookit for science and education

2005-08-17 Thread Adriaan Renting
Well, I don't think you want to write everything in HTML, but you can certainly have a program in Python/perl/PHP/ASP/java that outputs your user interface in HTML on one side, and maybe talks to Matlab or Root on the otherside to do the actual science/generate the images. I wouldn't advice Excel+V

Re: win32pipe.popen3

2005-08-18 Thread Adriaan Renting
Well, on Linux I use select first to see if there's something to read. Maybe this works on Windows too? This is my code: fd = os.open(filename, os.O_NONBLOCK) ready = select.select([fd], [], [], 0.25) ## timeout after 0.25 seconds. if

Re: up to date books?

2005-08-18 Thread Adriaan Renting
I learned Python from the "Learning Python" book that's first on Alessandros list. If you have the Second Edition, that includes coverage for Python 2.3, I think you have quite a nice introductory book. As a reference book "Python in a Nutshell" and of course the Python documentation itself are

Re: Implementing class methods in C

2005-08-18 Thread Adriaan Renting
I think you'd need to write a C++ class that has the methods you want to implement in C++, then wrap that with SWIG, then inherit from that, though multiple inheritance if you also need functions from a base Python class. The PyQt people use SIP I think, instead of SWIG, might be useful to look i

Re: time.clock() problem under linux (precision=0.01s)

2005-08-19 Thread Adriaan Renting
One of the limits of at least IBM compatible PC's is that in general they are not more accurate as about 1/64 th of a second if I recall correctly. I think this is the default tick size of the BIOS clock. Next to that the BIOS clock itself doesn't need to be very accurate, I can easily drift lik

Re: where does __class__ come from?

2005-08-23 Thread Adriaan Renting
You might find the chapter 3.3 (in my python 2.3.4, it's "Special Method names") in the reference manual useful, it is the only place I have found sofar that describes most of these special methods. It does however not contain __class__. I don't know where in the reference manual to find it's de

Re: Logging all activity on a tty/pty?

2005-08-23 Thread Adriaan Renting
I only do this on Linux, and it will probably not work on all versions of Unix, not even to mention Windows, but I basically have used the code of Pexpect and removed the part that does the expecting. ;-) The author of the Pexpect module also has clearly documented potential pitfalls in his FAQ.

Re: where does __class__ come from?

2005-08-24 Thread Adriaan Renting
I did mean the Language reference. chapter "Special method names". It contains a lot of the funky stuff like __dict__ and __getattr__. There is a little info in chapter 3.2 about __class__ : "__class__ is the instance's class." Adriaan Renting| Email:

Re: Should I move to Amsterdam?

2005-08-24 Thread Adriaan Renting
Well, I'm not sure if Amsterdam is nice, but the Netherlands is o.k., except for the weather. I'd like to descripbe it as 49 weeks of autumn, 1 week of spring, 1 week of summer, 1 week of winter. Currently my employer only has an opening for a Microwave Antenna designer though, sorry no Python c

Re: Unix diff command under Window.

2005-08-24 Thread Adriaan Renting
There probably is some free version somewhere, maybe even as part of CygWin. I've used Araxis Merge on Windows. It used to be shareware. It's nice enough that I bought it. >>>"TonyHa" <[EMAIL PROTECTED]> 08/24/05 3:50 pm >>> Hello, Does any one have using Python to write a Unix "diff" com

Re: Should I move to Amsterdam?

2005-08-25 Thread Adriaan Renting
TED]> 08/24/05 6:49 pm >>> On Wed, 24 Aug 2005, Armin Steinhoff wrote: >Adriaan Renting wrote: > >>>>>"Wade" <[EMAIL PROTECTED]> 08/24/05 2:31 pm >>> >> >>http://www.slate.com/id/2124561/entry/2124562/ Nice little series by &

Re: variable hell

2005-08-25 Thread Adriaan Renting
You might be able to do something along the lines of for count in range(0,maxcount): value = values[count] exec(eval("'a%s=%s' % (count, value)")) But I am also wonder: why? Peter Maas wrote: > >>>suffix = 'var' > >>>vars()['a%s' % suffix] = 45 > >>>avar >45 -- http://mail.python.

Re: variable hell

2005-08-25 Thread Adriaan Renting
'a6', 'a7', 'a8', 'a9', 'count', 'value'] >>> I myself use code like this to load user defined classes. exec(eval("'from %s import %s' % (script, script)")) exec(eval("'se

Re: file access dialog

2005-08-26 Thread Adriaan Renting
Well, I only know how to do it with Qt: Dialog = QFileDialog(self.filedir, 'Python files (*.py)', self, 'open file dialog') self.filename = str( Dialog.getOpenFileName()) I don't think PyQt is available for Qt4 on windows yet. You might be ablt to use this: http://www.quadgames.c

Re: variable hell

2005-08-26 Thread Adriaan Renting
l? > >exec ('a%s=%s' % (count, value)) > >should be fine > >-- >rafi --- I appologize for any top-posting, and improper inlining, I'm using groupwise --- >>>"Martin v. Löwis" <[EMAIL PROTECTED]> 08/26/05 10:19 am >>> A

Re: variable hell

2005-08-29 Thread Adriaan Renting
;m quoting him wrong, while I'm quoting Rafi. Furthermore I'm going with your suggestion of checking the imp, globals() and locals(). Adriaan Renting. >>>Mike Meyer <[EMAIL PROTECTED]> 08/27/05 2:24 am >>> [The context is totally hosed by top posting and failu

Re: OpenSource documentation problems

2005-08-29 Thread Adriaan Renting
not be the sole designers of the UI either. The good commercial docs are better because there it is understood how important this is. I myself have always liked the Borland documentation a lot. The big question is: how to attract more doc writers to the OSS movement? Adriaan Renting. --

Re: variable hell

2005-08-29 Thread Adriaan Renting
t in one window, then typing it in another to test it, then copying it back, obviously introduced a PEBKAC error. Adriaan Renting -- http://mail.python.org/mailman/listinfo/python-list

Re: Bicycle Repair Man usability

2005-08-31 Thread Adriaan Renting
I know the Eric3 Python IDE integrates with BRM, but I haven't had a need for much refactoring yet, so I haven't installed BRM. I've only used Eric3's build-in limited refactoring yet. Adriaan Renting. -- http://mail.python.org/mailman/listinfo/python-list

Re: Precise timings ?

2005-08-31 Thread Adriaan Renting
ing, precission isn't the same as accuracy. Adriaan. Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON | Phone: +31 521 595 200 (217 direct) P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 597 332 The Netherlands|

Re: OpenSource documentation problems

2005-09-06 Thread Adriaan Renting
>>>Terry Hancock <[EMAIL PROTECTED]> 08/31/05 11:59 pm >>> |> >I have NEVER seen a closed source application or programming |> >language that came with that much documentation and support. |> |>I'm no fan of Microsoft, but in general, the Win32 API is far |>better documented than is Python. (J

Re: pexpect.exitstatus not working?

2005-09-06 Thread Adriaan Renting
I'm doing something along these lines: """Check if the task is finished and clean up.""" (pid, status) = os.waitpid(self._pid, os.WNOHANG) ## clean up the zombie assert(pid == self._pid) if os.WIFEXITED(status) or os.WIFSIGNALED(status): self._pid

Re: Job Offer in Paris, France : R&D Engineer (Plone)

2005-09-07 Thread Adriaan Renting
>>> I'm in the US and have no EU papers. Still feasible? Unless you and your employer know the to talk the talk and walk the walk, it's probably going to be hard. I work at a place in the Netherlands where about 50% of the employees are from abroad, with large numbers from places like the USA,

Re: pretty windows installer for py scripts

2005-09-08 Thread Adriaan Renting
The elegant way to do installs on Windows would be by creating an MSI. Microsoft provides (IIRC) a simple tool to create those (Orca), that's free. Without the Installshield or Wise tools I think it would take quite some effort though, because you need to understand all the details of how msi ta

Re: Would you pls tell me a tool to step debug python program?

2005-09-12 Thread Adriaan Renting
try Eric3 F6-F10 will probably do exactly what you want. www.die-offenbachs.de/detlev/eric3.html >>>"Johnny Lee" <[EMAIL PROTECTED]> 09/12/05 9:12 am >>> Hi, I've met a problem to understand the code at hand. And I wonder whether there is any useful tools to provide me a way of step debug?

Re: read stdout/stderr without blocking

2005-09-12 Thread Adriaan Renting
Check out the select module, for an example on how to use it: pexpect.sourceforge.net >>>Jacek Pop*awski <[EMAIL PROTECTED]> 09/12/05 10:07 am >>> Popen from subprocess module gives me access to stdout, so I can read it. Problem is, that I don't know how much data is available... How can I

Re: Download Mail Via Python

2005-09-12 Thread Adriaan Renting
You could maybe give some more information about what you're doing, like if you use POP or IMAP, the kind of mail server used, etc. I know the at least Outpook used some odd MS specific formatting when sending stuff trough Exchange (non-HTML/RTF/plain text) for the body. This is the "Rich text"

Re: read stdout/stderr without blocking

2005-09-12 Thread Adriaan Renting
e assert(pid == self._pid) if os.WIFEXITED(status) or os.WIFSIGNALED(status): self._pid = 0 self.exitstatus = status assert(self.finished()) del self._pid os.close(self._child_fd) os.close(self._errorpipe_end) |>>>

Re: read stdout/stderr without blocking

2005-09-12 Thread Adriaan Renting
The line only means it will read a maximum of 1024 characters, most of the output I try to catch is much shorter. I think that if the output is longer as 1024, it will read the rest after another call to select.select, but I think I have not yet come across that case and have not tested it. I s

Re: read stdout/stderr without blocking

2005-09-14 Thread Adriaan Renting
>>>Jacek Pop*awski <[EMAIL PROTECTED]> 09/13/05 9:23 am >>> Grant Edwards wrote: >On 2005-09-12, Jacek Pop?awski <[EMAIL PROTECTED]> wrote: > >>> ready = select.select(tocheck, [], [], 0.25) ##continues after 0.25s >>> for file in ready[0]: >>> try: >>>

Re: read stdout/stderr without blocking

2005-09-14 Thread Adriaan Renting
Please note that popen uses pipes, which are block devices, not character devices, so the writes will be done in blocks instead of characters/lines, (you can only read something _after_ the application at the other end of the pipe has done a flush or written 8192 bytes. When reading from a pty

Re: An interesting python problem

2005-09-14 Thread Adriaan Renting
In my mind all Python variables are some kind of "named pointers", I find that thinking this way helps me a lot in understanding what I'm doing. I know that this is not completely technically correct as in the first two examples there is actually a new a.i/a.arr created that shadows A.i, but thi

Re: read stdout/stderr without blocking

2005-09-16 Thread Adriaan Renting
st on Linux you can get it to work. My NON_BLOCKing command might be unnecesary, I'll try without it. The OP seemed interested on how to do this on Windows, but I've yet to see an answer on that one I think. Thank you for the reply. Adriaan Renting |>>>Donn Cave <[EMAIL P

Re: IDE, widget library

2005-09-16 Thread Adriaan Renting
I find developing in Eric3 + QtDesigner to be very quick and easy. It does everything you want and much more, only it uses Qt3. The new Qt4 has an official GPL version for Windows, and there are GPL ports versions of Qt3 as pointed out by other posters. I am realy impressed by the elegance of Qt,

Re: Python and Unix Commands

2005-09-19 Thread Adriaan Renting
suggestion. Adriaan Renting. P.S. you don't need to post your question to this list every 5 minutes. |>>>"timdoyle05" <[EMAIL PROTECTED]> 09/19/05 10:46 am >>> |Hi, | | I have a question relating to how Unix commands can be issued from |Python program

Re: Python and Unix Commands

2005-09-20 Thread Adriaan Renting
>>>"Adriaan Renting" <[EMAIL PROTECTED]> 09/19/05 11:20 am >>> | |P.S. you don't need to post your question to this list every 5 minutes. | Hmmm, somehow my reply also got posted more than once... At least that's what it looks like in my mail viewer,

Re: End or Identify (EOI) character ?

2005-09-20 Thread Adriaan Renting
You might be able to find more about GPIB under the names IEEE488 and HP-IB. It's a 8-bit parallel communications bus used in lab-automation. But it's been like 10 years since I used it so I don't remember the specifics. I once wrote a driver for it under windows 3.0. Most of the communication is

ignoring or replacing white lines in a diff

2016-01-14 Thread Adriaan Renting
nt line This makes it worse, as it adds and empty line for each line in the file. I've tried various other options. The only thing I can think of, is ditching Python and trying to rewrite the whole script in Bash. (It's quite complicated, as it loops over various things and does som

Re: ignoring or replacing white lines in a diff

2016-01-15 Thread Adriaan Renting
pen('/dev/null') is essential in subprocess.Popen to make it work from automated (headless) scripts. - print line, did remove the extra newlines, but didn't get rid of the blank lines. - making it a raw string with r"-I '^[[:space:]]*$'" made no difference (also t

Re: Old DbaseV DOS Programmer wants to step over to new/actual modern program software

2015-08-17 Thread Adriaan Renting
;re looking for a dBase replacement. Cheers Adriaan Renting| Email: rent...@astron.nl Software Engineer Radio Observatory ASTRON | Phone: +31 521 595 100 (797 direct) P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 595 101

pty code from 2.3.4 not working in 2.3.5

2005-06-16 Thread Adriaan Renting
hing can be, and what I am doing wrong? Thank you, Adriaan Renting. -- http://mail.python.org/mailman/listinfo/python-list

RE: Swiss Ephemeris

2017-04-10 Thread Adriaan Renting
here https://www.youtube.com/watch?v=sf5OrthVRPA Cheers, Adriaan Renting P.S. I had an uncle who died of cancer 2 years ago who was a firm believer in all kinds of non-mainstream cures and tried all kinds of alternative cures from accupuncture to yoga to Gc-MAF. In the end the only results I saw were

Re: [OT] How to improve my programming skills?

2017-06-02 Thread Adriaan Renting
Adriaan Renting| Email: rent...@astron.nl Software Engineer Radio Observatory ASTRON | Phone: +31 521 595 100 (797 direct) P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 595 101 The Netherlands| Web: http://www.astron.nl

Re: Syntax error for simple script

2017-06-28 Thread Adriaan Renting
Adriaan Renting| Email: rent...@astron.nl Software Engineer Radio Observatory ASTRON | Phone: +31 521 595 100 (797 direct) P.O. Box 2 | GSM: +31 6 24 25 17 28 NL-7990 AA Dwingeloo | FAX: +31 521 595 101 The Netherlands| Web: http://www.astron.nl