Re: [IronPython] differences in IronPython/CPython regular expressions?

2011-06-01 Thread Jeff Hardy
> Sure.  Names sensitive to capitalization; the rule I'm implementing says > names are either capitalized or upper-case. Ah, I see that now. I assumed the name lists were in lower case. > >> For the most part, CPython and IronPython regexes should be fairly >> compatible - IronPython takes the re

Re: [IronPython] differences in IronPython/CPython regular expressions?

2011-06-01 Thread George Silva
If youre on Windows, you can test the native c# behvaior with a software called Rad Software regular expression designer. Its very helpful. On Wed, Jun 1, 2011 at 8:44 PM, Bill Janssen wrote: > Jeff Hardy wrote: > > > On Wed, Jun 1, 2011 at 4:03 PM, Bill Janssen wrote: > > > I have a large RE

Re: [IronPython] differences in IronPython/CPython regular expressions?

2011-06-01 Thread Bill Janssen
Jeff Hardy wrote: > On Wed, Jun 1, 2011 at 4:03 PM, Bill Janssen wrote: > > I have a large RE (223613 chars) that works fine in CPython 2.6, but > > That's truly horrible, but I assume you have a good reason for it. Hi, Jeff. Yes, I think so. > > seems to produce an endless loop in IronPytho

Re: [IronPython] differences in IronPython/CPython regular expressions?

2011-06-01 Thread Jeff Hardy
On Wed, Jun 1, 2011 at 4:03 PM, Bill Janssen wrote: > I have a large RE (223613 chars) that works fine in CPython 2.6, but That's truly horrible, but I assume you have a good reason for it. > seems to produce an endless loop in IronPython (see below).  I'm using > Mono 2.10 (.NET 4.0.x) on Ubunt

[IronPython] differences in IronPython/CPython regular expressions?

2011-06-01 Thread Bill Janssen
I have a large RE (223613 chars) that works fine in CPython 2.6, but seems to produce an endless loop in IronPython (see below). I'm using Mono 2.10 (.NET 4.0.x) on Ubuntu, with IronPython 2.7. Anyone have pointers to the differences between them? Is System::Text::RegularExpressions in .NET conf

Re: [IronPython] memoryview

2011-06-01 Thread Jeff Hardy
On Wed, Jun 1, 2011 at 2:50 PM, Peter Schwalm wrote: > In the moment, I can only hope that no information is lost during the > implicit conversions of file i-o. That means I hope these conversion simply > add a 0-byte to every byte read in to make it unicode and only discards the > 0-byte when wri

Re: [IronPython] memoryview

2011-06-01 Thread Peter Schwalm
Hi Marcus, hi Jeff, thank you for the suggestions! I considered using the .net functions for i-o and byte arrays and decided not to. The reason: the module I am talking about is used in an environment of everyday programming, often in a quick and dirty manner. The data used are 1-byte charact

Re: [IronPython] Moving forward on 2.7.1

2011-06-01 Thread Dave Wald
On 5/31/2011 4:27 PM, Jeff Hardy wrote: Hi all, I think it's about time to get 2.7.1 shipped. I don't have a timeline in mind, but I'd like it out by the end of June. There's a few new modules and some bug fixes as well, but I'd like to see some more bugs fixed. If there's anything in 2.7.0 that'

Re: [IronPython] memoryview / passing string data to a C functionwithout copying

2011-06-01 Thread Jeff Hardy
On Tue, May 31, 2011 at 11:01 PM, Markus Schaber wrote: > Hi, Peter, > >> Von: users-boun...@lists.ironpython.com [mailto:users- > [...] >> >>      Does anyone know how to pass the contents of a string to a C > function >> without copying it? > > A non-pythonic suggestion: > > Maybe you could use