Python Win32 Silent Install

2004-12-01 Thread Matt Gerrans
Looks like the installer for the Win32 extensions has changed from Wise to distutils, so now my automated silent installations don't work anymore. Anyone know if the distutils binary installer can be run silently?I haven't been able find a command line reference for distutils binaries (I'm

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Matt Gerrans
Anyway, what's to worry about?When the time comes just whip out a little script that converts Python 1.6 (or whatever you like) to Python3K; it will only take seven lines of P3K code. -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting String to Class

2004-12-01 Thread Matt Gerrans
You didn't specify exactly how the string is parsed, so this is a guess: class Thingy(object): def __init__(self,rawinfo): self.StructId, vq,self.ProcessName = rawinfo.split() self.Version,self.QName = vq.split('.') def __str__(self): return '' % (self.StructId, self.Versio

Re: Python Win32 Silent Install

2004-12-01 Thread Matt Gerrans
That sounds easy enough, but I imagine the Acive State package requires some kind of licensing.I'm pre-installing on millions of consumer PCs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Win32 Silent Install

2004-12-01 Thread Matt Gerrans
You guessed correctly. Python is on HP (and Compaq now) PCs because I put it there. And yes, I did get the "I've found Python on my computer, what does it do and can I remove it" from the support group. How to answer that?You have a computer with Windows Script Host (JScript & VBScript)

Re: installing 2.4

2004-12-03 Thread Matt Gerrans
"Peter Hansen" <[EMAIL PROTECTED]> wrote: > Only pure Python code can run without change on a newer interpreter. Is the interpreter smart enough to rebuild a pyc (if the corresponding py file is there of course) file that was built by a previous version? -- http://mail.python.org/mailman/list

Re: Calling a C program from a Python Script

2004-12-09 Thread Matt Gerrans
"Brad Tilley" <[EMAIL PROTECTED]> wrote: >>>I'm dealing with a terabyte of files. Perhaps I should have mentioned >>>that. I wouldn't automatically assume that recursing the directories with a Python script that calls a C program for each file is faster than doing the processing in Python. Fo

Re: How can I change the timestamps of directories? (os.utime(), WinXP)

2004-12-09 Thread Matt Gerrans
Are you able change this directories attributes in a command shell or with explorer?If so, have you tried win32file.SetFileAttributes()? -- http://mail.python.org/mailman/listinfo/python-list

Zip with a list comprehension

2004-12-10 Thread Matt Gerrans
This is probably so easy that I'll be embarrassed by the answer. While enhancing and refactoring some old code, I was just changing some map()s to list comprehensions, but I couldn't see any easy way to change a zip() to a list comprehension.Should I just let those sleeping dogs lie? (li

Re: Newbie question - default values of a function

2004-12-22 Thread Matt Gerrans
Actually i was not mutable. Try this: i = 1 id(i) i += 1 id(i) Change both of your sample functions to also print the id of the default variable and that might shed a little more light on the matter. "i = i + 1" is only changing the local reference called i to refer to an instance of a diffe