Re: python and databases

2017-03-14 Thread BrJohan
On 2017-03-14 20:59, Xristos Xristoou wrote: I have a database in microsoft ACCESS with about 150 records.. if I want to get some data from this database using a query in python and i want to store in some variables in python that will do this ? to avoid the 150 if ...: Using the standard li

Re: Python's re module and genealogy problem

2014-06-13 Thread BrJohan
On 11/06/2014 14:23, BrJohan wrote: For some genealogical purposes I consider using Python's re module. Rather many names can be spelled in a number of similar ways, and in order to match names even if they are spelled differently, I will build regular expressions, each of which is suppos

Python's re module and genealogy problem

2014-06-11 Thread BrJohan
For some genealogical purposes I consider using Python's re module. Rather many names can be spelled in a number of similar ways, and in order to match names even if they are spelled differently, I will build regular expressions, each of which is supposed to match a number of similar names.

Re: Class hierarchy problem

2013-08-06 Thread BrJohan
ould know about its Phylums, ... a Genus should know about its Species. Of course it is possible to implement such a decision tree as a 'factory'. However, I would rather prefer to encapsulate those decisions at the class level where they 'belong'. BrJohan -- http://mail.python.org/mailman/listinfo/python-list

Class hierarchy problem

2013-08-06 Thread BrJohan
I'm in need of help to solve this Python (ver. 3.3) problem: I have a hierarchy of classes (SubA, SubAB, SubB, ..., SubBCA, SubC,...), each of which is inheriting from a chain of superclasses with a common baseclass(Sup) on top. (So far, no problem) Now, I want to create instances of the corr

Re: Python for EXIF-info-additions ?

2006-08-21 Thread BrJohan
Bruno Dilly wrote: > I think you can find what do you need into this repository, it's a > creative commons tool: > https://svn.berlios.de/svnroot/repos/cctools/publisher/branches/flickr-storage-branch/ > > take a look in the follow directory: > ccpublisher/jpeg/ > > I'm not sure if it's what you w

Re: Unpythonic? Impossible??

2006-03-19 Thread BrJohan
"Scott David Daniels" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > BrJohan wrote: ... >> is it then possible to have this call: >> obj = A(data) >> return an instance of that particular class (e.g. class C3) in the >> hierarchy

Unpythonic? Impossible??

2006-03-19 Thread BrJohan
Assume having this class hierarchy: (in principle and without details) class A(object): class B1(A): class B2(A): class C1(A1): class C2(A1): class C3(B1): class C4(B2): each of those classes have an initializer __init__(self, data): and an overloaded __new__(cls, dat