Re: Force flushing buffers

2005-10-08 Thread Robert Wierschke
Madhusudan Singh schrieb: > Hi > > I have a python application that writes a lot of data to a bunch of > files > from inside a loop. Sometimes, the application has to be interrupted and I > find that a lot of data has not yet been writen (and hence is lost). How do > I flush the buffer an

Re: Module organization

2005-09-28 Thread Robert Wierschke
Lasse Vågsæther Karlsen schrieb: > I am slowly learning Python and I'm already starting to write some minor > modules for myself. Undoubtedly there are better modules available > either built-in or 3rd party that do the same as mine and much more but > I need to learn it one way or another anyway.

Re: Python Doc Problem Example: os.system

2005-09-05 Thread Robert Wierschke
Xah Lee schrieb: > Python Doc Problem Example: os.system > > Xah Lee, 2005-09 > > today i'm trying to use Python to call shell commands. e.g. in Perl > something like > > output=qx(ls) > > in Python i quickly located the the function due to its > well-named-ness: > > import os > os.system("ls"

Re: client server question

2005-08-15 Thread Robert Wierschke
John schrieb: > I have a simple script that runs a server where one client can connect. > I would like to make it so that many clients can connect to one server > on the same port. Where can I find how to do this? > > Thanks, > --j > use sockets. the socket accept mehtoh returns a new socket (

Re: What is Python?!

2005-08-10 Thread Robert Wierschke
Adriano Varoli Piazza schrieb: > Robert Wierschke ha scritto: > ... > Reading the FAQ at the python website too difficult? I don't think you > missed any of the most frequently asked... Good job. > sorry I 've forgetten the FAQ -- http://mail.python.org/mailman/listinfo/python-list

What is Python?!

2005-08-10 Thread Robert Wierschke
hi I'm learning python since 3 days. I' ve some programming experience in BASIC, Pascal, C, C++ and Java. Actually I want to add a scripting language to this repertoire (I have virtually no experience with scripting). Having read that python is object orientated, I start wondering if python i