Python regular expressions just ain't PCRE

2007-05-04 Thread Wiseman
I'm kind of disappointed with the re regular expressions module. In particular, the lack of support for recursion ( (?R) or (?n) ) is a major drawback to me. There are so many great things that can be accomplished with regular expressions this way, such as validating a mathematical expression or pa

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 5:12 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > I believe the current Python re module was written to replace the Python > wrapping of pcre in order to support unicode. I don't know how PCRE was back then, but right now it supports UTF-8 Unicode patterns and strings, and Unicode cha

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 7:19 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, Wiseman wrote: > > Note: I know there are LALR parser generators/parsers for Python, but > > the very reason why re exists is to provide a much simpler, more &g

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 6:28 pm, [EMAIL PROTECTED] wrote: > I'm not sure what your skill level is, but I would suggest studying the > code, starting in on a patch for one or more of these features, and then > corresponding with the module's maintainers to improve your patch to the > point where it can be accept

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 10:06 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > -1 on this from me. In the past 10 years as a professional > programmer, I've used the wierd extended "regex" features maybe 5 > times total, whether it be in Perl or Python. In contrast, I've had > to work around the slowness o

Re: Python regular expressions just ain't PCRE

2007-05-05 Thread Wiseman
On May 5, 10:44 pm, John Machin <[EMAIL PROTECTED]> wrote: > "UTF-8 Unicode" is meaningless. Python has internal unicode string > objects, with comprehensive support for converting to/from str (8-bit) > string objects. The re module supports unicode patterns and strings. > PCRE "supports" patterns

Python Problem

2007-09-07 Thread Wiseman
Hi, The line: import enchant works perfectly OK when I call a Python progrma (sp.py) from IDLE (WInXP). When I try to run it ftom the command line (python sp.py) the response is: Traceback (most recent call last): File "sp.py", line 3, in import enchant ImportError: No module named enc

Re: Python Problem

2007-09-10 Thread Wiseman
Carsten. I want to thank you for your help. I could not check this until this morning. Now that I checked your answer - THANK YOU. I do have 2 installations of Python on my machine. Once I called Python with a full path - my program orked as expected. Meir -- http://mail.python.org/mailman/l

Re: Python Problem

2007-09-11 Thread Wiseman
Hi, OK - it works in WindowsXP. I installed "enchant" on my SuSE 10.0 (using YAST). The enchant Suse package looks like a general Linux package, not a Python specific. Running the program in Python I am getting the same error message from the line: "import enchant". ImportError: No module nam

Re: Python Problem

2007-09-12 Thread Wiseman
lackJack' Rintsch <[EMAIL PROTECTED]> wrote: >On Wed, 12 Sep 2007 09:09:02 +0200, A.T.Hofkamp wrote: > >> On 2007-09-11, Wiseman <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>> >>> OK - it works in WindowsXP. >>> I installed "

ssl error with the python mac binary

2014-11-10 Thread Paul Wiseman
Hey, I've been using the latest mac ppc/i386 binaries from python.org (https://www.python.org/ftp/python/2.7.8/python-2.7.8-macosx10.5.dmg). >From what I can tell this version is linked against a pretty old version of OpenSSL (OpenSSL 0.9.7l 28 Sep 2006) which doesn't seem to be able to handle new

Re: ssl error with the python mac binary

2014-11-12 Thread Paul Wiseman
On 10 November 2014 22:51, Ned Deily wrote: > In article > , > Paul Wiseman wrote: >> I've been using the latest mac ppc/i386 binaries from python.org >> (https://www.python.org/ftp/python/2.7.8/python-2.7.8-macosx10.5.dmg). >> From what I can tell this versio

Re: ssl error with the python mac binary

2014-11-13 Thread Paul Wiseman
On 12 November 2014 19:52, Ned Deily wrote: > In article > , > Paul Wiseman wrote: >> I'm currently using the installer with py2app to make a distributable >> app that targets 10.5+ (including ppc). To save having more than one >> build I use this for all dow

Re: ssl error with the python mac binary

2014-12-01 Thread Paul Wiseman
On 10 November 2014 at 22:51, Ned Deily wrote: > In article > , > Paul Wiseman wrote: > > I've been using the latest mac ppc/i386 binaries from python.org > > (https://www.python.org/ftp/python/2.7.8/python-2.7.8-macosx10.5.dmg). > > From what I can tell this ve

Re: ssl error with the python mac binary

2014-12-01 Thread Paul Wiseman
On 1 December 2014 at 22:59, Ned Deily wrote: > In article > , > Paul Wiseman wrote: > > I just gave 2.7.9rc1 a go and seems like it is still linked to the same > > version of openssl? > > Yes, it still is for rc1. Unfortunately, I was not able to get > everyth

Re: Simulate `bash` behaviour using Python and named pipes.

2013-08-05 Thread Paul Wiseman
On 5 August 2013 14:09, Luca Cerone wrote: > Hi everybody, > I am trying to understand how to use named pipes in python to launch > external processes (in a Linux environment). > > As an example I am trying to "imitate" the behaviour of the following sets > of commands is bash: > > > mkfifo named

Re: error with files

2014-08-18 Thread Paul Wiseman
The line should be: file1.write(file_data) you could write file.write(file1, file_data) but that would be an odd way to do it :) On 18 August 2014 10:41, ngangsia akumbo wrote: > error > > yems ~ # nano testfile1 > yems ~ # python testfile1 > Enter file name: g > write in data: g > Tracebac