Simon Brunning:
You can indeed use ctypes to modify the value of a string - see
http://tinyurl.com/5hcnwl. You can use it to crash the OS, too.
My advice - don't.
Thanks for the link.
Any advice on what to do or use as an I/O structure for dissemination?
Ken Seehart:
8--- using
Patrick Maupin pmauail.com wrote:
Very entertaining.
Thanks. Nice to see that there is still some sense of humour
left somewhere - its all been so serious here lately - people
seem to forget that hacking is fun!
But let me get this straight: Are you just complaining that if you
pass a
2008/8/25 Hendrik van Rooyen [EMAIL PROTECTED]:
It is reputed to belong to a programmer who was flayed alive
by the C.L.P. group, because he had violated the immutability
of a python string.
You can indeed use ctypes to modify the value of a string - see
http://tinyurl.com/5hcnwl. You can use
You can also use ctypes to globally change the value of integers less
than 101. Personally, I don't particularly like the number 14. I
changed it to 9 and I am much happier now.
I love ctypes. So cool. It's not supposed to be safe.
Life is either a daring adventure or nothing.
Hendrik van Rooyen wrote:
...
Actually, I am not complaining - I am asking for advice on the side
effects of what I am doing, which is replacing a bunch of bits
in what is essentially an output bit field with the corresponding
input bits at the same addresses read back from a simulated i/o
On Mon, 25 Aug 2008 03:43:01 -0700, Ken Seehart wrote:
You can also use ctypes to globally change the value of integers less
than 101. Personally, I don't particularly like the number 14. I
changed it to 9 and I am much happier now.
Okay, you've got me curious. How do you do that, and why
Steven D'Aprano wrote:
On Mon, 25 Aug 2008 03:43:01 -0700, Ken Seehart wrote:
You can also use ctypes to globally change the value of integers less
than 101. Personally, I don't particularly like the number 14. I
changed it to 9 and I am much happier now.
Okay, you've got me curious.
En Mon, 25 Aug 2008 17:31:22 -0300, Hendrik van Rooyen [EMAIL PROTECTED]
escribió:
Patrick Maupin pmauail.com wrote:
But let me get this straight: Are you just complaining that if you
pass a string to an arbitrary C function using ctypes, that that
arbitrary function can modify the
On Aug 25, 3:31 pm, Hendrik van Rooyen [EMAIL PROTECTED] wrote:
Actually, I am not complaining - I am asking for advice on the side
effects of what I am doing, which is replacing a bunch of bits
in what is essentially an output bit field with the corresponding
input bits at the same addresses
Ken Seehart wrote:
Hendrik van Rooyen wrote:
...
Actually, I am not complaining - I am asking for advice on the side
effects of what I am doing, which is replacing a bunch of bits
in what is essentially an output bit field with the corresponding
input bits at the same addresses read back
South Africa. Sunday 24th August 2008.
Our South African correspondent, Waffling Swiftly, reports the
discovery of a corpse in the local cyberspace.
It is reputed to belong to a programmer who was flayed alive
by the C.L.P. group, because he had violated the immutability
of a python string.
In article [EMAIL PROTECTED],
Hendrik van Rooyen [EMAIL PROTECTED] wrote:
It is reputed to belong to a programmer who was flayed alive
Reminds me of that great old song from Saturday Night Hacker:
Oh, oh, oh, oh.
Flaying alive, flaying alive.
Oh, oh, oh, oh.
Flaying ali-i-i-i-i-ive!
--
On Aug 24, 8:49 pm, Hendrik van Rooyen [EMAIL PROTECTED] wrote:
(a lot of stuff related to using a string with a C library via ctypes)
Very entertaining.
But let me get this straight: Are you just complaining that if you
pass a string to an arbitrary C function using ctypes, that that
13 matches
Mail list logo