Anyone have any experience with this, ideally using Python 3?
I'd like to sync my Thunderbird contacts with various things including
my mobile phone. Of course, I want to do it with Python! I've seen some
stuff around, eg. an XPI that provides Python bindings to the Mozilla
XPCOM APIs (through
On 9/11/2010 5:54 AM, Lawrence D'Oliveiro wrote:
In message, John Bond
wrote:
I once got asked to write a list things that I'd make different in the
technology world if I could, to make it better for everyone. Number 3
was "everywhere you now see Javascript or PHP, you'
On 9/11/2010 12:18 AM, Jorge Biquez wrote:
Hello all.
Newbie question. Sorry.
Can you mention applications/systems/solutions made with Python that
are well known and used by public in general? ANd that maybe we do not
know they are done with Python?
...
Jorge Biquez
Keep in mind that Pyt
On 6/11/2010 2:16 AM, MRAB wrote:
On 06/11/2010 01:25, Paul Hemans wrote:
I need to extract the quoted text from :
_("get this")
The following works:
re.compile( "_\(['\"]([^'\"]+)['\"]\)" )
However, I don't want to match if there is A-Z or a-z or 0-9 or _
immediately preceding the "_" so I hav
On 3/11/2010 7:16 PM, Grant Edwards wrote:
The OP could have figured all this out by himself by merely looking at
the headers for a sampling of articles.
Heck, with about 50 lines of Python, one could probably produced a
fairly comprehensive statistical report on access methods and clients
used
On 3/11/2010 3:30 PM, T.J. Simmons wrote:
Hi all, got a question regarding serializing classes that I've
defined. I have some classes like
class Foo:
def __init__(self, x, y):
self.x = x, self.y = y
then a class that can contain multiple Foos, such as:
class Bar:
def __ini
On 3/11/2010 3:38 PM, D'Arcy J.M. Cain wrote:
On Wed, 3 Nov 2010 08:02:29 + (UTC)
John Bond wrote:
Hope this isn't too O/T - I was just wondering how people read/send to this
It is completely off topic. What you need to do is research your own
email client to see how to filt
On 3/11/2010 11:17 AM, Steven D'Aprano wrote:
On Wed, 03 Nov 2010 08:02:29 +0000, John Bond wrote:
Hope this isn't too O/T - I was just wondering how people read/send to
this mailing list, eg. normal email client, gmane, some other software
or online service?
Usenet via
Hope this isn't too O/T - I was just wondering how people read/send to this
mailing list, eg. normal email client, gmane, some other software or online
service?
My normal inbox is getting unmanageable, and I think I need to find a new way
of following this and other lists.
Thanks for any sugge
Hope this isn't too O/T - I was just wondering how people read/send to
this mailing list, eg. normal email client, gmane, some other software
or online service?
My normal inbox is getting unmanageable, and I think I need to find a
new way of following this and other lists.
Thanks for any sug
On 3/11/2010 4:23 AM, Yingjie Lan wrote:
--- On Wed, 11/3/10, MRAB wrote:
From: MRAB
Subject: Re: Must be a bug in the re module [was: Why this result with the re
module]
To: python-list@python.org
Date: Wednesday, November 3, 2010, 8:02 AM
On 03/11/2010 03:42, Yingjie Lan
wrote:
Therefore th
OK, I've got that, and I have no problem with the capturing part.
My real problem is with the number of total matches.
*I think it should be 4 matches in total but findall
gives 6 matches*, for the new regex '((.a.)*)*'.
I'd love to know what you think about this.
Many thanks!
Yingjie
We'v
On 3/11/2010 4:02 AM, MRAB wrote:
On 03/11/2010 03:42, Yingjie Lan wrote:
Matches an empty string, returns ''
The result is therefore ['Mar', '', '', 'lam', '', '']
Thanks, now I see it through with clarity.
Both you and JB are right about this case.
However, what if the regex is ((.a.)*)* ?
On 3/11/2010 3:55 AM, John Bond wrote:
Could you please reconsider how would you
work with this new one and see if my steps
are correct? If you agree with my 7-step
execution for the new regex, then:
We finally found a real bug for re.findall:
re.findall('((.a.)*)*', '
Could you please reconsider how would you
work with this new one and see if my steps
are correct? If you agree with my 7-step
execution for the new regex, then:
We finally found a real bug for re.findall:
re.findall('((.a.)*)*', 'Mary has a lamb')
[('', 'Mar'), ('', ''), ('', ''), ('', 'lam'
My 2c:
I use the ActiveState distro, and it's winhelp doco. It's generally ok
and some things, like Dive Into Python, I've found excellent.
But I do quite regularly find myself cursing at the vagueness of the
index, and some of the content seems to require that you know it before
you read i
On 2/11/2010 12:19 PM, Yingjie Lan wrote:
From: John Bond
Subject: Re: Why this result with the re module
Firstly, thanks a lot for your patient explanation.
this time I have understood all your points perfectly.
Secondly, I'd like to clarify some of my points, which
did not get th
On 2/11/2010 8:53 AM, Yingjie Lan wrote:
BUT, but.
1. I expected findall to find matches of the whole
regex '(.a.)+', not just the subgroup (.a.) from
re.findall('(.a.)+', 'Mary has a lamb')
Thus it is probably a misunderstanding/bug??
Again, as soon as you put a capturing group in your exp
On 2/11/2010 7:00 AM, Yingjie Lan wrote:
re.findall('(.a.)*',' ') #two spaces
['', '', '']
I must need more details of the matching algorithm to explain this?
Regards,
Yingjie
Sorry - I hit enter prematurely on my last message.
To take the above as an example (all your examples boil dow
On 2/11/2010 4:31 AM, Yingjie Lan wrote:
Hi, I am rather confused by these results below.
I am not a re expert at all. the module version
of re is 2.2.1 with python 3.1.2
import re
re.findall('.a.', 'Mary has a lamb') #OK
['Mar', 'has', ' a ', 'lam']
re.findall('(.a.)*', 'Mary has a lamb') #?
20 matches
Mail list logo