Dear All,
Quick UT question. I am working on a CSV processing script. I want to write
some tests. The tests will need to read in, manipulate and write out some CSV
files.
My instinct is to manually construct some small data files, and consider them
as part of the test suite. The other option
Plain text definitely better for small devices - I read the tutor list on my
blackberry on the way to work (and hence Top -p - apologies).
Matt
Sent from my BlackBerry® wireless device
-Original Message-
From: Luke Paireepinart
Date: Sat, 20 Mar 2010 23:00:03
To: Steven D'Aprano
Cc:
S
Dear All,
I am looking for some advice about a design decision. I want to write a
curses-based editor (for OWL ontologies). This should then be usable via ssh,
etc. Ontology files may be large, and quite complex. Current editors (e.g.
Protege) have multiple tabs to cope with this.
The simplest
Dear All,
Quick question:
Is there an way of using the regex patterns to produce text, instead of
matching it?
E.g.:
pat = re.compile("ab?d")
pat.getListofPossibleText()
Thanks,
Matt
Sent from my BlackBerry® wireless device
___
Tutor maillist -
While some patterns are infinite, other's aren't (e.g. The example I gave).
Using a subset of Regex syntax to produce a set of strings has the advantage of
using a well understood and documented form, and if you could hook into the
existing API, at minimal coding effort.
In addition, it allows
Dear Tutors,
I have an object to which I dynamically add attributes. My question is how I
can inspect and display them at run-time?
Class a():
pass
Obj1 = a()
Obj1.name = "Bob"
Obj1.age = 45
dir(a) returns a tuple which contains name and age, but also other things
(includings methods, et
Apol. For TP:
This is perfect - thanks.
Matt
Sent from my BlackBerry® wireless device
-Original Message-
From: Evert Rol
Date: Sat, 26 Jun 2010 11:13:16
To:
Cc: Python tutor
Subject: Re: [Tutor] Getting an object's attributes
> I have an object to which I dynamically add attributes. M
Dear Tutors,
I am tring to deal with some repeated data, and hence repeated objects (I
construct objects from the data).
I had hoped to use a set to uniquify the objects. However, I am having problems
with defining uniqueness.
I have googled/ looked at the Python docs/ read DITP and Alan's web
ssage-
From: delegb...@dudupay.com
Sender: tutor-bounces+mhw=doctors.net...@python.org
Date: Sun, 21 Nov 2010 03:34:29
To:
Reply-To: delegb...@dudupay.com
Subject: Re: [Tutor] JOB AD PROJECT
Hi People,
I am afraid only Alan has said something to me. Is it that solution would never
come or
Dear Tutors,
A rather general question, I'm afraid. I have found myself writing some python
code to handle some CSV data, using the csv. DictReader that generates a dict
for each row with the key as the column heading and the value in the file as
the item. Most operations involve code of the fo
10 matches
Mail list logo