Entries Categorized as 'Python'

Cloning a List in Python

Date April 14, 2008 by Isaac

As far as I know there is no official way to clone a list in Python. This is desirable at times because normal variable assignment of lists is just a reference copy. For example:
 
>>> listA = [’A', ‘B’, ‘C’, ‘D’]
>>> listB = listA
>>> listA
[’A', ‘B’, ‘C’, ‘D’]
>>> listB
[’A', ‘B’, ‘C’, ‘D’]
>>> listA.remove(’C')
>>> listA
[’A', [...]

How to Use JPype

Date March 31, 2008 by Isaac

Background
I love Python and my personal experience has shown that testers are about 4x more productive when using Python than when using Java. However, at work I am a tester on a Java application. I’ve been looking for a way to bridge that gap and allow me to write my tests in Python [...]

Python Dataflow Programming

Date March 27, 2008 by Isaac

Dataflow programming is something new to me.  Lately I’ve been looking up articles and information about this programming paradigm.  In a sense I suppose that I am familiar with the concepts.  In Linux I use the pipe “|” a lot to pump data from one program to another.  Each program in the stage alters the [...]

Creating PDF’s in Python

Date July 25, 2006 by Isaac

Whatever your role or occupation there are doubtless times where you need to write a report. Most of the reports that I turn in are unique and need to be manually generated. However, my weekly test status report is pretty much the same every week and basically its just the stats that change.
Poking [...]