G.Franzkowiak wrote:
Scott David Daniels schrieb:
If you really want to do this kind of byte fiddling:
    http://members.dsl-only.net/~daniels/block.html
Then:
    from block import Block, View
    b = Block(4) # enough space for one float (more is fine)
    iv = View('i', b) # getting to it as an integer
    fv = View('f', b) # same memory as floating point
    iv[0] = 0x3F8CCCCD # Here is a sample just using the integer
    print fv[0]
On an Intel/Amd/Generic "PC" machine, you should get 1.1

That's good :-)) I'm missing the makefile ;-) I'm using the other world... right
There's a lot more than one other world.  distlib is your friend.

There is no makefile.  If you are not on a windows box,
get the source, extract the files from the zip, and run:

    python setup.py install

-Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to