Re: Oddity with large dictionary (several million entries)

2010-04-27 Thread Lothar Werzinger
Peter Otten wrote: > Lothar Werzinger wrote: >> Can anyone explain this oddity? Any insight is highly appreciated. > > When you are creating objects like there is no tomorrow Python's cyclic > garbage collections often takes a significant amount of time. The first >

Oddity with large dictionary (several million entries)

2010-04-27 Thread Lothar Werzinger
/s) len(map) 100 Inserting 100 keys lasted 0:02:23 (6957 1/s) len(map) 100 total 300 Thanks, Lothar ,[ /home/lothar/tmp/dicttest.py ] | #!/usr/bin/python | # -*- coding: utf-8 -*- | | import datetime | import optparse | import sys | import time | | | | | def fillDict(ma

Re: Python as CGI on IIS and Windows 2003 Server

2005-06-10 Thread lothar . sch
esses or paths in file systems to root of IIS or to pythonscripts below IIS' root? Unfortunately I couldn't find a way to solve the problem. regards Lothar -- http://mail.python.org/mailman/listinfo/python-list

Python as CGI on IIS and Windows 2003 Server

2005-06-09 Thread lothar . sch
t the IIS execute python scrits as cgi. Http Error code is 404 (but i'm sure that the file exists in the requested path). Is there any difference for python as CGI on IIS between Windows XP prof. and Windows 2003 Server? Thanks Lothar -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't compile with --enable-shared on MacOSX

2005-04-18 Thread Lothar Scholz
Maarten Sneep <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On Mac OS X the shared library functionality is obtained through > frameworks. It may detect this by default, but I'm not sure about Not good. I don't want frameworks. I must embedd python into my application. Sett

Can't compile with --enable-shared on MacOSX

2005-04-18 Thread Lothar Scholz
Help, i tried to generate a dynamic library from the official Python-2.4.0.tgz on MacOSX 10.3 but when i do the ./configure --enable-shared ; make ; sudo make install or ./configure --enable-shared=yes ; make ; sudo make install It links statically. It's also strange that i can't find a libp

Re: re module non-greedy matches broken

2005-04-06 Thread lothar
well done. i had not noticed the lookahead operators. "André Malo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * lothar wrote: > -- http://mail.python.org/mailman/listinfo/python-list

Re: re module non-greedy matches broken

2005-04-05 Thread lothar
Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "lothar" wrote: > > > with respect to the documentation, the module is broken. > > nope. > > > the module does not necessarily deliver a "minimal length" match for a > &g

Re: re module non-greedy matches broken

2005-04-05 Thread lothar
give an re to find every innermost "table" element: innertabdoc = """ n y z """ give an re to find every "pre" element directly followed by an "a" element: preadoc = """ a r n l y r f g z m b u c v u """ "John Ridley" <[EMAIL

Re: re module non-greedy matches broken

2005-04-05 Thread lothar
can not be done. "André Malo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * "lothar" <[EMAIL PROTECTED]> wrote: > > > no - in the non-greedy regex > > <1st-pat>*? > > > > <1st-pat>, and are arbi

Re: re module non-greedy matches broken

2005-04-04 Thread lothar
no - in the non-greedy regex <1st-pat>*? <1st-pat>, and are arbitrarily complex patterns. with character classes and negative character classes you do not need non-greediness anyway. "John Ridley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >

Re: re module non-greedy matches broken

2005-04-04 Thread lothar
with respect to the documentation, the module is broken. the module does not necessarily deliver a "minimal length" match for a non-greedy pattern. "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "lothar" wrote: >

Re: re module non-greedy matches broken

2005-04-04 Thread lothar
an? "André Malo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * "lothar" <[EMAIL PROTECTED]> wrote: > > > this response is nothing but a description of the behavior i reported. > > Then you have not read my response carefully enou

Re: re module non-greedy matches broken

2005-04-03 Thread lothar
non-greedy (minimal length) match that was not always non-greedy (minimal length)? "André Malo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] * lothar wrote: > re: > 4.2.1 Regular Expression Syntax > http://docs.python.org/lib/re-syntax.html > > *?,

re module non-greedy matches broken

2005-04-03 Thread lothar
re: 4.2.1 Regular Expression Syntax http://docs.python.org/lib/re-syntax.html *?, +?, ?? Adding "?" after the qualifier makes it perform the match in non-greedy or minimal fashion; as few characters as possible will be matched. the regular expression module fails to perform non-greedy matches