Python 2.4 Tix failing on Windows XP

2004-12-09 Thread j vickroy
Hello, I've just installed (accepted all installation defaults) Python 2.4 (final) on my Microsoft Windows XP (home edition - service pack 2) computer, and I am experiencing the following behavior regarding Tix: >>> import sys >>> sys.version '2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit

Re: [Newby] Problem with compilation.

2004-12-09 Thread j vickroy
The Python modules documentation indicates crypt is only available on Unix platforms. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi folks! > > Can't compile my file due to some problems with crypt module. > My platform is WinXP: > First I launch my Python Shell, > Than I open th

Re: Python 2.4 Tix failing on Windows XP

2004-12-09 Thread j vickroy
Ok, that indeed did work. Thanks for your help. "Michael Auerswald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ok, problem solved, more or less. What happens is that Tcl isnt looking > for the Tix DLL along the python path nor is it looking along the > os.environ path, but

how to dynamically create class methods ?

2008-03-25 Thread j vickroy
Hello, Here is some pseudo-code that hopefully illustrates what I want to do: records = list(...) for record in records: new_fcn = define_a function_for(record) instance = my_new_class_instance() setattr(instance, 'myfcn', new_fcn) instance.execute() # instance.execute() calls ins

Re: how to dynamically create class methods ?

2008-03-25 Thread j vickroy
Arnaud Delobelle wrote: > On Mar 25, 6:13 pm, j vickroy <[EMAIL PROTECTED]> wrote: >> Hello, >> >> Here is some pseudo-code that hopefully illustrates what I want to do: >> >> records = list(...) >> for record in records: >> new_

py.test and test coverage analysis ?

2008-04-02 Thread j vickroy
Hello all, I am using py.test (http://codespeak.net/py/dist/test.html) to perform unit testing. I would like to include test coverage analysis using coverage.py (http://nedbatchelder.com/code/modules/coverage.html), but I do not know how to simultaneously apply the two tools in a single run.

Re: ANN: pry unit testing framework

2008-04-02 Thread j vickroy
Aldo Cortesi wrote: > We are happy to announce the first release of Pry, a unit testing framework. > > Features > > > * Built-in coverage analysis, profiling, and quick-and-dirty benchmarking > * Assertion-based tests - no ugly failUnless*, failIf*, etc. methods > * Tree-base

distutils.core.setup --install-script option in Python 2.6 ?

2009-11-05 Thread j vickroy
Hello, I have just upgraded from Python 2.5 to 2.6 and am unable to locate any trace of the --install-script option, in release 2.6.4 (MS Windows XP), for distutils.core.setup. I also have been unable to locate any mention of it on-line. My v2.5 setup.py scripts are failing with the falling

Re: Help running Windows programs from Python

2010-05-07 Thread j vickroy
Scott wrote: I want to write a script to automate log archiving/compressing on a Win2003 server. I have Python 2.6 installed. I am planning to use 7- zip for compression (because I have been using it manually for a while now). For now all operations will be local in the C: drive. As a total begi

Re: unable to get Hudson to run unit tests

2010-05-10 Thread j vickroy
Stefan Behnel wrote: j vickroy, 07.05.2010 20:44: I apologize if this is not the appropriate forum for a question about Hudson (http://hudson-ci.org/), but I did not know where else to ask and my web searches have not been fruitful. Certainly nice to read something about Hudson in this forum

Re: unable to get Hudson to run unit tests

2010-05-10 Thread j vickroy
Jean-Michel Pichavant wrote: Stefan Behnel wrote: j vickroy, 07.05.2010 20:44: I apologize if this is not the appropriate forum for a question about Hudson (http://hudson-ci.org/), but I did not know where else to ask and my web searches have not been fruitful. Certainly nice to read

Re: unable to get Hudson to run unit tests

2010-05-10 Thread j vickroy
Jean-Michel Pichavant wrote: j vickroy wrote: Stefan Behnel wrote: j vickroy, 07.05.2010 20:44: I apologize if this is not the appropriate forum for a question about Hudson (http://hudson-ci.org/), but I did not know where else to ask and my web searches have not been fruitful. Certainly

Re: unable to get Hudson to run unit tests

2010-05-11 Thread j vickroy
Thanks again, Stefan. My comments are below. Stefan Behnel wrote: j vickroy, 10.05.2010 17:39: Unfortunately, when "Hudson Build now" is performed, the Hudson Console output, for this job, is: Started by user anonymous Up

Re: unable to get Hudson to run unit tests

2010-05-11 Thread j vickroy
Stefan Behnel wrote: j vickroy, 11.05.2010 16:46: > Stefan Behnel wrote: No, what Hudson actually does, is, it writes your command(s) into a text file and runs it with the system's shell interpreter (which, unless otherwise configured, is "cmd.exe" on Windows). This is not

Re: unable to get Hudson to run unit tests

2010-05-11 Thread j vickroy
Stefan Behnel wrote: j vickroy, 11.05.2010 16:46: > Stefan Behnel wrote: No, what Hudson actually does, is, it writes your command(s) into a text file and runs it with the system's shell interpreter (which, unless otherwise configured, is "cmd.exe" on Windows). This is not

Re: default argument

2010-05-11 Thread j vickroy
Back9 wrote: Hi, Is this grammer working in Python? class test: self._value = 10 def func(self, self._value) When i try it, it complains about undefined self. i don't know why. TIA ... not exactly; try: class Test: _value = 10 def func(self): print id(self._value), self._v