Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-20 Thread holger krekel
le such use may be possible, I probably won't consider it as > supported. Thanks Paul for going through this! Looking forward to the link/code. holger > Thanks again, > Paul > ___ > Distutils-SIG maillist - distutils-...@python.or

execnet-1.1: cross-interpreter distributed execution library

2012-06-20 Thread holger krekel
ttp://codespeak.net/execnet Particular thanks to Ronny Pfannschmidt for a lot of internal cleanups and to Alex Gaynor for providing feature patches. Have fun, holger 1.1 (compared to 1.0.9) - introduce execnet.dumps/loads providing serialization between pyt

Re: detect endianness of a binary with python

2010-07-21 Thread Holger brunck
75968 version #2 sorted_dirs CRC 0x8721dfc0, edition 0, 462 blocks, 10 files It would be possible to execute ret = os.system("file | grep "little endian") and evaluate the return code. But I don't like to evaluate a piped system command. If there is an way without using

detect endianness of a binary with python

2010-07-21 Thread Holger brunck
st regards Holger Brunck -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing an assembler in Python

2010-03-02 Thread Holger Mueller
code? Why coding assembler if you can type in hexdumps... scnr Holger -- http://www.kati-und-holger.de/holgersblog.php -- http://mail.python.org/mailman/listinfo/python-list

py.test-1.2.0: junitxml, standalone test scripts, pluginization

2010-01-18 Thread holger krekel
7; project's easy_install for the latter. cheers & have fun, holger py.test/pylib 1.2.0: junitxml, standalone test scripts, pluginization py.test is an advanced automated testing tool working with Python2,

execnet-1.0.1: more robust and rapid python deployment

2009-12-05 Thread holger krekel
automatically tested documentation:: http://codespeak.net/execnet have fun, holger 1.0.1 - revamp and better structure documentation - new method: gateway.hasreceiver() returns True if the gateway is still receive-active. remote_status now only carries

pylib/py.test 1.0.0 released

2009-08-04 Thread holger krekel
" plugin which integrates testing of javascript code in real-life browsers into a regular test run. Apart from such separately distributed "cross-project" plugins you can also write per-project plugins/extensions that lives with your testing code. cheers & have fun, holg

Re: read() does not read whole file in activepython/DOS

2008-11-07 Thread Holger
On Nov 7, 2:40 pm, Holger <[EMAIL PROTECTED]> wrote: > This is what it looks like in DOS: > === > C:\production>python > ActivePython 2.5.2.2 (ActiveState Software Inc.) based on > Python 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1

read() does not read whole file in activepython/DOS

2008-11-07 Thread Holger
ot.bin').read() >>> len(b) 18308 >>> import os >>> os.path.getsize('boot.bin') 18308L === What is wrong? / What am I doing wrong? I would expect it to read the whole file. Help appreciated :-) Holger -- http://mail.python.org/mailman/listinfo/python-list

Re: Clever way of sorting strings containing integers?

2008-10-09 Thread Holger
On 9 Okt., 10:57, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Thu, 09 Oct 2008 00:41:27 -0700, Holger wrote: > > I tried to do this elegantly, but did not come up with a good solution > > > Sort strings like > > foo1bar2 > > foo10bar10

Re: Clever way of sorting strings containing integers?

2008-10-09 Thread Holger
On 9 Okt., 09:41, Holger <[EMAIL PROTECTED]> wrote: > I tried to do this elegantly, but did not come up with a good solution > > Sort strings like > foo1bar2 > foo10bar10 > foo2bar3 > foo10bar2 > > So that they come out: > foo1bar2 > foo2bar3 > foo10bar2 &

Clever way of sorting strings containing integers?

2008-10-09 Thread Holger
I tried to do this elegantly, but did not come up with a good solution Sort strings like foo1bar2 foo10bar10 foo2bar3 foo10bar2 So that they come out: foo1bar2 foo2bar3 foo10bar2 foo10bar10 I.e. isolate integer parts and sort them according to integer value. Thx Holger -- http

Re: Using python Serial module on windows

2008-10-06 Thread Holger
Turns out there's a windows package that works bautifully with activestate python: pyserial-2.4.win32.exe Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get the thighest bit position in big integers?

2008-10-06 Thread Holger
def highest_bit(n, maxbits = 256): bit = 0 while maxbits > 1: maxbits >>= 1 a = n >> maxbits if a: bit += maxbits n = a return bit is sligtly better -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get the thighest bit position in big integers?

2008-10-06 Thread Holger
e's a pretty one (I think): def highest_bit(n, maxbits = 256): bit = 0 while maxbits > 1: maxbits = maxbits >> 1 mask_b = ((1<> maxbits else: n = b return bit I suspect you would call that a O(logn)) solution Holger -- http://mail.python.org/mailman/listinfo/python-list

Using python Serial module on windows

2008-10-06 Thread Holger
ython installation, it says it's missing the module win32file. But the win32file module looks like it is no longer in development and support stopped at python 2.2 Am I going about this issue the wrong way? Can anyone suggest a way out of this fix? Thank You Holger -- http://mail.python.org/mailma

Re: multiline regular expression (replace)

2007-05-29 Thread Holger Berger
Hi, yes: import re a=""" I Am Multiline but short anyhow""" b="(I[\s\S]*line)" print re.search(b, a,re.MULTILINE).group(1) gives I Am Multiline Be aware that . matches NO newlines!!! May be this caused your problems? regards Holger Zdene

ANN: py lib 0.9.0: py.test, distributed execution, microthreads ...

2007-02-14 Thread holger krekel
http://codespeak.net/py/0.9.0/download.html Documentation/API: http://codespeak.net/py/0.9.0/index.html Work on the py lib has been partially funded by the European Union IST programme and by http://merlinux.de within the PyPy project. best, have fun and let us know what you think! Holger K

Re: compound statement from C "?:"

2007-02-11 Thread Holger
ite clever :-) > > Peter I like this one :-) > print "I saw %d car%s\n" % (n, ("", "s")[n != 1]) And this one. /Holger -- http://mail.python.org/mailman/listinfo/python-list

compound statement from C "?:"

2007-02-02 Thread Holger
Hi I have not been able to figure out how to do compound statement from C - "?:" But something similar must exist...?! I would like to do the equivalent if python of the C line: printf("I saw %d car%s\n", n, n != 1 ? "s" : "") Please help /Holger --

PyPy trillke sprints (Feb/March 2007)

2007-01-23 Thread holger krekel
= PyPy Trillke "EU and beyond!" sprints (25-28th Feb, 1-5th March 2006) = ..image:: http://www.trillke.net/images/HausPanorama0304_113kb.jpg Some two

Re: Frequency spectrum with fft of a real valued array...?

2007-01-22 Thread Holger
Hello Robert! Thank you for your tips. They were very useful. Bye Holger Am 11.01.2007, 19:08 Uhr, schrieb Robert Kern <[EMAIL PROTECTED]>: > Holger wrote: > >> What does it mean to me? How do I get to the wanted frequenca >> spectrum??? > > It's packed i

Frequency spectrum with fft of a real valued array...?

2007-01-11 Thread Holger
+405.592129477j) (470.908512117+433.929598454j) (482.083855098+468.256188814j) What does it mean to me? How do I get to the wanted frequenca spectrum??? .. btw The maximum magnitudes of the original data are app. 70 peak Thanks in advance for your help!!! Regards Holger -- http://mail.python.org

Re: Stupid email disclaimers (was: [unicode] inconvenient unicodeconversion of non-string arguments)

2006-12-14 Thread Holger Joukl
onment is different from the rest so I can not copy source text or attach files to mails I could write via web mail. That would render mailing lists quite unusable for me. This is going to change soon, hopefully. So my apologies for the disclaimer but I an not do anything about it right now. Holg

Re: Re: inconvenient unicode conversion of non-string arguments

2006-12-13 Thread Holger Joukl
[EMAIL PROTECTED] schrieb am 13.12.2006 12:05:33: > Holger Joukl wrote: > > >>> Ok, but I still don't see why these arguments shouldn't simply be > >>> silently ignored > >> > >> >>> import this > > > > You proba

Re: Re: inconvenient unicode conversion of non-string arguments

2006-12-13 Thread Holger Joukl
[EMAIL PROTECTED] schrieb am 13.12.2006 11:37:03: > Holger Joukl wrote: > > > Ok, but I still don't see why these arguments shouldn't simply be silently > > ignored > > >>> import this > > > You probably refer to "Explicit is better

Re: Re: call of __del__ non-deterministic in python 2.4 (cpython)?

2006-12-13 Thread Holger Joukl
[EMAIL PROTECTED] schrieb am 13.12.2006 11:09:13: > Holger Joukl wrote: > > > Anyway: Is relying on __del__ getting called immediately when the refcount > > drops to 0 a no-no? > > yes, but more importantly, relying on the refcount dropping to 0 when > something goes ou

Re: Re: inconvenient unicode conversion of non-string arguments

2006-12-13 Thread Holger Joukl
[EMAIL PROTECTED] schrieb am 13.12.2006 11:02:30: > > Holger Joukl wrote: > > Hi there, > > > > I consider the behaviour of unicode() inconvenient wrt to conversion of > > non-string > > arguments. > > While you can do: > > > &g

[unicode] inconvenient unicode conversion of non-string arguments

2006-12-13 Thread Holger Joukl
Any reason why unicode() with a non-string argument should not allow the encoding and errors arguments? Or some good solution to work around my problem? (Currently running on python 2.4.3) Regards, Holger Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene Empfänger sind oder falls

call of __del__ non-deterministic in python 2.4 (cpython)?

2006-12-13 Thread Holger Joukl
wanting to acquire the lock but never being able to. Unfortunately I fail to put together a minimal example. Anyway: Is relying on __del__ getting called immediately when the refcount drops to 0 a no-no? If so should that maybe be prominently stated in the docs? Cheers, Holger Der Inhalt dieser

Re: Noob script needs some input: CVS PatchMaker

2006-06-19 Thread Holger
uot;regx" is a match object. "mobj" might > be a better choice. The term "regex" is applied to a pattern, or > sometimes to the compiled re object. ] > > HTH, > John Thank you for taking the time :-) All points are noted. Holger, -- http://mail.python.org/mailman/listinfo/python-list

Noob script needs some input: CVS PatchMaker

2006-06-16 Thread Holger
ot at the problem. Any feedback on what would be "the pythonic way" to do this would be much appreciated! Usage: cd myproject patchmaker Ouput is a diff of involved files+revs Thank you, /Holger

Re: noob question: "TypeError" wrong number of args

2006-05-08 Thread Holger
And thank you gentlemen for turning my somewhat banale question into a worthwhile discussion. :-) I shall not forget self ever again! -- http://mail.python.org/mailman/listinfo/python-list

Re: noob question: "TypeError" wrong number of args

2006-05-01 Thread Holger
I guess I deserved that. :-( I *did* read the tutorial, but then I forgot and didn't notice... My brain is getting is slow - so thx for the friendly slap in the face ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: noob question: "TypeError" wrong number of args

2006-05-01 Thread Holger
oops, that was kinda embarrassing. But thx anyway :-) -- http://mail.python.org/mailman/listinfo/python-list

noob question: "TypeError" wrong number of args

2006-05-01 Thread Holger
s, locals) File "C:\home\hbille\projects\bc4rom\bin\test.py", line 20, in __main__ b.addFile(f) TypeError: addFile() takes exactly 1 argument (2 given) I'm running this inside ActiveState Komodo on WinXP. Hope one you wizards can give

Re: Python 2.4.2 gcc 3.4.4 Solaris 8 build issues [solved]

2006-01-03 Thread Holger Joukl
again I´m no compiler wizard. >> Der Inhalt dieser E-Mail ist vertraulich. >So ein Quatsch. Selbst Google hat jetzt eine Kopie dieser Mail: Wie wahr. Schon mal gegen Windmühlen gekämpft? ;-) Thanks a lot, Holger Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der

Python 2.4.2 gcc 3.4.4 Solaris 8 build issues

2005-12-30 Thread Holger Joukl
rue != False '\xc0'.islower() =? False ... yes '\xec\xa0\xbc'.split() =? ['\xec\xa0\xbc'] ... no '\xec\xa0\xbc'.split() == ['\xec', '\xbc'] != ['\xec\xa0\xbc'] '\xed\x95\xa0'.strip() =? '\xed\x95\xa0' ... no &#x

Re: Pypy - Which C modules still need converting to py?

2005-08-30 Thread holger krekel
as part of his SOC project, of which he got the latter to translate to low-level during the last Heidelberg sprint! cheers, holger -- http://mail.python.org/mailman/listinfo/python-list

Re: Release of PyPy 0.7.0

2005-08-30 Thread holger krekel
We don't have a fixed version roadmap but indeed, we plan to work on JIT compilation and other niceties rather soon now. cheers, holger -- http://mail.python.org/mailman/listinfo/python-list

Re: SOAP and XMLRPC

2005-08-17 Thread Holger Duerer
PocketSOAP client to talk to a SoapPy server. You may want to give that a try. Holger -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I access avariable named "return"?

2005-06-21 Thread Holger Wirtz
set it: setattr(resp, 'return', value) > > -- > Brian Beck > Adventurer of the First Order Ahhh! That's it! Thanks a lot!!! Holger -- http://mail.python.org/mailman/listinfo/python-list

How do I access avariable named "return"?

2005-06-21 Thread Holger Wirtz
server = WSDL.Proxy(wsdlFile) version=server.Version() #print version.GatekeeperID # Works fine #print version.FirmwareVersion # Works also resp=server.Initialize(user="Wirtz, Holger - DFN-Verein",appl="PySOAP") print resp print resp.return --- cut here -

Re: XML + SOAP + Webservices

2005-06-09 Thread Holger Joukl
. Cheers, Holger >>> Interoperable WSDL/SOAP web services introduction: Python ZSI , Excel XP & gSOAP C/C++ Holger Joukl LBBW Financial Markets Technologies Abstract Despite the hype & buzzword-storm, building web services servers and clients still is no piece of cake. This is

Re: Re: XML + SOAP + Webservices

2005-06-09 Thread Holger Joukl
Hi there, just about now I´ve started to write a little howto for the first steps with a python ZSI-based webservice to be consumed from C++ clients (gSOAP) and an Excel XP spreadsheet. More or less I am just documenting what I did, and I am by no means an expert on the subject, but still...might b

Re: first release of PyPy

2005-05-26 Thread holger krekel
we need a good concept to perform foreign function invocation (FFI) much like ctypes or other approaches do. However, concretely, we might at first just write some very low-level code (even lower level than RPython) to interact with os-level APIs and weave that into the translation process. This is

Re: first release of PyPy

2005-05-22 Thread holger krekel
the specializing compiler for Python: http://psyco.sf.net holger -- http://mail.python.org/mailman/listinfo/python-list

PyPy 0.6.1

2005-05-21 Thread holger krekel
Hi again, On Fri, May 20, 2005 at 23:38 +0200, holger krekel wrote: > The PyPy 0.6 release > has already been superseded by the PyPy 0.6.1 bug-fix release. We are temporarily not having access to that time machine and thus have to fix things the old way, unfortu

[ann] first release of PyPy

2005-05-20 Thread holger krekel
k support from numerous people. Please feel free to give feedback and raise questions. contact points: http://codespeak.net/pypy/index.cgi?contact contributor list: http://codespeak.net/pypy/index.cgi?doc/contributor.html have fun, Armin Rigo, Samuele Pedroni, Holger Krekel

Re: parsing WSDL

2005-01-27 Thread Holger Duerer
a look at the Python WS tools? They do have some sort of WSDL support, so I assume you could get the info from those classes. http://pywebsvcs.sf.net/ Holger -- http://mail.python.org/mailman/listinfo/python-list

Re: AttributeError of a module instance

2005-01-07 Thread holger krekel
uot;import a" also from other modules because the import statement consults sys.modules. This is all a bit bothersome and thus it's often easier to just do "from somemod import a" directly and forget about the above magic. cheers, holger -- http://mail.python.org/mailman/listinfo/python-list

Re: Python evolution: Unease

2005-01-04 Thread holger krekel
ming complexity", i.e. the number of names a programmer needs to remember to deal with a library or framework. For me, it's not really the syntax that is the problem with interfaces in Zope3 or twisted, but the sheer amount of names (each indicating certain concepts and behaviours) i am conf

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 30)

2005-01-04 Thread holger krekel
> Uh -- _did_ I? Eeep... I guess I did... mostly, I was pointing to > Holger Krekel's very nice recipe (not sure he posted it to the site as > well as submitting it for the printed edition, but, lobby _HIM_ about > that;-). FWIW, i added the recipe back to the online cookbook. It&#

Re: style query: function attributes for return codes?

2004-12-10 Thread holger krekel
[Reinhold Birkenfeld Fri, Dec 10, 2004 at 08:42:10PM +0100] > holger krekel wrote: > > class Connection(object): > > def __init__(self, **kw): > > for name in kw: > > assert name in ('good', 'badauth', 

Re: style query: function attributes for return codes?

2004-12-10 Thread holger krekel
return Connection(badauth=True) else: return Connection(noserver=True) And btw, the view of "what do i want at the caller side?" is natural if you do test-driven development and actually first write your tests. Another reason why testing is a good thing :-) cheers & HTH, holger -- http://mail.python.org/mailman/listinfo/python-list

Re: py.test anyone?

2004-11-30 Thread holger krekel
n into the PyPy project. Nevertheless, there is quite some documentation under the 'py.test' link found here: http://codespeak.net/py/current/doc/ there also is a "getting started" link which now incorporates the above ":8080" suggestion. have fun,