Re: Cannot connect to IMAP server in Python 3.2

2012-04-05 Thread Damien Wyart
* Steven D'Aprano  in comp.lang.python:
> IMAP4_SSL is documented as existing in Python 3. And when I run Python 
> 3.2 on a Centos machine, instead of Debian, it includes IMAP4_SSL which 
> works fine.
> So there's something screwy going on here. Why does my Python 3.2 on 
> Debian not include IMAP4_SSL, but Python 2.6 does?

Could you try "import ssl" on your Debian machine and see if some errors
are reported? Some ssl libs used by ssl.py might not be installed.

-- 
DW
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: parsing IMAP responses?

2005-02-14 Thread Damien Wyart
* Grant Edwards <[EMAIL PROTECTED]> in comp.lang.python:
> Is there a library somewhere that impliments the IMAP protocol syntax?

Maybe the "core" part of getmail could be reused, it seems cleanly
written.
http://www.qcc.ca/~charlesc/software/getmail-4/

-- 
DW
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: DIY Spam Filter in Python

2005-04-04 Thread Damien Wyart
* [EMAIL PROTECTED] (Peter Ballard) in comp.lang.python:
> Source code, and a bit of documentation, is at:
> http://members.ozemail.com.au/~pballard/diyspamfilter.html

BTW, 2 of the 3 files are links, so missing from the tar archive...

-- 
DW
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Will Python 3.x ever become the actual standard?

2013-10-24 Thread Damien Wyart
> I am starting to have doubts as to whether Python 3.x will ever be
> actually adopted by the Python community at large as their standard.
> Years have passed, and a LARGE number of Python programmers has not
> even bothered learning version 3.x. Why am I bothered by this? Because
> of lot of good libraries are still only for version 2.x, and there is
> no sign of their being updated for v3.x. I get the impression as if
> 3.x, despite being better and more advanced than 2.x from the
> technical point of view, is a bit of a letdown in terms of adoption.

Some Linux distributions will certainly switch to Python 3 by default,
sooner or later. Fedora has decided to do so for their 22 release:
http://lwn.net/Articles/571528/

-- 
DW
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automate deployment of Python application from multiple VCS repositories

2015-04-08 Thread Damien Wyart
* Ben Finney  in comp.lang.python:
> What tools are available to automate deployment of a Python
> application comprising many discrete modules, spread across different
> code bases in different VCS repositories?

Fabric might help but is more "low-level" than what you seem to look
for.
http://docs.fabfile.org/en/latest/tutorial.html

-- 
DW
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automate deployment of Python application from multiple VCS repositories

2015-04-08 Thread Damien Wyart
> Fabric might help but is more "low-level" than what you seem to look
> for.
> http://docs.fabfile.org/en/latest/tutorial.html

Elsewhere in the spectrum is Saltstack, but application deployment
usecases are not that well documented.
https://groups.google.com/forum/#!msg/salt-users/w9hxKpXVL04/5NIHE9aYWscJ

-- 
DW
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to find out which named regular expression group corresponds to which positional regex group

2015-04-08 Thread Damien Wyart
* Mattias Ugelvik  in comp.lang.python:
> I'm making a string manipulation tool in which I need to know this
> correlation.
> Take this example: re.match('(?Pa?)(?Pb?)', '')
> I need to know that 'first' is group #1, and 'second' is group #2.
> I need this to resolve certain ambiguities.

Building a mapping between the results of groups and groupdict on the
match object should be quite straightforward.

-- 
DW
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Sudoku

2013-03-27 Thread Damien Wyart
* Eric Parry  in comp.lang.python:
> I downloaded the following program from somewhere using a link from
> Wikipedia and inserted the “most difficult Sudoku puzzle ever” string
> into it and ran it. It worked fine and solved the puzzle in about
> 4 seconds. However I cannot understand how it works. It seems to go
> backwards and forwards at random. Can anyone explain how it works in
> simple terms?

You might also be interested in the following:

http://norvig.com/sudoku.html
http://norvig.com/sudopy.shtml

-- 
DW
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: One-step multiples list generation?

2006-01-03 Thread Damien Wyart
* Efrat Regev <[EMAIL PROTECTED]> in comp.lang.python:
> Suppose I have some non-numerical Foo and would like to create a list
> of 20 Foo-s. Is there a one-step method (not a loop) of doing so?

Maybe :

[ Foo ] * 20

or, more verbose,

[ Foo for _ in range(20) ]

?

-- 
DW
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: One-step multiples list generation?

2006-01-03 Thread Damien Wyart
Thanks for these important and useful additions, they are very welcome !

In writing my answer I had immutables in mind, but mutables are a bit
more dangerous, here...

-- 
DW
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-17 Thread Damien Wyart
* Carl Banks <[EMAIL PROTECTED]> in comp.lang.python:
> The python-mode.el on Subversion (python-mode's Subversion on source
> forge, not the ancient version of python-mode in the Python
> repository) has a fix for this issue. It doesn't look like there's any
> way to browse the subversion any more, though.

The viewvc interface is still there:
http://svn.sourceforge.net/viewvc/python-mode/trunk/python-mode/

-- 
DW
--
http://mail.python.org/mailman/listinfo/python-list


Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-17 Thread Damien Wyart
* Carl Banks <[EMAIL PROTECTED]> in comp.lang.python:
> The python-mode.el on Subversion (python-mode's Subversion on source
> forge, not the ancient version of python-mode in the Python
> repository) has a fix for this issue.

Btw, I have not found a reference to this fix in the subversion history.
Are you sure it has been applied? I wonder if this patch is not only in
the Patch tracker.

-- 
DW
--
http://mail.python.org/mailman/listinfo/python-list


Re: Book recommendation? For getting up to date

2025-02-19 Thread Damien Wyart via Python-list
* Jan Erik Moström  in comp.lang.python:
> I'm looking for a book that would teach me the lastest and greatest
> parts of Python, does anyone have any recommendations?

Wider than that, but could still fit the bill: Fluent Python
https://www.oreilly.com/library/view/fluent-python-2nd/9781492056348/

-- 
DW
-- 
https://mail.python.org/mailman/listinfo/python-list