Re: Using system python vs. updated/current version

2013-08-01 Thread Ben Last
From: memilanuk memila...@gmail.com How much of a pain are virtualenvs when working from an IDE? That depends on the IDE. I use PyCharm, and it has support for setting up multiple Python virtualenvs, and associated different projects with different virtualenvs, as well as tracking the packages

grimace: a fluent regular expression generator in Python

2013-07-16 Thread Ben Last
Hi all I'd be interested in comments on a fluent regular expression generator I've been playing with (inspired by the frustrations of a friend of mine who's learning). The general use case is to be able to construct RE strings such as: r'^\(\d{3,3}\)-{1,1}\d{3,3}\-{1,1}\d{4,4}$' (intended to

Re: grimace: a fluent regular expression generator in Python

2013-07-17 Thread Ben Last
On 16 July 2013 20:48, python-list-requ...@python.org wrote: From: Anders J. Munch 2...@jmunch.dk Date: Tue, 16 Jul 2013 13:38:35 +0200 Ben Last wrote: north_american_number_re = (RE().start .literal('(').followed_by.**exactly(3).digits.then.**literal

Re: Python-list Digest, Vol 118, Issue 144

2013-07-17 Thread Ben Last
From: Gregory Ewing greg.ew...@canterbury.ac.nz To: python-list@python.org Is 'dash' the same as 'literal(-)'? Yes, it's a convenience method, like 'dot' and 'underscore'. The code I pasted is from the unit tests, where I use the different methods to push coverage up. Is there any