Re: keyword 'in' not returning a bool?

2008-02-09 Thread Eyal Lotem
Arnaud Delobelle wrote: > On Feb 8, 5:20 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote: >> > -Original Message- >> > From: [EMAIL PROTECTED] [mailto:python- >> > [EMAIL PROTECTED] On Behalf Of c james >> > Sent: Friday, February 08, 2008 12:10 PM >> > To: [EMAIL PROTECTED] >> > Subject:

Re: sys.argv[0] doesn't always contain the full path of running script.

2006-08-29 Thread Eyal Lotem
>> How can I find where exactly the current python script is running? >> ... >> That means sys.argv[0] doesn't always contain the full path of >> running script. > sys.path[0] is the script directory, combined with sys.argv[0] you can > find the full path to the script. > (Note that in some rare ca

Re: timezones and time_t

2006-08-19 Thread Eyal Lotem
MrBlueSky wrote: > Hi, > I've got a Python application that (as well as lots of other stuff!) > has to translate time_t values into strings in the TZ of the users > choice. Looking at the Python Library Reference, I can see no platform > independent way of setting the TZ that time.localtime() ret

Re: To run a python script in all the machines from one server

2006-03-28 Thread Eyal Lotem
[EMAIL PROTECTED] wrote: > Hi Everyone > > I want to run a python script in all the machines that are connected > through local network and collect the information about that machine > such as HDD size, RAM capacity(with number of slots) ,processer speed > etc. > > But i want to run a script fr

Re: Accessing func_name from inside a function

2006-03-27 Thread Eyal Lotem
Scott David Daniels wrote: > Eyal Lotem wrote: >> By the way, the "real" problem here is referencing by name, rather than >> using "true" references. Which is the result of using a textual language. >> The "real" solution would be to store real

Re: Accessing func_name from inside a function

2006-03-26 Thread Eyal Lotem
Steven D'Aprano wrote: > On Sun, 26 Mar 2006 10:19:36 +1000, Ben Finney wrote: > >> "James Thiele" <[EMAIL PROTECTED]> writes: >> >>> I'd like to access the name of a function from inside the function. >> >> A function, like most other objects in Python, can have any number of >> names bound to

Re: Incremental Compression

2006-03-25 Thread Eyal Lotem
Adam DePrince wrote: > On Sat, 2006-03-25 at 03:08 +0200, Eyal Lotem wrote: >> Hey. >> >> I have a problem in some network code. I want to send my packets >> compressed, but I don't want to compress each packet separately (via >> .encode('zlib')

Incremental Compression

2006-03-24 Thread Eyal Lotem
Hey. I have a problem in some network code. I want to send my packets compressed, but I don't want to compress each packet separately (via .encode('zlib') or such) but rather I'd like to compress it with regard to the history of the compression stream. If I use zlib.compressobj and flush it to ge

Re: using cmd.exe as a telnet client

2004-12-04 Thread Eyal Lotem
I think I have a much simpler solution for you guys.. Assuming you can run arbitrary code on the proprietary server. I wrote PyInvoke, and I use it as a much-easier-to-use replacement for telnet control of computers. It does require installing Python on the target server though. You simple have