Re: Should I move to Amsterdam?

2005-08-24 Thread Armin Steinhoff
Adriaan Renting wrote: > Well, I'm not sure if Amsterdam is nice, but the Netherlands is o.k., except > for the weather. > I'd like to descripbe it as 49 weeks of autumn, 1 week of spring, 1 week of > summer, 1 week of winter. > Currently my employer only has an opening for a Microwave Antenna de

Re: GIL release

2005-03-18 Thread Armin Steinhoff
Alastair Basden wrote: Hi, Does anyone know whether there is a way for a python thread to release the global interpreter lock, and let all other threads have a chance at running before re-acquiring it? Does the thread scheduling follow a round-robin method? The thread itself are scheduled by th

Re: Protecting Python source

2004-11-29 Thread Armin Steinhoff
Alan Sheehan wrote: Hi pythonistas, I am looking for methods of deploying applications with end users so that the python code is tamper proof. What are my options ? I understand I can supply .pyc or .pyo files but they can easily be reverse engineered I am told. Is it possible to load the scripts f

CTYPE 0.9.2 porting problems

2004-12-06 Thread Armin Steinhoff
Hi all, I ported ctypes 0.9.2 to QNX6.3 ... 99.9 % is working but only the unittest test_functions.py makes some problem. Here is the code: p = pointer(c_int(99)) result = f(p) self.failUnlessEqual(result.contents.value, 99) #---> works!! # We need to keep the poi

Re: Calling a C program from a Python Script

2004-12-09 Thread Armin Steinhoff
Brad Tilley wrote: Is it possible to write a file open, then read program in C and then call the C program from a Python script like this: for root, files, dirs in os.walk(path) for f in files: try: EXECUTE_C_PROGRAM If possible, how much faster would this be over a pure P

Re: hide python code !

2006-08-15 Thread Armin Steinhoff
Bayazee wrote: > hi > can we hide a python code ? > if i want to write a commercial software can i hide my source code from > users access ? > we can conver it to pyc but this file can decompiled ... so ...!! > do you have any idea about this ...? Use Pyrex in order to build C-Modules from the cri

Re: Match First Sequence in Regular Expression?

2006-01-28 Thread Armin Steinhoff
Alex Martelli wrote: > Christoph Conrad <[EMAIL PROTECTED]> wrote: > > >>Hello Roger, >> >> >>>since the length of the first sequence of the letter 'a' is 2. Yours >>>accepts it, right? >> >>Yes, i misunderstood your requirements. So it must be modified >>essentially to that what Tim Chase wrote:

Re: Python multithreading on cluster system? Embedding python in PVM?

2006-02-19 Thread Armin Steinhoff
abhinav wrote: > Hi guys.I have read that one cannot perform true multithreading in > python due to global interpreter lock mechanism.Suppose i have to > implement a crawler on a say cluster system like clusterknoppix so that > i can use parallel virtual machine (PVM)for programming in > multiproce

Re: editor for Python on Linux

2006-02-19 Thread Armin Steinhoff
Mladen Adamovic wrote: > Hi! > > I wonder which editor or IDE you can recommend me for writing Python > programs. I tried with jEdit but it isn't perfect. > Nothing is perfect ... but try SciTE and Eric http://www.die-offenbachs.de/detlev/eric3.html --Armin http://www.steinhoff-automation.com

Re: pyvm -- faster python

2005-05-13 Thread Armin Steinhoff
Stelios Xanthakis wrote: > Kay Schluehr wrote: > >> >> Yes. What we are seeking for and this may be the meaning of Armins >> intentiously provocative statement about the speed of running HLLs is a >> successor of the C-language and not just another VM interpreter that is >> written in C and limits

Re: pyvm -- faster python

2005-05-13 Thread Armin Steinhoff
Stelios Xanthakis wrote: > Armin Steinhoff wrote: > >>> >>> pyvm has that. A big part of it is written in "lightweight C++" [1]. >> >> >> >> Realy ? I have downloaded the lwc distribution and checked it out. >> It was a surprise t

PyXML/expat and the empty elements

2005-05-17 Thread Armin Steinhoff
Hi all, is it possible to get the name of an empty element specified by ... the expat parser seems only to recognize the form Regards Armin -- http://mail.python.org/mailman/listinfo/python-list

Re: PyXML/expat and the empty elements

2005-05-17 Thread Armin Steinhoff
Armin Steinhoff wrote: > > > Hi all, > > is it possible to get the name of an empty element specified > by ... the expat parser seems only to recognize > the form > > Regards > > Armin Ok ... found the root of the problem. The expat parser is OK