[issue3902] distutils does not correctly create packages for compiled extensions

2008-09-18 Thread Eyal Lotem
New submission from Eyal Lotem [EMAIL PROTECTED]: When using either the ext_package keyword argument to setup, or when using the pkg.name module name notation to Extension instances, distutils installs the compiled extensions into the appropriate package directory. However, distutils does

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: keyword 'in' not

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 cases

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() returns

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 from just

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-references to the function and only present the name

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 it without the

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') or such) but rather I'd like to compress it with regard

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