Re: Listing partitions (on win32)

2006-01-15 Thread Claude Henchoz
Why I don't want to rely on WMI:
I am wanting to use this under Windows PE, and although I can include
WMI, I just wanted to find out whether there is a way to not use it.

Another thing:
I really do want to also get the partitions that do _not_ have an
associated drive letter.

All in all:
I am probably going to have to write something with tempfile that uses
diskpart.exe to use this. Although this will get ugly, it seems to be
the best way (the best way without WMI, that is).

Thanks for the help guys!

Cheers, Claude

-- 
http://mail.python.org/mailman/listinfo/python-list


Listing partitions (on win32)

2006-01-14 Thread Claude Henchoz
Hi

Is there any way of listing partitions on a (win32) computer without
using WMI?

Cheers, Claude

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: URL 'special character' replacements

2006-01-09 Thread Claude Henchoz
Thanks guys, I like the urllib solution. Stupid me, looked at urllib
reference, but thought that "quote" and "unquote" deal with
_&_n_b_s_p_;_ style entities.

-- 
http://mail.python.org/mailman/listinfo/python-list


URL 'special character' replacements

2006-01-09 Thread Claude Henchoz
Hi guys

I have a huge list of URLs. These URLs all have ASCII codes for special
characters, like "%20" for a space or "%21" for an exclamation mark.

I've already googled quite some time, but I have not been able to find
any elegant way on how to replace these with their 'real' counterparts
(" " and "!").

Of course, I could just replace(), but that seems to be a lot of work.

Thanks for any help.

Cheers, Claude

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Easiest way to calculate number of character in string

2005-12-21 Thread claude . henchoz
should = 42
has = Zeile.count(';')
if has < should:
Zeile += ";"*(should - has)

cheers, claude

-- 
http://mail.python.org/mailman/listinfo/python-list