bsddb environment lock failure

2005-07-09 Thread Barry
up the build. I much appreciate any insight in how to fix this. Barry Here are some details: When trying to open (or create) a db, I get this error File "/opt/Python-2.4.1/Lib/bsddb/__init__.py", line 285, in hashopen e = _openDBEnv() File "/opt/Python-2.4.1/Lib/bs

Re: bsddb environment lock failure -- resolved

2005-07-10 Thread Barry
Upgrading db4 to db4-4.1.25-14.rpm seems to have take care of this. On 7/10/05, Barry <[EMAIL PROTECTED]> wrote: > I have python2.4.1 installed on two machines: > -- one is Fedora core 1, where the bsddb module works fine > -- one is Redhat ES 3.0, and I installed mysql 4

[no subject]

2005-08-09 Thread barry
The original message was received at Wed, 10 Aug 2005 09:14:22 +0300 from python.org [82.194.226.158] - The following addresses had permanent fatal errors - - Transcript of session follows - ... while talking to python.org.: >>> DATA <<< 400-aturner; -RMS-E-CRE, ACP file create

Re: summarize text

2006-05-29 Thread Barry
On 29 May 2006 07:52:33 -0700, gene tani <[EMAIL PROTECTED]> wrote: robin wrote:> hello list,>> does anyone know of a library which permits to summarise text? i've> been looking at nltk but haven't found anything yet. any help would beunclear what you're asking, maybe look at: http://www.cs.waikato

Logging output from python

2006-12-07 Thread Barry
Hi, guys Basiclly, it is automated testing system. There is a main python script that handles the testing campagin. This main script will call another script that will in turn runs a few hundered individual python scripts. Here is my problem. I want to log everything displayed in the screen afte

Re: Regular Expression problem

2006-07-16 Thread Barry
On 13 Jul 2006 23:12:05 -0700, Paul McGuire <[EMAIL PROTECTED]> wrote: Pyparsing is also good for recognizing basic HTML tags and theirattributes, regardless of the order of the attributes.-- PaultestText = """sldkjflsa;fajhere it would be 'mystylesheet.css'. I used the following regex to getthis v

Re: problem with regex

2006-07-28 Thread Barry
On 28 Jul 2006 05:45:05 -0700, abcd <[EMAIL PROTECTED]> wrote: > I have a regex: '[A-Za-z]:\\([^/:\*\?"<>\|])*' > > when I do, re.compile('[A-Za-z]:\\([^/:\*\?"<>\|])*') ...I get > > sre_constants.error: unbalanced parenthesis > > do i need to escape something else? i see that i have matching > pa

Standalone email package 3.0 final

2004-11-28 Thread Barry Warsaw
removed. * Lots and lots of fixes. Feel free to join the email-sig mailing list for further discussion. -Barry signature.asc Description: This is a digitally signed message part -- http://mail.python.org/mailman/listinfo/python-list

Re: are variables local only to try/except blocks?

2005-09-20 Thread Barry Searle
eException()     doMORELotsMoreStuff()      doLotsHere()     excp = 0 # always reset excp as last action except aParticularSetOfExceptions:     excp = 1 if excp:   should be fine     handleException() doLotsMoreStuff() Barry Searle,    [EMAIL PROTECTED],  905-413-4020  (TL:969-4020) Ba

Re: are variables local only to try/except blocks?

2005-09-20 Thread Barry Searle
eException()     doMORELotsMoreStuff()      doLotsHere()     excp = 0 # always reset excp as last action except aParticularSetOfExceptions:     excp = 1 if excp:   should be fine     handleException() doLotsMoreStuff() Barry Searle,    [EMAIL PROTECTED],  905-413-4020  (TL:969-4020) Ba

Re: symbolic links, aliases, cls clear

2006-04-12 Thread Barry Margolin
". /usr/share/term-sh/$TERM" or > something similar. I generated a lot of files a few years ago, > but I have never had any call for them, so I'd have to hunt for > them. So you've essentially reinvented the whole termcap/terminfo mechanism? -- Barry Margolin,

Re: what are the most frequently used functions?

2006-10-28 Thread Barry Margolin
t aren't functions will have low enough frequency that they won't impact the results. Perl would be harder, I think. For ordinary function calls you can look for a word followed by (, but built-in functions allow use without parentheses around the parameters. -- Barry Margolin, [EMA

win32con.client.constants error

2007-04-01 Thread Barry Newberger
False if not self.outlookFound: return [SNIP] # Outlook default folder constants msgFolderTypeConsts = {'Rcvd': constants.olFolderInbox, 'Sent': constants.olFolderSentMail} folderSet = [yr, mo, msgType] # Used to loop over folder tree. I am runni

RE: What is proper way to require a method to be overridden?

2007-01-05 Thread Carroll, Barry
insert(self,x): raise NotImplementedError, "set.insert" In this way the superclass's interface is well defined (the methods and their parameters are all listed, but if invoked before they are overwritten, they abort with a useful error message. Pretty slick, IMHO. Regards, B

File Closing Problem in 2.3 and 2.4, Not in 2.5

2007-01-05 Thread Carroll, Barry
ated bugs, but found no mention of this type of a bug. What I want to know is: * has anyone else encountered a problem like this, * how was the problem corrected, * can the fix be retro-fitted to 2.5 and 2.4? Thanks in advance for any information you can provide. Regards

RE: File Closing Problem in 2.3 and 2.4, Not in 2.5

2007-01-08 Thread Carroll, Barry
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of John Machin > Sent: Saturday, January 06, 2007 11:09 PM > To: python-list@python.org > Subject: Re: File Closing Problem in 2.3 and 2.4, Not in 2.5 > > Martin v. Löwis w

RE: File Closing Problem in 2.3 and 2.4, Not in 2.5

2007-01-08 Thread Carroll, Barry
John: <<> > > Hi Barry, > > Please always reply on-list if the communication is non-private -- and > meaningful :-) Right. I noticed I hadn't "replied-to-all", so I resent the post to the mailing list. Slip of the mouse, no disrespect intended to th

RE: File Closing Problem in 2.3 and 2.4, Not in 2.5 (Final report)

2007-01-09 Thread Carroll, Barry
ad programmer is convinced (I think) that we have a reference count problem somewhere, so perhaps he will persue it. If any more useful information comes up on this subject, I'll post it here. Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere ston

RE: File Closing Problem in 2.3 and 2.4, Not in 2.5 (Final report)

2007-01-09 Thread Carroll, Barry
Hi, Gabriel, > -Original Message- > From: Gabriel Genellina [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 09, 2007 4:06 PM > To: python-list@python.org > Subject: RE: File Closing Problem in 2.3 and 2.4, Not in 2.5 (Final > report) > > At Tuesday 9/1/2007 20:

OT: teleporters (Was: General Question About Python)

2007-01-16 Thread Carroll, Barry
quot; malfunction which caused the subject to turn inside out and then explode.(2) These experiments MUST be conducted under the most rigorous controls to prevent similar catastrophes. (Unless, you're using Perl programmers as test subjects, in which case it's okay. ;^) Humorously your

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
are many forums where people will be happy to debate this: physics, firefighting, metallurgy, geopolitics, etc. This forum is about the Python programming language. Let's keep it that way. Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed -- http://mail.python.org/mailman/listinfo/python-list

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
happy to debate this: physics, firefighting, metallurgy, geopolitics, etc. This forum is about the Python programming language. Let's keep it that way. Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals.

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
ake this discussion to a more appropriate forum. There are many forums where people will be happy to debate this: physics, firefighting, metallurgy, geopolitics, etc. This forum is about the Python programming language. Let's keep it that way. Regards, Barry [EMAIL PROTECTED] 5

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
here people will be happy to debate this: physics, firefighting, metallurgy, geopolitics, etc. This forum is about the Python programming language. Let's keep it that way. Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envision

RE: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Carroll, Barry
you to see if you had the IQ > to search for it. > Ladies and Gentlemen: PLEASE take this discussion to a more appropriate forum. There are many forums where people will be happy to debate this: physics, firefighting, metallurgy, geopolitics, etc. This forum is about the Python programmi

OT: Apology

2007-01-17 Thread Carroll, Barry
just hope the other posters will follow suit. Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL P

OT Annoying Habits (Was: when format strings attack)

2007-01-19 Thread Carroll, Barry
s. So, as far as I'm concerned, post your posts in whatever manner works for you. If it's in English, I'll figure it out. If not, well, there's always Babelfish. ;^) Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stone

RE: OT Annoying Habits (Was: when format strings attack)

2007-01-19 Thread Carroll, Barry
know which rules I'm choosing to break. ;^) Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed > -Original Message- > From: Aahz [mailto:[EMAIL PROTECTED] > Sent

RE: OT Annoying Habits (Was: when format strings attack)

2007-01-19 Thread Carroll, Barry
> -Original Message- > From: Aahz [mailto:[EMAIL PROTECTED] > Sent: Friday, January 19, 2007 3:29 PM > To: python-list@python.org > Subject: Re: OT Annoying Habits (Was: when format strings attack) > > In article <[EMAIL PROTECTED]>, > Carroll, B

RE: Overloading assignment operator

2007-01-23 Thread Carroll, Barry
OLL[Python]|7> a.result = 2*3 @BCARROLL[Python]|8> a.result <8> 6 @BCARROLL[Python]|9> a.result = 25.0 * 5.25 @BCARROLL[Python]|10> a.result <10> 131.25 @BCARROLL[Python]|11> >>>>>>>>>> HTH Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed -- http://mail.python.org/mailman/listinfo/python-list

RE: Overloading assignment operator

2007-01-25 Thread Carroll, Barry
> -Original Message- > From: Gabriel Genellina [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 23, 2007 9:24 PM > To: python-list@python.org > Subject: Re: Overloading assignment operator > > "Carroll, Barry" <[EMAIL PROTECTED]> escribió

RE: What is the dummy statement that do nothing in Python?

2007-01-31 Thread Carroll, Barry
there? > > Thanks! > > Greetings: Try 'pass': if a>b: pass else: dosomething() Regards, Barry [EMAIL PROTECTED] 541-302-1107 We who cut mere stones must always be envisioning cathedrals. -Quarry worker's creed -- http://mail.python.org/mailman/listinfo/python-list

RE: Sorting a list

2007-02-01 Thread Carroll, Barry
alling sort() on the list should just work. > > Amazing, it was that easy. :) Hello, John. Yeah. That's one of the things that drew me to Python: so many things you want to do are just so *easy* in Python. Regards, Barry [EMAIL PROTECTED] 541-302-1107 ___

__getattribute__ doesn't work on 'type' type for '__class__'

2006-06-20 Thread Barry Kelly
--- Yet when I try this with the 'type' type, it doesn't work: ---8<--- >>> x.__class__.__class__ >>> x.__class__.__getattribute__('__class__') Traceback (most recent call last): File "", line 1, in ? TypeError: descriptor '__get

Re: __getattribute__ doesn't work on 'type' type for '__class__'

2006-06-20 Thread Barry Kelly
Barry Kelly <[EMAIL PROTECTED]> wrote: > From "pydoc __getattribute__": > > ---8<--- > Help on method-wrapper object: > > __getattribute__ = class method-wrapper(object) > | Methods defined here: > | > | __call__(...) > | x.__call

Re: size of an array..

2006-07-01 Thread Barry Kelly
etermine the number of elements in "l", or the number of > iterations for the "for loop" prior to running it... > > the tutorials i've seen as of yet haven't mentioned this.. Have you tried len(object)? -- Barry -- http://barrkel.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python/libxml2dom questions

2006-07-01 Thread Barry Kelly
"bruce" <[EMAIL PROTECTED]> wrote: > also, how can i determine what methods are available for a libxml2dom > object? Have you tried dir(object)? It works great on the command-line reply-eval-print loop. -- Barry -- http://barrkel.blogspot.com/ -- http://mail.pytho

Re: [Mailman-Developers] Parsing and Rendering rfc2822

2006-07-05 Thread Barry Warsaw
be able to preserve the current u/i and link algorithm unless the new one is explicitly enabled. And if the archives are regenerated with a new u/i, we should ensure that the link urls will be much more persistent than they currently are, probably based on a guaranteed unique Mes

Re: [Mailman-Developers] Parsing and Rendering rfc8222

2006-07-05 Thread Barry Warsaw
eems to be the obvious choice; anything else I should > consider? Anyone know of good pylucene/web UI glue code out there? Just keep in mind that of course, Mailman is GPL so anything we bundle has to be GPL-compatible. - -Barry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (Dar

Re: [Mailman-Developers] Parsing and Rendering rfc8222

2006-07-05 Thread Barry Warsaw
e can to make sure that Richard's ht:dig solution is nearly trivial to integrate, but I'm not sure we should distribute it with Mailman. - -Barry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (Darwin) iQCVAwUBRKxMYHEjvBPtnXfVAQKQqgP/V82bojemSuFnLGr

Re: [Mailman-Developers] Parsing and Rendering rfc8222

2006-07-05 Thread Barry Warsaw
7;t read JWZ's article in a while, but IIRC, it lays out an algorithm that does about as good as you can do in these cases. BTW, my earlier post re: X-List-Message-ID isn't about threading, it's about message identification and trying to make that as robust as possible. - -Barr

Re: [Mailman-Developers] Parsing and Rendering rfc8222

2006-07-06 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jul 6, 2006, at 1:56 PM, Brad Knowles wrote: > Barry said: > >> We should certainly do everything we can to make sure that Richard's >> ht:dig solution is nearly trivial to integrate, but I'm not sure we >>