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
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
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
st regards
Holger Brunck
--
http://mail.python.org/mailman/listinfo/python-list
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
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,
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
" 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
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
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
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
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
&
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
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
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
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
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
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
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
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
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 "EU and beyond!" sprints (25-28th Feb, 1-5th March 2006)
=
..image:: http://www.trillke.net/images/HausPanorama0304_113kb.jpg
Some two
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
+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
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
[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
[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
[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
[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
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
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
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
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
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
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
oops, that was kinda embarrassing.
But thx anyway :-)
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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 -
.
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
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
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
the specializing compiler for Python: http://psyco.sf.net
holger
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
> 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
[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',
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
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,
57 matches
Mail list logo