]> granicus.if.org Git - python/commit
Added an attribute string_id_to_buffer, which gives the offset you
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 3 Apr 1997 14:51:03 +0000 (14:51 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 3 Apr 1997 14:51:03 +0000 (14:51 +0000)
commitf73bab7f9665beacb0bd95c068129448a833fe2c
treeca81394fc60c73424bb2407f8e3b2fafbd5cba3d
parent377df98005862e587939b42f135bd653130e7913
Added an attribute string_id_to_buffer, which gives the offset you
have to add to the id() of a string to get the address of the
data. This is a horrible and error-prone hack, but unfortunately it is
one that is needed for playing audio and crearing pixmaps. Having the
constant here is at least marginally better than the previous practice
of having the constant 16 all over the place...
Mac/Modules/macosmodule.c