From m.mariani@imola.nettuno.it Fri Jan 18 19:16:32 2002
Received: from zoidberg (adsl-169-11.38-151.net24.it [151.38.11.169])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g0IIGVs19156
	for <egenix-users@lists.egenix.com>; Fri, 18 Jan 2002 19:16:32 +0100
Received: from volvox by zoidberg with local (Exim 3.33 #1 (Debian))
	id 16RdZW-00036O-00
	for <egenix-users@lists.egenix.com>; Fri, 18 Jan 2002 19:17:02 +0100
Date: Fri, 18 Jan 2002 19:17:02 +0100
To: egenix-users@lists.egenix.com
Message-ID: <20020118181702.GA11811@zoidberg>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.25i
From: Marco Mariani <m.mariani@imola.nettuno.it>
Subject: [egenix-users] beebase
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://www.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://www.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://www.egenix.com/mailman-archives/egenix-users/>

Are there any examples using mx-beebase?

I can hardly use it, what does "record address must be an integer" means?

Looking at the docs, I should be able to say

d = BeeDict('test')

d['something'] = 'hulabaloo'
d.commit()


but it ain't so.


Thanks


From mal@lemburg.com Fri Jan 18 20:15:35 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g0IJFZs19517;
	Fri, 18 Jan 2002 20:15:35 +0100
Message-ID: <3C487534.8975759F@lemburg.com>
Date: Fri, 18 Jan 2002 20:19:16 +0100
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Marco Mariani <m.mariani@imola.nettuno.it>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] beebase
References: <20020118181702.GA11811@zoidberg>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://www.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://www.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://www.egenix.com/mailman-archives/egenix-users/>

Marco Mariani wrote:
> 
> Are there any examples using mx-beebase?

No, but the sources are well documented.
 
> I can hardly use it, what does "record address must be an integer" means?

That hints to a problem with mxBeeBase when compiling Python
with large file support: file.tell() will return a long rather
than an integer and the mxBeeBase wrapper doesn't like this.
 
> Looking at the docs, I should be able to say
> 
> d = BeeDict('test')
> 
> d['something'] = 'hulabaloo'
> d.commit()
> 
> but it ain't so.
> 
> Thanks

BTW, how did you find this list ? I haven't even announced it yet ;-)

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From mal@lemburg.com Tue Jan 29 19:58:16 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g0TIwFs23245;
	Tue, 29 Jan 2002 19:58:15 +0100
Message-ID: <3C56F1B8.AEEC5048@lemburg.com>
Date: Tue, 29 Jan 2002 20:02:16 +0100
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "eGenix.com User Mailinglist" <egenix-users@lists.egenix.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] Mail problems
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Welcome to the list !

Someone just mentioned to me that the MX record in DNS for 
lists.egenix.com was missing. I have fixed that now, but due
to the delay in DNS it may take a while until the change
propogates. 

This means that you are likely not going to be able to send mail 
to this list today.

Sorry about that,
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From mal@lemburg.com Fri Feb  1 12:11:36 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g11BBZs17711;
	Fri, 1 Feb 2002 12:11:35 +0100
Message-ID: <3C5A78E5.4AF297C6@lemburg.com>
Date: Fri, 01 Feb 2002 12:15:49 +0100
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "eGenix.com User Mailinglist" <egenix-users@lists.egenix.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] Upcoming 2.1.0 release of eGenix.com mx BASE
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Hi everybody,

there will be a new release of the mx BASE distribution this
month and I was wondering whether you'd like to test drive
the current alpha of that version.

Here's a short overview of what has changed:

* mxTextTools does now fully support Unicode (this is a sponsored
  feature addition)

* mxBeeBase is starting to feel at home on non-Unix platforms
  as well, esp. Windows where it didn't work before in locking
  mode. mxBeeBase offers you many possibilities, BTW, e.g. on-disk
  dictionaries and fast lookups.

+ The usual bunch of small tweaks and changes.

Before the final version I also plan to add mxURL from the
experimental distribution to mx base.

Here's the current pre-release as distutils source package:

  http://www.egenix.com/files/python/egenix-mx-base-2.1.0.zip

Please give it a go and let me know what you think. I'll
update the above file every now and then (in place), but
will post updates to this list.

Thanks,
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From maxm@mxm.dk Thu Feb  7 14:56:24 2002
Received: from fe030.worldonline.dk (fe030.worldonline.dk [212.54.64.197])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id g17DuOs09182
	for <egenix-users@lists.egenix.com>; Thu, 7 Feb 2002 14:56:24 +0100
Received: (qmail 31846 invoked by uid 0); 7 Feb 2002 13:56:24 -0000
Received: from 213.237.27.77.adsl.od.worldonline.dk (HELO mxm.dk) (213.237.27.77)
  by fe030.worldonline.dk with SMTP; 7 Feb 2002 13:56:24 -0000
Message-ID: <3C628795.2080602@mxm.dk>
Date: Thu, 07 Feb 2002 13:56:37 +0000
From: Max M <maxm@mxm.dk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7+) Gecko/20020119
X-Accept-Language: en-us
MIME-Version: 1.0
To: egenix-users@lists.egenix.com
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] problem with mx.ODBC MS SQL-server and datetime
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

I am trying out mx.ODBC on MS sql server, and so far it goes along nicely.

But I am having trouble with inserting dates ie. from mx.DateTime
The error message is:
('01004', 0, '[Microsoft][ODBC SQL Server Driver]Fractional truncation',
4479)

The only thing i could find on the net was (one line only):

http://groups.google.com/groups?hl=da&frame=right&th=841f8af29973b8ba&seekm=mailman.989913322.21800.python-list%40python.org#link2

Where somebody has the same problem:

"Marc-Andre answer:
Looks like MS SQL Server's ODBC driver is being too careful again.
What you are seeing there is a SQL warning which mxODBC translates
into an exception."

the advice is "recompiling the package with -DDONT_REPORT_WARNINGS"

I would find it a lot easier to just catch the exception. But I cannot 
see from the traceback which exception to catch.  So I have made a quick 
hack:

        try: # it bitches about dates
            c.execute(qs, localValues)
        except:
            pass

That's about as dirty as it gets. So I wondered what the better way to 
do it is? As far as i can tell it just raises a general exception. Not 
one that I can catch explicitly.

Do I really have to re-compile? And if so what is needed?

regards Max M


From mal@lemburg.com Thu Feb  7 17:34:25 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g17GYOs10183;
	Thu, 7 Feb 2002 17:34:25 +0100
Message-ID: <3C62ACA4.37A66B03@lemburg.com>
Date: Thu, 07 Feb 2002 17:34:44 +0100
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Max M <maxm@mxm.dk>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] problem with mx.ODBC MS SQL-server and datetime
References: <3C628795.2080602@mxm.dk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Max M wrote:
> 
> I am trying out mx.ODBC on MS sql server, and so far it goes along nicely.
> 
> But I am having trouble with inserting dates ie. from mx.DateTime
> The error message is:
> ('01004', 0, '[Microsoft][ODBC SQL Server Driver]Fractional truncation',
> 4479)
> 
> The only thing i could find on the net was (one line only):
> 
> http://groups.google.com/groups?hl=da&frame=right&th=841f8af29973b8ba&seekm=mailman.989913322.21800.python-list%40python.org#link2
> 
> Where somebody has the same problem:
> 
> "Marc-Andre answer:
> Looks like MS SQL Server's ODBC driver is being too careful again.
> What you are seeing there is a SQL warning which mxODBC translates
> into an exception."
> 
> the advice is "recompiling the package with -DDONT_REPORT_WARNINGS"
> 
> I would find it a lot easier to just catch the exception. But I cannot
> see from the traceback which exception to catch. 

You'll have to catch the mx.ODBC.Windows.Warning exception and
then look at the first item of the reason tuple to tell which
warning was issued.

Then to fix the problem, I'd suggest to convert the DateTime
object to a datetime string value with only two digit fractions. 
str(datetime) does this for you.

> So I have made a quick
> hack:
> 
>         try: # it bitches about dates
>             c.execute(qs, localValues)
>         except:
>             pass
> 
> That's about as dirty as it gets. So I wondered what the better way to
> do it is? As far as i can tell it just raises a general exception. Not
> one that I can catch explicitly.
> 
> Do I really have to re-compile? And if so what is needed?

You'll need MS VC++ installed, the Python installation and the
mxODBC sources. Then 

python setup.py build build_ext -DDONT_REPORT_WARNINGS install

will do the trick and install the new versions on top of what you
probably already have installed.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From maxm@mxm.dk Thu Feb 21 18:14:36 2002
Received: from fe040.worldonline.dk (fe040.worldonline.dk [212.54.64.205])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id g1LHEas15328
	for <egenix-users@lists.egenix.com>; Thu, 21 Feb 2002 18:14:36 +0100
Received: (qmail 30739 invoked by uid 0); 21 Feb 2002 17:14:35 -0000
Received: from 213.237.27.77.adsl.od.worldonline.dk (HELO mxm.dk) (213.237.27.77)
  by fe040.worldonline.dk with SMTP; 21 Feb 2002 17:14:35 -0000
Message-ID: <3C752B18.3070709@mxm.dk>
Date: Thu, 21 Feb 2002 17:15:04 +0000
From: Max M <maxm@mxm.dk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7+) Gecko/20020119
X-Accept-Language: en-us
MIME-Version: 1.0
To: egenix-users <egenix-users@lists.egenix.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] comparing DateTime types
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Hi

This works as I expect:
type(mx.DateTime.now()) == type(mx.DateTime.DateTime(2002))
 >>> 1

But this doesn't:
type(mx.DateTime.now()) == type(mx.DateTime.DateTimeType)
 >>> 0

Do I have to compare instances? I would have thought that comparing with 
the "DateTimeType" directly would suffice.

regards Max M


From Jim.Vickroy@noaa.gov Thu Feb 21 18:26:05 2002
Received: from cripplecreek.sec.noaa.gov (cripplecreek.sec.noaa.gov [140.172.224.30])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g1LHQ4s15449
	for <egenix-users@lists.egenix.com>; Thu, 21 Feb 2002 18:26:04 +0100
Received: from noaa.gov ([140.172.224.138]) by
          cripplecreek.sec.noaa.gov (Netscape Messaging Server 4.15) with
          ESMTP id GRW8FF00.344; Thu, 21 Feb 2002 10:26:03 -0700 
Message-ID: <3C752DAB.3605C79A@noaa.gov>
Date: Thu, 21 Feb 2002 10:26:03 -0700
From: "Jim Vickroy" <Jim.Vickroy@noaa.gov>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Max M <maxm@mxm.dk>
CC: egenix-users <egenix-users@lists.egenix.com>
Subject: Re: [egenix-users] comparing DateTime types
References: <3C752B18.3070709@mxm.dk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Hello Max,
 I'm using Python 2.2 and here is the behavior:

>>> import mx.DateTime
>>> type(mx.DateTime.now())
<type 'DateTime'>
>>> type(mx.DateTime.DateTimeType)
<type 'type'>
>>> mx.DateTime.DateTimeType
<type 'DateTime'>
>>> type(mx.DateTime.now()) == mx.DateTime.DateTimeType
1
>>>

Note that the type of DateTimeType is 'type' which is as expected -- the
type of a type is 'type'.

Max M wrote:

> Hi
>
> This works as I expect:
> type(mx.DateTime.now()) == type(mx.DateTime.DateTime(2002))
>  >>> 1
>
> But this doesn't:
> type(mx.DateTime.now()) == type(mx.DateTime.DateTimeType)
>  >>> 0
>
> Do I have to compare instances? I would have thought that comparing with
> the "DateTimeType" directly would suffice.
>
> regards Max M
>
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> http://lists.egenix.com/mailman/listinfo/egenix-users


From maxm@mxm.dk Thu Feb 21 18:29:17 2002
Received: from fe170.worldonline.dk (fe170.worldonline.dk [212.54.64.199])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id g1LHTHs15475
	for <egenix-users@lists.egenix.com>; Thu, 21 Feb 2002 18:29:17 +0100
Received: (qmail 31476 invoked by uid 0); 21 Feb 2002 17:29:13 -0000
Received: from 213.237.27.77.adsl.od.worldonline.dk (HELO mxm.dk) (213.237.27.77)
  by fe170.worldonline.dk with SMTP; 21 Feb 2002 17:29:13 -0000
Message-ID: <3C752E89.4030709@mxm.dk>
Date: Thu, 21 Feb 2002 17:29:45 +0000
From: Max M <maxm@mxm.dk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.7+) Gecko/20020119
X-Accept-Language: en-us
MIME-Version: 1.0
To: Jim Vickroy <Jim.Vickroy@noaa.gov>
CC: egenix-users <egenix-users@lists.egenix.com>
Subject: Re: [egenix-users] comparing DateTime types
References: <3C752B18.3070709@mxm.dk> <3C752DAB.3605C79A@noaa.gov>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Jim Vickroy wrote:

>Note that the type of DateTimeType is 'type' which is as expected -- the
>type of a type is 'type'.
>
Doh!

I guess gotta read up on "Gödel, Escher, Bach" one more time. Especially 
the sections about meta levels!

regards Max m


From jh@web.de Thu Feb 21 19:36:29 2002
Received: from smtp.web.de (smtp02.web.de [217.72.192.151])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g1LIaTs15986
	for <egenix-users@lists.egenix.com>; Thu, 21 Feb 2002 19:36:29 +0100
Received: from [80.131.145.48] (helo=owlglass)
	by smtp.web.de with smtp (WEB.DE(Exim) 4.28 #21)
	id 16dy4d-00042x-00; Thu, 21 Feb 2002 19:36:07 +0100
From: "Juergen Hermann" <jh@web.de>
To: "Jim Vickroy" <Jim.Vickroy@noaa.gov>, "Max M" <maxm@mxm.dk>
Cc: "egenix-users" <egenix-users@lists.egenix.com>
Date: Thu, 21 Feb 2002 19:36:20 +0100
Reply-To: "Juergen Hermann" <jh@web.de>
Priority: Normal
X-Mailer: PMMail 2000 Standard (2.10.2010) For Windows NT (4.0.1381;6)
In-Reply-To: <3C752E89.4030709@mxm.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Subject: Re: [egenix-users] comparing DateTime types
Message-Id: <E16dy4d-00042x-00@smtp.web.de>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by www.egenix.com id g1LIaTs15986
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

On Thu, 21 Feb 2002 17:29:45 +0000, Max M wrote:

>I guess gotta read up on "Gödel, Escher, Bach" one more time. Especially 
>the sections about meta levels!

That apart, type checks should be done with isinstance()!


Ciao, Jürgen



From sholden@holdenweb.com Thu Feb 21 22:17:41 2002
Received: from mail2.registeredsite.com (mail2.registeredsite.com [64.224.9.11])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g1LLHes17092
	for <egenix-users@lists.egenix.com>; Thu, 21 Feb 2002 22:17:40 +0100
Received: from mail.holdenweb.com (mail.holdenweb.com [64.224.159.178])
	by mail2.registeredsite.com (8.11.6/8.11.4) with ESMTP id g1LKNCV23620;
	Thu, 21 Feb 2002 15:23:12 -0500
Received: from thinker [64.224.159.178] by mail.holdenweb.com
  (SMTPD32-6.06) id A3F03BCA0072; Thu, 21 Feb 2002 16:17:36 -0500
Message-ID: <00f801c1bb1d$21c09740$d200000a@holdenweb.com>
From: "Steve Holden" <sholden@holdenweb.com>
To: "Max M" <maxm@mxm.dk>, "egenix-users" <egenix-users@lists.egenix.com>
References: <3C752B18.3070709@mxm.dk>
Subject: Re: [egenix-users] comparing DateTime types
Date: Thu, 21 Feb 2002 16:17:11 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

----- Original Message -----
From: "Max M" <maxm@mxm.dk>
To: "egenix-users" <egenix-users@lists.egenix.com>
Sent: Thursday, February 21, 2002 12:15 PM
Subject: [egenix-users] comparing DateTime types


> Hi
>
> This works as I expect:
> type(mx.DateTime.now()) == type(mx.DateTime.DateTime(2002))
>  >>> 1
>
> But this doesn't:
> type(mx.DateTime.now()) == type(mx.DateTime.DateTimeType)
>  >>> 0
>
> Do I have to compare instances? I would have thought that comparing
with
> the "DateTimeType" directly would suffice.
>
>>> import mx.DateTime as dt
>>> dt.DateTimeType
<type 'DateTime'>
>>> type(dt.now())
<type 'DateTime'>

The magic you were looking for is probably

    type(mx.DateTime.now()) == mx.DateTime.DateTimeType

The problem here is that type(mx.DateTime.DateTimeType) is a type, whose
type should therefore be typeType.

>>> type(dt.DateTimeType)
<type 'type'>

Hope this helps.

regards
 Steve
--
Consulting, training, speaking: http://www.holdenweb.com/
Author, Python Web Programming: http://pydish.holdenweb.com/pwp/

"This is Python.  We don't care much about theory, except where it
intersects with useful practice."  Aahz Maruch on c.l.py




From egrubbs@rackspace.com Sat Mar 30 03:24:56 2002
Received: from anubis.cymitar.com (64-39-1-26.dhcp.hq.rackspace.com [64.39.1.26])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g2U2Ots30072
	for <egenix-users@lists.egenix.com>; Sat, 30 Mar 2002 03:24:55 +0100
Received: by anubis.cymitar.com (Postfix, from userid 501)
	id 562402F77; Fri, 29 Mar 2002 20:24:23 -0600 (CST)
Received: from localhost (localhost [127.0.0.1])
	by anubis.cymitar.com (Postfix) with ESMTP id 52F522F76
	for <egenix-users@lists.egenix.com>; Fri, 29 Mar 2002 20:24:23 -0600 (CST)
Date: Fri, 29 Mar 2002 20:24:23 -0600 (CST)
From: Edwin Grubbs <egrubbs@rackspace.com>
X-X-Sender: egrubbs@zamboni.wc6.rackspace.com
To: egenix-users@lists.egenix.com
Message-ID: <Pine.LNX.4.44.0203292011420.24893-100000@zamboni.wc6.rackspace.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: [egenix-users] DateTime error rounding seconds
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

I am having a problem with DateTime incorrectly rounding the floating 
point second value down 1/100 of second.

Python 2.2 (#1, Mar 13 2002, 12:34:11) 
[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mx.DateTime import *
>>> DateTime(2002, 1, 2, 3, 4, 5.00)
<DateTime object for '2002-01-02 03:04:05.00' at 8126658>
>>> DateTime(2002, 1, 2, 3, 4, 5.01)
<DateTime object for '2002-01-02 03:04:05.00' at 8152098>
>>> DateTime(2002, 1, 2, 3, 4, 5.02)
<DateTime object for '2002-01-02 03:04:05.01' at 8126658>
>>> DateTime(2002, 1, 2, 3, 4, 5.03)
<DateTime object for '2002-01-02 03:04:05.03' at 8152098>
>>> DateTime(2002, 1, 2, 3, 4, 5.04)
<DateTime object for '2002-01-02 03:04:05.04' at 8126658>
>>> DateTime(2002, 1, 2, 3, 4, 5.05)
<DateTime object for '2002-01-02 03:04:05.04' at 8152098>
>>> DateTime(2002, 1, 2, 3, 4, 5.06)
<DateTime object for '2002-01-02 03:04:05.05' at 8126658>


-Edwin Grubbs


From mal@lemburg.com Tue Apr  2 19:31:36 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g32HVas31561;
	Tue, 2 Apr 2002 19:31:36 +0200
Message-ID: <3CA9EAF8.A528E748@lemburg.com>
Date: Tue, 02 Apr 2002 19:31:36 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Edwin Grubbs <egrubbs@rackspace.com>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] DateTime error rounding seconds
References: <Pine.LNX.4.44.0203292011420.24893-100000@zamboni.wc6.rackspace.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Edwin Grubbs wrote:
> 
> I am having a problem with DateTime incorrectly rounding the floating
> point second value down 1/100 of second.
> 
> Python 2.2 (#1, Mar 13 2002, 12:34:11)
> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from mx.DateTime import *
> >>> DateTime(2002, 1, 2, 3, 4, 5.00)
> <DateTime object for '2002-01-02 03:04:05.00' at 8126658>
> >>> DateTime(2002, 1, 2, 3, 4, 5.01)
> <DateTime object for '2002-01-02 03:04:05.00' at 8152098>
> >>> DateTime(2002, 1, 2, 3, 4, 5.02)
> <DateTime object for '2002-01-02 03:04:05.01' at 8126658>
> >>> DateTime(2002, 1, 2, 3, 4, 5.03)
> <DateTime object for '2002-01-02 03:04:05.03' at 8152098>
> >>> DateTime(2002, 1, 2, 3, 4, 5.04)
> <DateTime object for '2002-01-02 03:04:05.04' at 8126658>
> >>> DateTime(2002, 1, 2, 3, 4, 5.05)
> <DateTime object for '2002-01-02 03:04:05.04' at 8152098>
> >>> DateTime(2002, 1, 2, 3, 4, 5.06)
> <DateTime object for '2002-01-02 03:04:05.05' at 8126658>

That's because 5.05 is really 5.0499999999999998. mxDateTime's
repr() function truncates the seconds value to avoid accidental
cases of a 60 reading when you really only have 59.6 seconds.

Use now().second to access the true seconds value with
full accuracy.

HTH, 
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From egrubbs@rackspace.com Tue Apr  2 22:27:02 2002
Received: from anubis.cymitar.com (64-39-1-26.dhcp.hq.rackspace.com [64.39.1.26])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g32KR2s32718
	for <egenix-users@lists.egenix.com>; Tue, 2 Apr 2002 22:27:02 +0200
Received: by anubis.cymitar.com (Postfix, from userid 501)
	id 744CA2F7B; Tue,  2 Apr 2002 14:26:16 -0600 (CST)
Received: from localhost (localhost [127.0.0.1])
	by anubis.cymitar.com (Postfix) with ESMTP id 715642F7A
	for <egenix-users@lists.egenix.com>; Tue,  2 Apr 2002 14:26:16 -0600 (CST)
Date: Tue, 2 Apr 2002 14:26:16 -0600 (CST)
From: Edwin Grubbs <egrubbs@rackspace.com>
X-X-Sender: egrubbs@zamboni.wc6.rackspace.com
To: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] DateTime error rounding seconds
In-Reply-To: <3CA9EAF8.A528E748@lemburg.com>
Message-ID: <Pine.LNX.4.44.0204021211110.2462-100000@zamboni.wc6.rackspace.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

On Tue, 2 Apr 2002, M.-A. Lemburg wrote:

> Edwin Grubbs wrote:
> > 
> > I am having a problem with DateTime incorrectly rounding the floating
> > point second value down 1/100 of second.
> > 
> > Python 2.2 (#1, Mar 13 2002, 12:34:11)
> > [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> from mx.DateTime import *
> > >>> DateTime(2002, 1, 2, 3, 4, 5.00)
> > <DateTime object for '2002-01-02 03:04:05.00' at 8126658>
> > >>> DateTime(2002, 1, 2, 3, 4, 5.01)
> > <DateTime object for '2002-01-02 03:04:05.00' at 8152098>
> > >>> DateTime(2002, 1, 2, 3, 4, 5.02)
> > <DateTime object for '2002-01-02 03:04:05.01' at 8126658>
> > >>> DateTime(2002, 1, 2, 3, 4, 5.03)
> > <DateTime object for '2002-01-02 03:04:05.03' at 8152098>
> > >>> DateTime(2002, 1, 2, 3, 4, 5.04)
> > <DateTime object for '2002-01-02 03:04:05.04' at 8126658>
> > >>> DateTime(2002, 1, 2, 3, 4, 5.05)
> > <DateTime object for '2002-01-02 03:04:05.04' at 8152098>
> > >>> DateTime(2002, 1, 2, 3, 4, 5.06)
> > <DateTime object for '2002-01-02 03:04:05.05' at 8126658>
> 
> That's because 5.05 is really 5.0499999999999998. mxDateTime's
> repr() function truncates the seconds value to avoid accidental
> cases of a 60 reading when you really only have 59.6 seconds.
> 
> Use now().second to access the true seconds value with
> full accuracy.
> 
> HTH, 
> 

The real problem with it, is that str() returns the truncated date just
like repr(), and we are using str() to insert datetime fields. If you
create a DateTime object for 03:04:05.02 and insert it into a Postgres 7
database using its str() value, it is stored as 03:04:05.01. Then when you
retrieve 03:04:05.01 from the database, the DateTime object shows it as
03:04:05.00. Then you cannot match the row that you just retrieved with 
its datetime column. How is the DateTime object supposed to be inserted 
and retrieved from the database?

I understand that a float cannot represent most decimal values exactly,
but truncating just increases the inaccuracy even though it might seem
more coherent to have "2002-03-28 10:59:59.9999" truncated to "2002-03-28
10:59:59.99" instead of rounded to "2002-03-28 11:00:00.00".

-Edwin









From sholden@holdenweb.com Wed Apr  3 14:28:27 2002
Received: from mail3.registeredsite.com (mail3.registeredsite.com [64.224.9.12])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g33CSQs07371
	for <egenix-users@lists.egenix.com>; Wed, 3 Apr 2002 14:28:27 +0200
Received: from mail.holdenweb.com (mail.holdenweb.com [64.224.159.178])
	by mail3.registeredsite.com (8.11.6/8.11.4) with ESMTP id g33BXgx27819;
	Wed, 3 Apr 2002 06:33:43 -0500
Received: from COMPUTER [64.224.159.178] by mail.holdenweb.com
  (SMTPD32-6.06) id A568188100FC; Wed, 03 Apr 2002 07:28:24 -0500
Message-ID: <025701c1db0a$a94dab00$d200000a@COMPUTER>
From: "Steve Holden" <sholden@holdenweb.com>
To: "Edwin Grubbs" <egrubbs@rackspace.com>, <egenix-users@lists.egenix.com>
References: <Pine.LNX.4.44.0204021211110.2462-100000@zamboni.wc6.rackspace.com>
Subject: Re: [egenix-users] DateTime error rounding seconds
Date: Wed, 3 Apr 2002 07:25:36 -0500
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

----- Original Message -----
From: "Edwin Grubbs" <egrubbs@rackspace.com>
To: <egenix-users@lists.egenix.com>
Sent: Tuesday, April 02, 2002 3:26 PM
Subject: Re: [egenix-users] DateTime error rounding seconds


> On Tue, 2 Apr 2002, M.-A. Lemburg wrote:
>
> > Edwin Grubbs wrote:
> > >
> > > I am having a problem with DateTime incorrectly rounding the floating
> > > point second value down 1/100 of second.
> > >
> > > Python 2.2 (#1, Mar 13 2002, 12:34:11)
> > > [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > > >>> from mx.DateTime import *
> > > >>> DateTime(2002, 1, 2, 3, 4, 5.00)
> > > <DateTime object for '2002-01-02 03:04:05.00' at 8126658>
> > > >>> DateTime(2002, 1, 2, 3, 4, 5.01)
> > > <DateTime object for '2002-01-02 03:04:05.00' at 8152098>
> > > >>> DateTime(2002, 1, 2, 3, 4, 5.02)
> > > <DateTime object for '2002-01-02 03:04:05.01' at 8126658>
> > > >>> DateTime(2002, 1, 2, 3, 4, 5.03)
> > > <DateTime object for '2002-01-02 03:04:05.03' at 8152098>
> > > >>> DateTime(2002, 1, 2, 3, 4, 5.04)
> > > <DateTime object for '2002-01-02 03:04:05.04' at 8126658>
> > > >>> DateTime(2002, 1, 2, 3, 4, 5.05)
> > > <DateTime object for '2002-01-02 03:04:05.04' at 8152098>
> > > >>> DateTime(2002, 1, 2, 3, 4, 5.06)
> > > <DateTime object for '2002-01-02 03:04:05.05' at 8126658>
> >
> > That's because 5.05 is really 5.0499999999999998. mxDateTime's
> > repr() function truncates the seconds value to avoid accidental
> > cases of a 60 reading when you really only have 59.6 seconds.
> >
> > Use now().second to access the true seconds value with
> > full accuracy.
> >
> > HTH,
> >
>
> The real problem with it, is that str() returns the truncated date just
> like repr(), and we are using str() to insert datetime fields. If you
> create a DateTime object for 03:04:05.02 and insert it into a Postgres 7
> database using its str() value, it is stored as 03:04:05.01. Then when you
> retrieve 03:04:05.01 from the database, the DateTime object shows it as
> 03:04:05.00. Then you cannot match the row that you just retrieved with
> its datetime column. How is the DateTime object supposed to be inserted
> and retrieved from the database?
>
Isn't the *real* real problem (;-) i that you are using character fields to
store date values? Normally one is supposed to use a timestamp or datetime
field to store these values (if you store them as strings then equality is
the only sensible test you can make. As datetime values you can also use <,
>, BETWEEN, etc.). However, even this solution sometimes has pitfalls -
stroing datetimes in either Access of SQL Server (I think the latter, but
it's a long time ago) raies warnings abour field truncation, which you have
to cure by removing any fractional seconds before storage.

> I understand that a float cannot represent most decimal values exactly,
> but truncating just increases the inaccuracy even though it might seem
> more coherent to have "2002-03-28 10:59:59.9999" truncated to "2002-03-28
> 10:59:59.99" instead of rounded to "2002-03-28 11:00:00.00".
>
Just as one asks for trouble by treating floats as exact, it's problematic
to store date/time values as strings. If you DBMS has no date/time type,
consider converting the dates to an appropriate numeric format.

regards
 Steve



From mal@lemburg.com Wed Apr  3 15:18:41 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g33DIfs07788;
	Wed, 3 Apr 2002 15:18:41 +0200
Message-ID: <3CAB0173.589E3584@lemburg.com>
Date: Wed, 03 Apr 2002 15:19:47 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Edwin Grubbs <egrubbs@rackspace.com>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] DateTime error rounding seconds
References: <Pine.LNX.4.44.0204021211110.2462-100000@zamboni.wc6.rackspace.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Edwin Grubbs wrote:
> 
> On Tue, 2 Apr 2002, M.-A. Lemburg wrote:
> 
> > Edwin Grubbs wrote:
> > >
> > > I am having a problem with DateTime incorrectly rounding the floating
> > > point second value down 1/100 of second.
> > That's because 5.05 is really 5.0499999999999998. mxDateTime's
> > repr() function truncates the seconds value to avoid accidental
> > cases of a 60 reading when you really only have 59.6 seconds.
> >
> > Use now().second to access the true seconds value with
> > full accuracy.
> 
> The real problem with it, is that str() returns the truncated date just
> like repr(), and we are using str() to insert datetime fields. If you
> create a DateTime object for 03:04:05.02 and insert it into a Postgres 7
> database using its str() value, it is stored as 03:04:05.01. Then when you
> retrieve 03:04:05.01 from the database, the DateTime object shows it as
> 03:04:05.00. Then you cannot match the row that you just retrieved with
> its datetime column. How is the DateTime object supposed to be inserted
> and retrieved from the database?

The database interface should use the C API for this. It preserves
the accuracy all the way. If that's not an option, I'd consider using
the tuple representation now().tuple() which mimics 
time.localtime(time.time()) (but with added seconds accuracy).
 
> I understand that a float cannot represent most decimal values exactly,
> but truncating just increases the inaccuracy even though it might seem
> more coherent to have "2002-03-28 10:59:59.9999" truncated to "2002-03-28
> 10:59:59.99" instead of rounded to "2002-03-28 11:00:00.00".

Hmm, one possibility would be to use rounding for all second
values < 59.995 and apply truncation to all others.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From holtwick@spirito.de Thu Apr  4 09:07:48 2002
Received: from main.spirito.de (main.spirito.de [213.9.98.5])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id g3477ms16205
	for <egenix-users@lists.egenix.com>; Thu, 4 Apr 2002 09:07:48 +0200
Received: (qmail 19038 invoked from network); 4 Apr 2002 07:13:21 -0000
Received: from acb04099.ipt.aol.com (HELO spirito.de) (holtwick@172.176.64.153)
  by main.spirito.de with SMTP; 4 Apr 2002 07:13:21 -0000
Message-ID: <3CABFBC3.5040405@spirito.de>
Date: Thu, 04 Apr 2002 09:07:47 +0200
From: Dirk Holtwick <holtwick@spirito.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:0.9.9) Gecko/20020311
X-Accept-Language: de, en-us, en
MIME-Version: 1.0
To: egenix-users@lists.egenix.com
References: <Pine.LNX.4.44.0204021211110.2462-100000@zamboni.wc6.rackspace.com> <3CAB0173.589E3584@lemburg.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] New releases?
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Hi Marc-Andre,

when do you plan to release the new versions of mxExperimental and 
mxBase? Maybe testing of the newer versions could become easier with a 
"beta testing" are on your website? I didn't find any bigger problems in 
the new version.

Cheers, Dirk




From mal@lemburg.com Thu Apr  4 12:52:47 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g34Aqls17692;
	Thu, 4 Apr 2002 12:52:47 +0200
Message-ID: <3CAC30C7.3C581021@lemburg.com>
Date: Thu, 04 Apr 2002 12:53:59 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Dirk Holtwick <holtwick@spirito.de>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] New releases?
References: <Pine.LNX.4.44.0204021211110.2462-100000@zamboni.wc6.rackspace.com> <3CAB0173.589E3584@lemburg.com> <3CABFBC3.5040405@spirito.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Dirk Holtwick wrote:
> 
> Hi Marc-Andre,
> 
> when do you plan to release the new versions of mxExperimental and
> mxBase? Maybe testing of the newer versions could become easier with a
> "beta testing" are on your website? I didn't find any bigger problems in
> the new version.

I was too busy the last few weeks to work on this, but since you
ask, I'll upload the latest betas today and let you know.

FWIW, I'm especially interested in hearing about the changes
to mxBeeBase -- it should work on Windows and Unix now and it
supports large files (up to 4GB) on Unix machines which have 
this.

If all works out, mxBeeBase would make a great alternative
to the various DBM packages out there since it is 
self-contained and aims to be platform independent (both
API and data file wise).

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From mal@lemburg.com Thu Apr  4 16:37:04 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g34Eb4s19153;
	Thu, 4 Apr 2002 16:37:04 +0200
Message-ID: <3CAC6558.6CF10ABB@lemburg.com>
Date: Thu, 04 Apr 2002 16:38:16 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Dirk Holtwick <holtwick@spirito.de>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] New releases?
References: <Pine.LNX.4.44.0204021211110.2462-100000@zamboni.wc6.rackspace.com> <3CAB0173.589E3584@lemburg.com> <3CABFBC3.5040405@spirito.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Ok, I won't find time for the betas today. To not let you
wait, here's something else:

I updated mxCGIPython to now play nice with importing
shared modules. This means that you can start using your
favourite DateTime package with cgipython in CGI scripts !

Here's the new mxCGIPython version:

   http://www.egenix.com/files/python/mxCGIPython.html

I've tested it with Python 2.1, but 2.2 should also work.

Have fun,
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From mal@lemburg.com Thu Apr  4 19:44:04 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g34Hi4s20641;
	Thu, 4 Apr 2002 19:44:04 +0200
Message-ID: <3CAC9127.60C3B1C8@lemburg.com>
Date: Thu, 04 Apr 2002 19:45:11 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Edwin Grubbs <egrubbs@rackspace.com>, egenix-users@lists.egenix.com
Subject: Re: [egenix-users] DateTime error rounding seconds
References: <Pine.LNX.4.44.0204021211110.2462-100000@zamboni.wc6.rackspace.com> <3CAB0173.589E3584@lemburg.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

"M.-A. Lemburg" wrote:
> 
> > The real problem with it, is that str() returns the truncated date just
> > like repr(), and we are using str() to insert datetime fields. If you
> > create a DateTime object for 03:04:05.02 and insert it into a Postgres 7
> > database using its str() value, it is stored as 03:04:05.01. Then when you
> > retrieve 03:04:05.01 from the database, the DateTime object shows it as
> > 03:04:05.00. Then you cannot match the row that you just retrieved with
> > its datetime column. How is the DateTime object supposed to be inserted
> > and retrieved from the database?
> 
> The database interface should use the C API for this. It preserves
> the accuracy all the way. If that's not an option, I'd consider using
> the tuple representation now().tuple() which mimics
> time.localtime(time.time()) (but with added seconds accuracy).
> 
> > I understand that a float cannot represent most decimal values exactly,
> > but truncating just increases the inaccuracy even though it might seem
> > more coherent to have "2002-03-28 10:59:59.9999" truncated to "2002-03-28
> > 10:59:59.99" instead of rounded to "2002-03-28 11:00:00.00".
> 
> Hmm, one possibility would be to use rounding for all second
> values < 59.995 and apply truncation to all others.

Ok, I've change this now to have str(DateTime(...)) round seconds
to two decimal places with the exception of second values
>=59.995 and <60.00. The latter are all mapped to 59.99. 

This may sound like a strange method, but in practice should 
enhance accuracy when interfacing with other storage mechanisms 
using string representations.

If anyone needs the old behaviour, I'll add a compile time
#define to switch back to the old behaviour.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From pramasub@bigmachines.com Fri Apr  5 05:11:36 2002
Received: from smtps.bigmachines.com (ppp-63-201-248-231.bigmachines.com [63.201.248.231] (may be forged))
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id g353BZs25335
	for <egenix-users@lists.egenix.com>; Fri, 5 Apr 2002 05:11:35 +0200
Received: FROM bmfmail.bigmachines BY smtps.bigmachines.com ; Thu Apr 04 19:11:45 2002 -0800
Received: from bmfc159 ([10.1.1.1]) by bmfmail.bigmachines
          (Post.Office MTA v3.5.3 release 223 ID# 0-65145U1000L100S0V35)
          with SMTP id bigmachines for <egenix-users@lists.egenix.com>;
          Thu, 4 Apr 2002 19:11:24 -0800
Message-ID: <000a01c1dc50$226b8250$320210ac@bigmachines.com>
From: pramasub@bigmachines.com (Prathibha Ram)
To: <egenix-users@lists.egenix.com>
Date: Thu, 4 Apr 2002 19:15:27 -0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0007_01C1DC0D.14268980"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Subject: [egenix-users] question
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C1DC0D.14268980
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all

Since I have started using the new exgenix mx Base package, I keep =
getting compilation errors in import. I was using the previous version =
of the mx package and my import statement in files used to be import =
mx.DateTime. What should this be changed to since this is no longer =
recognized and I keep getting the compile error.

Also now I get the following error
Traceback (innermost last):
  File "<string>", line 8, in ?
  File "/mach/jython-2.1/Lib/mx/DateTime/__init__.py", line 40, in ?
  File "/mach/jython-2.1/Lib/mx/DateTime/__init__.py", line 48, in =
modinit
  File "/mach/jython-2.1/Lib/copy_reg.py", line 16, in pickle
TypeError: copy_reg is not intended for use with classes

can anyone suggest anything about the above error?=20

Thanks very much for your input and time.=20
Prathibbha

I use jython in conjunction with java on an NT machine.

------=_NextPart_000_0007_01C1DC0D.14268980
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Since I have started using the new =
exgenix mx Base=20
package, I keep getting compilation errors in import. I was using the =
previous=20
version of the mx package and my import statement in files used to be =
import=20
mx.DateTime. What should this be changed to since&nbsp;this is no longer =

recognized and I keep getting the compile error.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Also now I get the following =
error</FONT></DIV>
<DIV>Traceback (innermost last):<BR>&nbsp; File "&lt;string&gt;", line =
8, in=20
?<BR>&nbsp; File "/mach/jython-2.1/Lib/mx/DateTime/__init__.py", line =
40, in=20
?<BR>&nbsp; File "/mach/jython-2.1/Lib/mx/DateTime/__init__.py", line =
48, in=20
modinit<BR>&nbsp; File "/mach/jython-2.1/Lib/copy_reg.py", line 16, in=20
pickle<BR>TypeError: copy_reg is not intended for use with classes</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>can anyone suggest anything about the =
above error?=20
</FONT></DIV><FONT face=3DArial size=3D2>
<DIV><BR>Thanks very much for your input and time. </DIV>
<DIV>Prathibbha</DIV>
<DIV>&nbsp;</DIV>
<DIV>I use jython in conjunction with java on an NT=20
machine.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01C1DC0D.14268980--


From mal@lemburg.com Fri Apr  5 10:07:18 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g3587Is27115;
	Fri, 5 Apr 2002 10:07:18 +0200
Message-ID: <3CAD5B82.B6267E0C@lemburg.com>
Date: Fri, 05 Apr 2002 10:08:34 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Prathibha Ram <pramasub@bigmachines.com>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] question
References: <000a01c1dc50$226b8250$320210ac@bigmachines.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

> Prathibha Ram wrote:
> 
> Hi all
> 
> Since I have started using the new exgenix mx Base package, I keep
> getting compilation errors in import. I was using the previous version
> of the mx package and my import statement in files used to be import
> mx.DateTime. What should this be changed to since this is no longer
> recognized and I keep getting the compile error.
> 
> Also now I get the following error
> Traceback (innermost last):
>   File "<string>", line 8, in ?
>   File "/mach/jython-2.1/Lib/mx/DateTime/__init__.py", line 40, in ?
>   File "/mach/jython-2.1/Lib/mx/DateTime/__init__.py", line 48, in
> modinit
>   File "/mach/jython-2.1/Lib/copy_reg.py", line 16, in pickle
> TypeError: copy_reg is not intended for use with classes
> 
> can anyone suggest anything about the above error?

The eGenix mx Tools only support CPython, not Jython. You
probably can still use them with Jython if you hook JPE up
to the Java VM, though, or interface to them via JNI 
directly.
 
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

PS: Please don't post HTML messages to the list. Thanks.

From mal@lemburg.com Fri Apr  5 22:20:15 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g35KKFs32080;
	Fri, 5 Apr 2002 22:20:15 +0200
Message-ID: <3CAE0749.77E43CE7@lemburg.com>
Date: Fri, 05 Apr 2002 22:21:29 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Prathibha Ram <pramasub@bigmachines.com>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] question
References: <000a01c1dc50$226b8250$320210ac@bigmachines.com> <3CAD5B82.B6267E0C@lemburg.com> <001101c1dcd9$345f0160$320210ac@bigmachines.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Prathibha Ram wrote:
> 
> Hi Mark:
> I was already using the mx extension version(prior to 2.0.3) with jython1.5
> and it was fine. All I did was import the mx.DateTime package in my code.
> Even now, the old version of the mx Extension package works fine with jython
> 2.1 except that it gives the copy_reg error first time I invoke jython. 

You could probably use the Python code in the mxDateTime package,
but you wouldn't have access to the two types defined in the
C extension.

Now, someone wrote a Python emulation for those two which now
lives in mxDateTime/mxDateTime_Python.py but that file is not
being actively maintained. 

> Do
> you think if I go in for commercial support you would be able to configure
> your mx Extension for jython2.1? 

Probably not all of them since some use third party C libs
which are hard to rewrite in Python or Java.

For mxDateTime, Brian Zimmer is working on an Java version.

With funding, I could also bring the Python emulation of the 
mxDateTime extension back up-to-date and reenable it (see
mxDateTime/__init__.py if you want to give it try with the
old emulation).

> The reason I am asking is that otherwise, I
> will have to shelve all the extension packages that I have been using till
> now. I might have to start using the time module in jython and write some py
> files of my own for date manipulations.

We'll figure out a way to let you continue your usage of mxDateTime
in Jython :-)
 
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From mal@lemburg.com Fri Apr  5 22:21:47 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g35KLls32110;
	Fri, 5 Apr 2002 22:21:47 +0200
Message-ID: <3CAE07A5.2322636E@lemburg.com>
Date: Fri, 05 Apr 2002 22:23:01 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "eGenix.com User Mailinglist" <egenix-users@lists.egenix.com>
Subject: Re: [egenix-users] question
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Hi Mark:
I was already using the mx extension version(prior to 2.0.3) with
jython1.5
and it was fine. All I did was import the mx.DateTime package in my
code.
Even now, the old version of the mx Extension package works fine with
jython
2.1 except that it gives the copy_reg error first time I invoke jython.
Do
you think if I go in for commercial support you would be able to
configure
your mx Extension for jython2.1? The reason I am asking is that
otherwise, I
will have to shelve all the extension packages that I have been using
till
now. I might have to start using the time module in jython and write
some py
files of my own for date manipulations.

I will appreciate your reply.

Thank you for your input and time.
Prathibbha.


----- Original Message -----
From: "M.-A. Lemburg" <mal@lemburg.com>
To: "Prathibha Ram" <pramasub@bigmachines.com>
Cc: <egenix-users@lists.egenix.com>
Sent: Friday, April 05, 2002 12:08 AM
Subject: Re: [egenix-users] question


> > Prathibha Ram wrote:
> >
> > Hi all
> >
> > Since I have started using the new exgenix mx Base package, I keep
> > getting compilation errors in import. I was using the previous version
> > of the mx package and my import statement in files used to be import
> > mx.DateTime. What should this be changed to since this is no longer
> > recognized and I keep getting the compile error.
> >
> > Also now I get the following error
> > Traceback (innermost last):
> >   File "<string>", line 8, in ?
> >   File "/mach/jython-2.1/Lib/mx/DateTime/__init__.py", line 40, in ?
> >   File "/mach/jython-2.1/Lib/mx/DateTime/__init__.py", line 48, in
> > modinit
> >   File "/mach/jython-2.1/Lib/copy_reg.py", line 16, in pickle
> > TypeError: copy_reg is not intended for use with classes
> >
> > can anyone suggest anything about the above error?
>
> The eGenix mx Tools only support CPython, not Jython. You
> probably can still use them with Jython if you hook JPE up
> to the Java VM, though, or interface to them via JNI
> directly.
>
> --
> Marc-Andre Lemburg
> CEO eGenix.com Software GmbH
> ______________________________________________________________________
> Company & Consulting:                           http://www.egenix.com/
> Python Software:                   http://www.egenix.com/files/python/
>
> PS: Please don't post HTML messages to the list. Thanks.
>

From mal@lemburg.com Fri Apr  5 23:51:46 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g35Lpks00336;
	Fri, 5 Apr 2002 23:51:46 +0200
Message-ID: <3CAE1CBC.B597D946@lemburg.com>
Date: Fri, 05 Apr 2002 23:53:00 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "eGenix.com User Mailinglist" <egenix-users@lists.egenix.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] ANN: eGenix.com mx BASE 2.1.0 (beta1) + EXPERIMENTAL 0.7.0 (beta1)
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Ok, I've finally found the time to wrap up the first betas
for the two packages. Here they are (sorry, no time to sort
these links):

http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.2_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py1.5.exe
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.1_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py2.0.exe
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py2.1.exe
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.2_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py2.2.exe
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.1_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.tar.gz
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.zip
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.0_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py1.5_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py1.5_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.0_1.i386.rpm

and 

http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py2.0.exe
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py2.1.exe
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py2.2.exe
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py1.5_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.1_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.0_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.1_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.0_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.zip
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.2_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.tar.gz
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py1.5_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.2_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py1.5.exe

Please have a look at the various documentation files for
a list of changes. Most important are probably the enhanced
mxBeeBase (BASE), the updated mxUID (EXP), better compile 
support for mxNumber (EXP) and the usual bunch of small 
bug fixes.

Have fun,
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From Jim.Vickroy@noaa.gov Sat Apr  6 00:05:43 2002
Received: from cripplecreek.sec.noaa.gov (cripplecreek.sec.noaa.gov [140.172.224.30])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g35M5hs00888
	for <egenix-users@lists.egenix.com>; Sat, 6 Apr 2002 00:05:43 +0200
Received: from noaa.gov ([140.172.224.138]) by
          cripplecreek.sec.noaa.gov (Netscape Messaging Server 4.15) with
          ESMTP id GU481H00.LF0; Fri, 5 Apr 2002 15:05:41 -0700 
Message-ID: <3CAE1FB6.35B3EE2C@noaa.gov>
Date: Fri, 05 Apr 2002 15:05:43 -0700
From: "Jim Vickroy" <Jim.Vickroy@noaa.gov>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "M.-A. Lemburg" <mal@lemburg.com>
CC: "eGenix.com User Mailinglist" <egenix-users@lists.egenix.com>
Subject: Re: [egenix-users] ANN: eGenix.com mx BASE 2.1.0 (beta1) + EXPERIMENTAL 
 0.7.0 (beta1)
References: <3CAE1CBC.B597D946@lemburg.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Marc, I'm having an access difficulty.  When I click on a Windows link, here is the
message:

The requested URL /files/python/egenix-mx-base-2.1.0b1.win32-py2.2.exe was not found
on this server.


"M.-A. Lemburg" wrote:

> Ok, I've finally found the time to wrap up the first betas
> for the two packages. Here they are (sorry, no time to sort
> these links):
>
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.2_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py1.5.exe
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.1_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py2.0.exe
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py2.1.exe
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.2_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py2.2.exe
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.1_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.tar.gz
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.zip
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.0_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py1.5_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py1.5_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.0_1.i386.rpm
>
> and
>
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py2.0.exe
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py2.1.exe
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py2.2.exe
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py1.5_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.1_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.0_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.1_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.0_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.zip
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.2_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.tar.gz
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py1.5_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.2_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py1.5.exe
>
> Please have a look at the various documentation files for
> a list of changes. Most important are probably the enhanced
> mxBeeBase (BASE), the updated mxUID (EXP), better compile
> support for mxNumber (EXP) and the usual bunch of small
> bug fixes.
>
> Have fun,
> --
> Marc-Andre Lemburg
> CEO eGenix.com Software GmbH
> ______________________________________________________________________
> Company & Consulting:                           http://www.egenix.com/
> Python Software:                   http://www.egenix.com/files/python/
>
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> http://lists.egenix.com/mailman/listinfo/egenix-users


From Jim.Vickroy@noaa.gov Sat Apr  6 00:12:16 2002
Received: from cripplecreek.sec.noaa.gov (cripplecreek.sec.noaa.gov [140.172.224.30])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g35MCFs00980
	for <egenix-users@lists.egenix.com>; Sat, 6 Apr 2002 00:12:15 +0200
Received: from noaa.gov ([140.172.224.138]) by
          cripplecreek.sec.noaa.gov (Netscape Messaging Server 4.15) with
          ESMTP id GU48CE00.TDX; Fri, 5 Apr 2002 15:12:14 -0700 
Message-ID: <3CAE2140.799E1412@noaa.gov>
Date: Fri, 05 Apr 2002 15:12:16 -0700
From: "Jim Vickroy" <Jim.Vickroy@noaa.gov>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "M.-A. Lemburg" <mal@lemburg.com>
CC: "eGenix.com User Mailinglist" <egenix-users@lists.egenix.com>
Subject: Re: [egenix-users] ANN: eGenix.com mx BASE 2.1.0 (beta1) + EXPERIMENTAL 
 0.7.0 (beta1)
References: <3CAE1CBC.B597D946@lemburg.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

OK, I waited for a few minutes and now I can access the links.  Sorry about that, I
guess I just tried too soon the first time.

"M.-A. Lemburg" wrote:

> Ok, I've finally found the time to wrap up the first betas
> for the two packages. Here they are (sorry, no time to sort
> these links):
>
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.2_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py1.5.exe
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.1_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py2.0.exe
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py2.1.exe
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.2_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.win32-py2.2.exe
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.1_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.tar.gz
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1.zip
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.0_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py1.5_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py1.5_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b1-py2.0_1.i386.rpm
>
> and
>
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py2.0.exe
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py2.1.exe
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py2.2.exe
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py1.5_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.1_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.0_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.1_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.0_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.zip
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.2_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.tar.gz
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py1.5_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1-py2.2_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-experimental-0.7.0b1.win32-py1.5.exe
>
> Please have a look at the various documentation files for
> a list of changes. Most important are probably the enhanced
> mxBeeBase (BASE), the updated mxUID (EXP), better compile
> support for mxNumber (EXP) and the usual bunch of small
> bug fixes.
>
> Have fun,
> --
> Marc-Andre Lemburg
> CEO eGenix.com Software GmbH
> ______________________________________________________________________
> Company & Consulting:                           http://www.egenix.com/
> Python Software:                   http://www.egenix.com/files/python/
>
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> http://lists.egenix.com/mailman/listinfo/egenix-users


From mal@lemburg.com Sat Apr  6 00:43:35 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g35MhYs01499;
	Sat, 6 Apr 2002 00:43:34 +0200
Message-ID: <3CAE28E0.3AE4F5A4@lemburg.com>
Date: Sat, 06 Apr 2002 00:44:48 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Jim Vickroy <Jim.Vickroy@noaa.gov>
CC: "eGenix.com User Mailinglist" <egenix-users@lists.egenix.com>
Subject: Re: [egenix-users] ANN: eGenix.com mx BASE 2.1.0 (beta1) + EXPERIMENTAL 
 0.7.0 (beta1)
References: <3CAE1CBC.B597D946@lemburg.com> <3CAE2140.799E1412@noaa.gov>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Jim Vickroy wrote:
> 
> OK, I waited for a few minutes and now I can access the links.  Sorry about that, I
> guess I just tried too soon the first time.

The upload took a little longer than expected ;-)
 
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From John.N.1@bwc.state.oh.us Mon Apr 15 18:19:51 2002
Received: from jupiter.bwc.state.oh.us (neptune.BWC.state.OH.US [198.234.212.100])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g3FGJps31586
	for <egenix-users@lists.egenix.com>; Mon, 15 Apr 2002 18:19:51 +0200
Received: by jupiter.bwc.state.oh.us; id MAA17272; Mon, 15 Apr 2002 12:19:31 -0400 (EDT)
From: <John.N.1@bwc.state.oh.us>
Received: from unknown(165.223.131.35) by neptune.bwc.state.oh.us via smap (V5.0)
	id xmaa17254; Mon, 15 Apr 02 12:19:07 -0400
Received: from mswg6.bwc.state.oh.us (MSWG6.bwc.state.oh.us [165.223.130.24])
	by venus.bwc.state.oh.us (8.9.3/8.9.1) with ESMTP id MAA02953
	for <egenix-users@lists.egenix.com>; Mon, 15 Apr 2002 12:19:00 -0400 (EDT)
Received: by MSWG6 with Internet Mail Service (5.5.2653.19)
	id <H4YRBT8Y>; Mon, 15 Apr 2002 12:19:27 -0400
Message-ID: <6FDE0867413DD21182BF00A0C97251920EA8CEBD@MSWG4>
To: egenix-users@lists.egenix.com
Date: Mon, 15 Apr 2002 12:19:20 -0400
X-Mailer: Internet Mail Service (5.5.2653.19)
Subject: [egenix-users] BeeDict setting keys/comparison to shelve
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Does anyone have comments on using Bdict instead of a standard shelf or
bsddb ver3?

Also, on Win2k, for me to change a dictionary element w/Bdict, I need to
first delete the key and then set it's value.
Should that be the case?

When I run:

    d = mx.BeeBase.BeeDict.BeeDict('c:/tmp/test-BeeDict2')
    print 'original',d['Marc9']
    d['Marc9']='betty1'
    d.commit()
    print 'dict change\t',d.changed(),d['Marc9']

    del(d['Marc9'])
    d.commit()
    d['Marc9']='betty2'
    print 'del dict change\t',d.changed(),d['Marc9']
    d.close()


produces:

original Sveta
dict change     0 Sveta
del dict change 1 betty2


Thanks for any help,

john


From bzimmer@ziclix.com Tue Apr 16 06:12:20 2002
Received: from eris.host4u.net (eris.host4u.net [216.71.64.44])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g3G4CJs04594
	for <egenix-users@lists.egenix.com>; Tue, 16 Apr 2002 06:12:20 +0200
Received: from mountain (24-148-34-1.na.21stcentury.net [24.148.34.1])
	by eris.host4u.net (8.11.6/8.11.6) with ESMTP id g3G4B9502954;
	Mon, 15 Apr 2002 23:11:09 -0500
From: "brian zimmer" <bzimmer@ziclix.com>
To: <egenix-users@lists.egenix.com>
Cc: <mal@lemburg.com>
Date: Mon, 15 Apr 2002 11:10:43 -0500
Message-ID: <001f01c1e498$1b5064e0$7401a8c0@mountain>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2627
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Importance: Normal
Subject: [egenix-users] [ANN] zxDateTime 0.1
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

I am happy to announce the initial release of zxDateTime, a drop-in
replacement for mxDateTime written in Java, has been made available
today.  The next planned version will include optimizations as well 100%
API implementation (a couple methods are missing).  I am particularly
interested in getting feedback on the usefulness of this module as well
as the porting of other CPython extensions written in C.

The initial release can be found at:

http://sourceforge.net/projects/zxpy/

The API for mxDateTime can be found at:

http://www.egenix.com/files/python/mxDateTime.html

Installation directions are included in the distribution.  zxDateTime
has been tested with Jython 2.1(+), mxDateTime 2.0.3 and JDK1.3.1.
Other versions might work but I have not tested them as thoroughly/at
all.

thanks,

brian

ps: I'd like to thank Marc-Andre Lemburg for his assistance in porting
his work.
pss: I'd like to thank the primary Jython developers for making the
extending of Jython with Java so much fun :)


From mal@lemburg.com Tue Apr 16 12:29:49 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g3GATns06884;
	Tue, 16 Apr 2002 12:29:49 +0200
Message-ID: <3CBBFD80.F129BB4E@lemburg.com>
Date: Tue, 16 Apr 2002 12:31:28 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: brian zimmer <bzimmer@ziclix.com>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] [ANN] zxDateTime 0.1
References: <001f01c1e498$1b5064e0$7401a8c0@mountain>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

brian zimmer wrote:
> 
> I am happy to announce the initial release of zxDateTime, a drop-in
> replacement for mxDateTime written in Java, has been made available
> today.

Way cool !

> ps: I'd like to thank Marc-Andre Lemburg for his assistance in porting
> his work.

I'd like to thank you for taking the time to write this port
and for making it available to the general public.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From maxm@mxm.dk Mon Apr 29 10:55:56 2002
Received: from fe080.worldonline.dk (fe080.worldonline.dk [212.54.64.210])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id g3T8tqs01604
	for <egenix-users@lists.egenix.com>; Mon, 29 Apr 2002 10:55:56 +0200
Received: (qmail 6594 invoked by uid 0); 29 Apr 2002 08:55:51 -0000
Received: from 213.237.27.77.adsl.od.worldonline.dk (HELO mxm.dk) (213.237.27.77)
  by fe080.worldonline.dk with SMTP; 29 Apr 2002 08:55:51 -0000
Message-ID: <3CCD0AC5.1030904@mxm.dk>
Date: Mon, 29 Apr 2002 10:56:37 +0200
From: Max M <maxm@mxm.dk>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: egenix-users@lists.egenix.com
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] Error building egenix-mx-experimental-0.6.0
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

I am trying to build egenix-mx-experimental-0.6.0, on a Linux machine, 
on which I have only a normal user account. I have copied the .tgz 
source file to a directory and typed:

    /home/zope/Zope-2.5.1-linux2-x86/bin/python setup.py build

And then it stops at:

building 'mx.Number.mxNumber.mxNumber' extension
gcc -g -O2 -Wall -Wstrict-prototypes -fPIC -Imx/Number/mxNumber 
-I/home/zope/Zope-2.5.1-linux2-x86/include/python2.1 -c 
mx/Number/mxNumber/mxNumber.c -o 
build/temp.linux-i586-2.1/mx/Number/mxNumber/mxNumber/mxNumber.o
In file included from mx/Number/mxNumber/mxNumber.c:24:
mx/Number/mxNumber/mxNumber.h:33: gmp.h: No such file or directory
error: command 'gcc' failed with exit status 1

Am I doing it wrong or am I missing a file? I am not too acustomed to 
Linux so please bear with me.

The man page says that it's running gcc-2.95

regards Max M


From mal@lemburg.com Mon Apr 29 11:22:02 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g3T9Lrs01817;
	Mon, 29 Apr 2002 11:21:54 +0200
Message-ID: <3CCD1130.D10681DA@lemburg.com>
Date: Mon, 29 Apr 2002 11:24:00 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Max M <maxm@mxm.dk>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] Error building egenix-mx-experimental-0.6.0
References: <3CCD0AC5.1030904@mxm.dk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Max M wrote:
> 
> I am trying to build egenix-mx-experimental-0.6.0, on a Linux machine,
> on which I have only a normal user account. I have copied the .tgz
> source file to a directory and typed:
> 
>     /home/zope/Zope-2.5.1-linux2-x86/bin/python setup.py build

Please try the lastest beta I posted here a couple of weeks
ago (see the list archive for the URLs).

The mxNumber build is broken in 0.6.0, but should be fixed
in 0.7.0b1.
 
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/

From mal@lemburg.com Fri May 17 13:18:10 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g4HBI9t01158;
	Fri, 17 May 2002 13:18:09 +0200
Message-ID: <3CE4E700.4090802@lemburg.com>
Date: Fri, 17 May 2002 13:18:24 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "eGenix.com User Mailinglist" <egenix-users@lists.egenix.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] ANN: eGenix.com mx BASE 2.1.0 (beta2)
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Hi everybody,

here's a second round of beta releases for the 2.1.0 release
of egenix-mx-base:

http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py1.5_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py1.5_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.0_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.0_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.1_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.1_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.2_1.i386.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.2_1.src.rpm
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2.tar.gz
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2.zip

Beta 2 includes a few more updates amd bug fixes which were
found in the beta 1 cycle.

I think I forgot to mention last time that this release features
a brand new version of mxTextTools. It now comes with complete
Unicode support, a tag table compiler, support for string labels
(no more counting of tuple entries ;-) and a few other goodies
which will make future development much easier (most noteably
the addition of a context object).

Please try these out and report any bugs you find to this list.

PS: A new version of mxODBC is also in the making, but not quite
ready for prime-time yet. If you'd like to alpha test it, please
let me know and I'll send you a copy of mxODBC 2.1.0 for testing
purposes.

Thank you,
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/


From mal@lemburg.com Fri May 17 20:05:42 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g4HI5ft05289;
	Fri, 17 May 2002 20:05:42 +0200
Message-ID: <3CE54688.8060801@lemburg.com>
Date: Fri, 17 May 2002 20:06:00 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "M.-A. Lemburg" <mal@lemburg.com>
CC: "eGenix.com User Mailinglist" <egenix-users@lists.egenix.com>
Subject: Re: [egenix-users] ANN: eGenix.com mx BASE 2.1.0 (beta2)
References: <3CE4E700.4090802@lemburg.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

M.-A. Lemburg wrote:
> Hi everybody,
> 
> here's a second round of beta releases for the 2.1.0 release
> of egenix-mx-base:
> 
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py1.5_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py1.5_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.0_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.0_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.1_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.1_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.2_1.i386.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2-py2.2_1.src.rpm
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2.tar.gz
> http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2.zip

Here are the Windows installers:

http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2.win32-py1.5.exe
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2.win32-py2.0.exe
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2.win32-py2.1.exe
http://www.egenix.com/files/python/egenix-mx-base-2.1.0b2.win32-py2.2.exe

> Beta 2 includes a few more updates amd bug fixes which were
> found in the beta 1 cycle.
> 
> I think I forgot to mention last time that this release features
> a brand new version of mxTextTools. It now comes with complete
> Unicode support, a tag table compiler, support for string labels
> (no more counting of tuple entries ;-) and a few other goodies
> which will make future development much easier (most noteably
> the addition of a context object).
> 
> Please try these out and report any bugs you find to this list.
> 
> PS: A new version of mxODBC is also in the making, but not quite
> ready for prime-time yet. If you'd like to alpha test it, please
> let me know and I'll send you a copy of mxODBC 2.1.0 for testing
> purposes.


Thank you,
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/


From holtwick@spirito.de Fri May 24 11:25:09 2002
Received: from main.spirito.de (main.spirito.de [213.9.98.5])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id g4O9P9t19403
	for <egenix-users@lists.egenix.com>; Fri, 24 May 2002 11:25:09 +0200
Received: (qmail 28560 invoked from network); 24 May 2002 09:31:17 -0000
Received: from pd9e20798.dip.t-dialin.net (HELO spirito.de) (holtwick@217.226.7.152)
  by main.spirito.de with SMTP; 24 May 2002 09:31:17 -0000
Message-ID: <3CEE0756.3000206@spirito.de>
Date: Fri, 24 May 2002 11:26:46 +0200
From: Dirk Holtwick <holtwick@spirito.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.0rc2) Gecko/20020510
X-Accept-Language: de, en-us, en
MIME-Version: 1.0
To: egenix-users@lists.egenix.com
References: <Pine.LNX.4.44.0204021211110.2462-100000@zamboni.wc6.rackspace.com> <3CAB0173.589E3584@lemburg.com> <3CABFBC3.5040405@spirito.de> <3CAC30C7.3C581021@lemburg.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Subject: [egenix-users] week of year
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Hi,

I noticed some strange behaviour with values for "week of year" with mx.DateTime. I use something like this in my program:

	Date(year, month, w).strftime("%W")

e.g.: Date(2002,5,1).strftime("%W") gives 17 as result. In my german calendar it should be 18, so I add 1. But
Date(2001,5,1).strftime("%W") gives 18 and in my calendar its also 18 so adding +1 dosn't work here. what can I do? I use Date(2001,5,1).iso_week[1]
and Date(2002,5,1).iso_week[1] that works. But shouldn't it also work with the method described above?

bye, dirk


---
spirito GmbH
Dirk Holtwick
Lerchenstraße 8
D-47057 Duisburg
Tel. 0203 3187777
holtwick@spirito.de
http://www.spirito.de




From mal@lemburg.com Mon May 27 11:28:23 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g4R9SNt13993;
	Mon, 27 May 2002 11:28:23 +0200
Message-ID: <3CF1FC52.1020603@lemburg.com>
Date: Mon, 27 May 2002 11:28:50 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Dirk Holtwick <holtwick@spirito.de>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] week of year
References: <Pine.LNX.4.44.0204021211110.2462-100000@zamboni.wc6.rackspace.com> <3CAB0173.589E3584@lemburg.com> <3CABFBC3.5040405@spirito.de> <3CAC30C7.3C581021@lemburg.com> <3CEE0756.3000206@spirito.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Dirk Holtwick wrote:
> Hi,
> 
> I noticed some strange behaviour with values for "week of year" with 
> mx.DateTime. I use something like this in my program:
> 
>     Date(year, month, w).strftime("%W")
> 
> e.g.: Date(2002,5,1).strftime("%W") gives 17 as result. In my german 
> calendar it should be 18, so I add 1. But
> Date(2001,5,1).strftime("%W") gives 18 and in my calendar its also 18 so 
> adding +1 dosn't work here. what can I do? I use Date(2001,5,1).iso_week[1]
> and Date(2002,5,1).iso_week[1] that works. But shouldn't it also work 
> with the method described above?

The .strftime() method interfaces directly to the C lib's
strftime() API, so if that implementation uses a non-ISO
week number calculation, then you see different results.

GLIBC:
"""
        %W     The week number of the current year as a decimal number,  range
               00  to  53,  starting with the first Monday as the first day of
               week 01.
"""

This is clearly not ISO (which is much more complicated) !

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/


From krissepu@vip.fi Sun Jun  9 16:28:13 2002
Received: from populo.vip.fi (populo.vip.fi [213.173.130.25])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g59ESDU18781
	for <egenix-users@lists.egenix.com>; Sun, 9 Jun 2002 16:28:13 +0200
Received: from vip.fi (DynIP-132-175.Tre.vip.fi [213.173.132.175])
	by populo.vip.fi (8.8.8/8.8.5) with ESMTP id RAA06551
	for <egenix-users@lists.egenix.com>; Sun, 9 Jun 2002 17:28:12 +0300
Message-ID: <3D036557.7E7360F1@vip.fi>
Date: Sun, 09 Jun 2002 17:25:27 +0300
From: Pekka Niiranen <krissepu@vip.fi>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: egenix-users@lists.egenix.com
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] How to create nested search pattern witn mxTextTools ?
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

I am searching nested strings that are limited (and include)
with ?- and ! -signs.

I have created a nested EBNF-search pattern with Simpleparse-1.0 module
for mxTextTools. The problem is: I am interested only on matched strings

and cannot use flag (true or not ?) "AppendMatch" with SimpleParse.

What is the mxTextTool equivalent of the EBNF -notation below:

declaration := a,(match,a)*
match := '?',a,(match,a)*,'!'
<a> := [-_a-z0-9A-Z:. ]*        #Not returning this line

in case of a string "aa?BB?CC!DD!ee?FF!gg"
it should return:

[?BB?CC!DD!, ?CC!, ?FF!]

Any help appreciated,

    -pekka-



From mal@lemburg.com Sun Jun  9 16:56:46 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g59EujU18945;
	Sun, 9 Jun 2002 16:56:45 +0200
Message-ID: <3D036CDA.6000202@lemburg.com>
Date: Sun, 09 Jun 2002 16:57:30 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Pekka Niiranen <krissepu@vip.fi>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] How to create nested search pattern witn mxTextTools
 ?
References: <3D036557.7E7360F1@vip.fi>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Pekka Niiranen wrote:
> I am searching nested strings that are limited (and include)
> with ?- and ! -signs.
> 
> I have created a nested EBNF-search pattern with Simpleparse-1.0 module
> for mxTextTools. The problem is: I am interested only on matched strings
> 
> and cannot use flag (true or not ?) "AppendMatch" with SimpleParse.
> 
> What is the mxTextTool equivalent of the EBNF -notation below:
> 
> declaration := a,(match,a)*
> match := '?',a,(match,a)*,'!'
> <a> := [-_a-z0-9A-Z:. ]*        #Not returning this line
> 
> in case of a string "aa?BB?CC!DD!ee?FF!gg"
> it should return:
> 
> [?BB?CC!DD!, ?CC!, ?FF!]
> 
> Any help appreciated,

You should have a look at the SubTable command. It would allow
you to do this.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/
Meet us at EuroPython 2002:                 http://www.europython.org/


From mal@lemburg.com Sun Jun  9 18:02:10 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g59G2AU19331;
	Sun, 9 Jun 2002 18:02:10 +0200
Message-ID: <3D037C2F.1030804@lemburg.com>
Date: Sun, 09 Jun 2002 18:02:55 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: egenix-users@lists.egenix.com
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] mxODBC and FreeTDS to access MS SQL Server
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

I'm currently working on getting FreeTDS to work with mxODBC.
Unfortunately, I don't have a MS SQL Server instance to test
it against.

If anyone is willing to try the following setup, please let
me know and I'll send you the code:

* WinXX server running MS SQL Server
* Linux client having FreeTDS installed (version 0.53)

Thanks,
-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/
Meet us at EuroPython 2002:                 http://www.europython.org/


From mcfletch@rogers.com Sun Jun  9 21:21:53 2002
Received: from fep04-mail.bloor.is.net.cable.rogers.com (fep04-mail.bloor.is.net.cable.rogers.com [66.185.86.74])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g59JLrU20698
	for <egenix-users@lists.egenix.com>; Sun, 9 Jun 2002 21:21:53 +0200
Received: from rogers.com ([24.43.65.252])
          by fep04-mail.bloor.is.net.cable.rogers.com
          (InterMail vM.5.01.04.13 201-253-122-122-113-20020313) with ESMTP
          id <20020609192148.LAVP8996.fep04-mail.bloor.is.net.cable.rogers.com@rogers.com>;
          Sun, 9 Jun 2002 15:21:48 -0400
Message-ID: <3D03AACF.5060700@rogers.com>
Date: Sun, 09 Jun 2002 15:21:51 -0400
From: "Mike C. Fletcher" <mcfletch@rogers.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc3) Gecko/20020523
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Pekka Niiranen <krissepu@vip.fi>
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] How to create nested search pattern witn mxTextTools
 ?
References: <3D036557.7E7360F1@vip.fi>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Authentication-Info: Submitted using SMTP AUTH PLAIN at fep04-mail.bloor.is.net.cable.rogers.com from [24.43.65.252] using ID <mcfletch@rogers.com> at Sun, 9 Jun 2002 15:21:48 -0400
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

Pekka, are you sure you're not optimising this app too early?  I mean, 
you're only dealing with 2MB files.  The simple loop over the results 
table isn't likely to be a time problem compared to your original 
solution with line-by-line regex runs.  If you code the whole grammar as 
an EBNF so you can process the whole file in a single call to 
TextTools.tag, you're not likely going to be able to detect the time 
required to do the parsing, and the looping approach to getting the 
results from the tagging results is pretty fast for must uses.

As for the mxTextTool equivalent of the EBNF:

mxDecl = []
mxDecl.extend(
[
     (
         (None, 207, ((None, 204, (mxDecl, 2)),
                      (None, 207, (('match', 204, (mxDecl, 1)),
                                   (None, 204, (mxDecl, 2))), 1, 0))),),
     (
         (None, 207, (
             (None, 21, '?'),
             (None, 204,(mxDecl, 2)),
             (None, 207, (('match', 204, (mxDecl, 1)),
                          (None, 204, (mxDecl, 2))),1, 0),
             (None, 21, '!'))),),
     (
         (None, 207, (
             (None, 11, 
'-_abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ:. ', 
1),)),)
]

You can find it in the generator's tupleset attribute:

	table = generator.buildParser(
		declaration
	).tupleset

I've never felt the need to add AppendMatch, but the code is available 
if someone wants to add the syntax to the EBNF grammar and the 
objectgenerator code.

Enjoy,
Mike

Pekka Niiranen wrote:
> I am searching nested strings that are limited (and include)
> with ?- and ! -signs.
> 
> I have created a nested EBNF-search pattern with Simpleparse-1.0 module
> for mxTextTools. The problem is: I am interested only on matched strings
> 
> and cannot use flag (true or not ?) "AppendMatch" with SimpleParse.
> 
> What is the mxTextTool equivalent of the EBNF -notation below:
> 
> declaration := a,(match,a)*
> match := '?',a,(match,a)*,'!'
> <a> := [-_a-z0-9A-Z:. ]*        #Not returning this line
> 
> in case of a string "aa?BB?CC!DD!ee?FF!gg"
> it should return:
> 
> [?BB?CC!DD!, ?CC!, ?FF!]
> 
> Any help appreciated,
> 
>     -pekka-
> 
> 
> 
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> http://lists.egenix.com/mailman/listinfo/egenix-users
> 


-- 
_______________________________________
   Mike C. Fletcher
   http://members.rogers.com/mcfletch/



From krissepu@vip.fi Sun Jun  9 22:46:39 2002
Received: from populo.vip.fi (populo.vip.fi [213.173.130.25])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g59KkcU21220
	for <egenix-users@lists.egenix.com>; Sun, 9 Jun 2002 22:46:39 +0200
Received: from vip.fi (DynIP-132-158.Tre.vip.fi [213.173.132.158])
	by populo.vip.fi (8.8.8/8.8.5) with ESMTP id XAA22272
	for <egenix-users@lists.egenix.com>; Sun, 9 Jun 2002 23:46:35 +0300
Message-ID: <3D03BE07.549505AC@vip.fi>
Date: Sun, 09 Jun 2002 23:43:51 +0300
From: Pekka Niiranen <krissepu@vip.fi>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
CC: egenix-users@lists.egenix.com
References: <3D036557.7E7360F1@vip.fi> <3D03AACF.5060700@rogers.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [egenix-users] More questions and PEPs: How to create nested search pattern with
 mxTextTools?
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

I tried previously various approaches, but two problems remain:

1)    Re.findall() returns also empty matches, which I have to clean.
2)    I am looping thru several files and displaying results as dictionary:
        ("filename", [list of parameters in this file]) so when later
replacing
       parameters I only access those parameter that exist in a file.
       This should speed up replacements compared to a case where
       I run single huge merged list (like a sed -file ) of all
(parameter,replacement) -pairs
       to all files in one go. (i.e searching parameters that do not necessary

       exist in current processed file)

The current bottleneck is the building of [list of parameters in this file]
which leads to the following "PEPs":

a)    Parameter to re.findall() to allow only non-empty matches in search
result.
b)    Option to mxTextTools to return only unique matches from processed text
       as list of strings.

True, I can get rid of looping thru single lines, but then I have to take
account the contents of the previous line in EBNF as we discussed before.
I will try that in future too.

In your post below, I only have to replace the integer numbers as mxTextTool's
command
names and then add manually "+AppendMatch" -parameter to certain commands,
right ?

-pekka-

"Mike C. Fletcher" wrote:

> Pekka, are you sure you're not optimising this app too early?  I mean,
> you're only dealing with 2MB files.  The simple loop over the results
> table isn't likely to be a time problem compared to your original
> solution with line-by-line regex runs.  If you code the whole grammar as
> an EBNF so you can process the whole file in a single call to
> TextTools.tag, you're not likely going to be able to detect the time
> required to do the parsing, and the looping approach to getting the
> results from the tagging results is pretty fast for must uses.
>
> As for the mxTextTool equivalent of the EBNF:
>
> mxDecl = []
> mxDecl.extend(
> [
>      (
>          (None, 207, ((None, 204, (mxDecl, 2)),
>                       (None, 207, (('match', 204, (mxDecl, 1)),
>                                    (None, 204, (mxDecl, 2))), 1, 0))),),
>      (
>          (None, 207, (
>              (None, 21, '?'),
>              (None, 204,(mxDecl, 2)),
>              (None, 207, (('match', 204, (mxDecl, 1)),
>                           (None, 204, (mxDecl, 2))),1, 0),
>              (None, 21, '!'))),),
>      (
>          (None, 207, (
>              (None, 11,
> '-_abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ:. ',
> 1),)),)
> ]
>
> You can find it in the generator's tupleset attribute:
>
>         table = generator.buildParser(
>                 declaration
>         ).tupleset
>
> I've never felt the need to add AppendMatch, but the code is available
> if someone wants to add the syntax to the EBNF grammar and the
> objectgenerator code.
>
> Enjoy,
> Mike
>
> Pekka Niiranen wrote:
> > I am searching nested strings that are limited (and include)
> > with ?- and ! -signs.
> >
> > I have created a nested EBNF-search pattern with Simpleparse-1.0 module
> > for mxTextTools. The problem is: I am interested only on matched strings
> >
> > and cannot use flag (true or not ?) "AppendMatch" with SimpleParse.
> >
> > What is the mxTextTool equivalent of the EBNF -notation below:
> >
> > declaration := a,(match,a)*
> > match := '?',a,(match,a)*,'!'
> > <a> := [-_a-z0-9A-Z:. ]*        #Not returning this line
> >
> > in case of a string "aa?BB?CC!DD!ee?FF!gg"
> > it should return:
> >
> > [?BB?CC!DD!, ?CC!, ?FF!]
> >
> > Any help appreciated,
> >
> >     -pekka-
> >
> >
> >
> > _______________________________________________________________________
> > eGenix.com User Mailing List                     http://www.egenix.com/
> > http://lists.egenix.com/mailman/listinfo/egenix-users
> >
>
> --
> _______________________________________
>    Mike C. Fletcher
>    http://members.rogers.com/mcfletch/


From krissepu@vip.fi Sun Jun  9 22:53:58 2002
Received: from populo.vip.fi (populo.vip.fi [213.173.130.25])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g59KrvU21261
	for <egenix-users@lists.egenix.com>; Sun, 9 Jun 2002 22:53:57 +0200
Received: from vip.fi (DynIP-132-158.Tre.vip.fi [213.173.132.158])
	by populo.vip.fi (8.8.8/8.8.5) with ESMTP id XAA22548
	for <egenix-users@lists.egenix.com>; Sun, 9 Jun 2002 23:53:56 +0300
Message-ID: <3D03BFC0.886D1ECC@vip.fi>
Date: Sun, 09 Jun 2002 23:51:12 +0300
From: Pekka Niiranen <krissepu@vip.fi>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
CC: egenix-users@lists.egenix.com
Subject: Re: [egenix-users] How to create nested search pattern with mxTextTools?
References: <3D036557.7E7360F1@vip.fi> <3D036CDA.6000202@lemburg.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: egenix-users-admin@lists.egenix.com
Errors-To: egenix-users-admin@lists.egenix.com
X-BeenThere: egenix-users@lists.egenix.com
X-Mailman-Version: 2.0
Precedence: bulk
List-Help: <mailto:egenix-users-request@lists.egenix.com?subject=help>
List-Post: <mailto:egenix-users@lists.egenix.com>
List-Subscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=subscribe>
List-Id: eGenix.com User Mailinglist <egenix-users.lists.egenix.com>
List-Unsubscribe: <http://lists.egenix.com/mailman/listinfo/egenix-users>,
	<mailto:egenix-users-request@lists.egenix.com?subject=unsubscribe>
List-Archive: <http://lists.egenix.com/mailman-archives/egenix-users/>

M-A, Correct me if I am wrong, but does that mean:
I can reuse the parser returned by Simpleparse as subtable
and use "+AppendMatch" in that new merged table ?

The SimpleParse does not support all the commands of mxTextTool.

"M.-A. Lemburg" wrote:

> Pekka Niiranen wrote:
> > I am searching nested strings that are limited (and include)
> > with ?- and ! -signs.
> >
> > I have created a nested EBNF-search pattern with Simpleparse-1.0 module
> > for mxTextTools. The problem is: I am interested only on matched strings
> >
> > and cannot use flag (true or not ?) "AppendMatch" with SimpleParse.
> >
> > What is the mxTextTool equivalent of the EBNF -notation below:
> >
> > declaration := a,(match,a)*
> > match := '?',a,(match,a)*,'!'
> > <a> := [-_a-z0-9A-Z:. ]*        #Not returning this line
> >
> > in case of a string "aa?BB?CC!DD!ee?FF!gg"
> > it should return:
> >
> > [?BB?CC!DD!, ?CC!, ?FF!]
> >
> > Any help appreciated,
>
> You should have a look at the SubTable command. It would allow
> you to do this.
>
> --
> Marc-Andre Lemburg
> CEO eGenix.com Software GmbH
> ______________________________________________________________________
> Company & Consulting:                           http://www.egenix.com/
> Python Software:                   http://www.egenix.com/files/python/
> Meet us at EuroPython 2002:                 http://www.europython.org/
>
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> http://lists.egenix.com/mailman/listinfo/egenix-users


From mal@lemburg.com Mon Jun 10 13:26:56 2002
Received: from lemburg.com (www.egenix.com [217.115.138.139])
	by www.egenix.com (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with ESMTP id g5ABQuU27531;
	Mon, 10 Jun 2002 13:26:56 +0200
Message-ID: <3D048D2D.5070708@lemburg.com>
Date: Mon, 10 Jun 2002 13:27:41 +0200
From: "M.-A. Lemburg" <mal@lemburg.com>
Organization: eGenix.com Software GmbH
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510
X-Accept