Re: A parser for S.W.I.F.T. MT940 Files (for banking transactions)

2009-03-10 Thread dwahli
On 9 mar, 14:59, Saki wrote: > Hello, > > I need an MT940 file parses. It can be either a pure python library or > a binding/wrapper, no matter. Almost all european banks provide > transactions extract in MT940 format. There are parsers around, but > none of them are for python. Any help is greatl

Re: Bug in re.findall?

2008-07-04 Thread dwahli
On Jul 4, 12:33 pm, Marcin Krol <[EMAIL PROTECTED]> wrote: > Hello everyone, > > Is there a bug in re.findall in Python 2.4? See: > > subnetlist="192.168.100.0 , 192.168.101.0" > ipre=re.compile("([0-9]{1,3}\.){3}[0-9]{1,3}") > >  >>> ipre.findall(subnetlist) > > ['100.', '101.'] > > But: > > a=ipr

Re: Pyparsing performance boost using Python 2.6b1

2008-06-20 Thread dwahli
On Jun 19, 12:40 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > I just ran my pyparsing unit tests with the latest Python 2.6b1 > (labeled internally as Python 2.6a3 - ???), and the current 1.5.0 > version of pyparsing runs with no warnings or regressions. > > I was pleasantly surprised by the impro

Re: converting a text file to image

2008-06-20 Thread dwahli
On Jun 20, 9:15 am, jimgardener <[EMAIL PROTECTED]> wrote: > i am looking for python code to convert a textfile(.txt) to an > image(preferrably Tiff).I believe it involves some scanning  and > conversion using some font table and probably compression using > huffman encoding..is there an open sourc

Re: Do this as a list comprehension?

2008-06-06 Thread dwahli
On Jun 6, 8:44 am, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > > Of course, enumerate(iterable) is just a facade over zip(itertools.count(), > iterable) So you could write: gen = (x for x in itertools.izip(itertools.count(8), [0, 1, 1, 1, 1, 1, 1, 2, 2, 3, 3])) print list(gen) Using zip like you o

Re: cx_Oracle: Non-ASCII characters handling with different versions

2007-11-16 Thread dwahli
On Nov 14, 2:03 pm, Benjamin Hell <[EMAIL PROTECTED]> wrote: > It's solved: Because of a local full Oracle DB installation the > "working" box had the registry key > HKEY_LOCAL_SYSTEM\SOFTWARE\ORACLE\KEY_OraBD10g_home1\NLS_LANG set to > "AMERICAN_AMERICA.WE8MSWIN1252". A similar key was missing on