DHT for Python 3.x?

2009-11-10 Thread Salim Fadhley
There are plenty of good DHT projects for Python 2.x, however from what I can tell none of them have made the jump to 3.x yet. I'm really keen to support Python 3.x for a project I'm working on. I know that many developers (correctly) consider switching to Python 3 foolish since it is less

How do I find the memory used by a python process

2008-11-03 Thread Salim Fadhley
I'm trying to create a python unit-test which will test a complex program which includes a number of functions which have been implemented in C or C++. The unit-test needs to check that after the functions have been run a few thousand times all of the memory used by those functions has been

Retrieve Win32 domain name

2008-08-26 Thread Salim Fadhley
I'm looking for a method to retrieve a Windows Domain name (not a DNS Domain name). I know this can be done by simply reading an environment variable, however on the machines I need to work with sometimes the environment variables can be messed-up and are not trustworthy. Is there somebody who

Retrieve Win32 domain name

2008-08-26 Thread Salim Fadhley
I'm looking for a method to retrieve a Windows Domain name (not a DNS Domain name). I know this can be done by simply reading an environment variable, however on the machines I need to work with sometimes the environment variables can be messed-up and are not trustworthy. Is there somebody who

Re: Why nested scope rules do not apply to inner Class?

2008-08-12 Thread Salim Fadhley
I'm wondering as well if the new nonlocal statement will fix that in py3k? The class C3 statement is executing before the class B statement has concluded, so at that time B does not exist in any scope at all, not even globals(). You could reference B.C1 inside a method because a method is

Using UNC paths for --find-links in easy_install on Windows

2008-08-12 Thread Salim Fadhley
A project I'm working on requires a Python egg to be deployed to a remote location which (because of a security configuration outside my control) denies users web-access but allows users access to networked file-systems. It has been proposed that rather than creating a web- repository for python

Python / Windows process control

2008-07-09 Thread Salim Fadhley
Does anybody know of a python module which can do process management on Windows? The sort of thing that we might usually do with taskmgr.exe or process explorer? For example: * Kill a process by ID * Find out which process ID is locking an object in the filesystem * Find out all the IDs of a