Re: Using bytecode, not code objects

2006-02-10 Thread Christos Georgiou
On Sun, 29 Jan 2006 14:51:18 -0800, rumours say that Michael Spencer [EMAIL PROTECTED] might have written: http://www.effbot.org/librarybook/marshal.htm There's a typo in the text accompanying that example: img.get_magic() should be imp.get_magic(). The error is easy to explain: he's on

Re: Using bytecode, not code objects

2006-02-06 Thread Fabiano Sidler
2006/1/29, Fabiano Sidler [EMAIL PROTECTED]: 28 Jan 2006 22:02:45 -0800, Raymond Hettinger [EMAIL PROTECTED]: But if you want to make your life unnecessarily hard, you can hack the compiler module just upstream from the creation of the code object -- alter the newCodeObject() method in

Re: Using bytecode, not code objects

2006-02-06 Thread Raymond Hettinger
Fabiano Sidler wrote: 2006/1/29, Fabiano Sidler [EMAIL PROTECTED]: 28 Jan 2006 22:02:45 -0800, Raymond Hettinger [EMAIL PROTECTED]: But if you want to make your life unnecessarily hard, you can hack the compiler module just upstream from the creation of the code object -- alter the

Re: Using bytecode, not code objects

2006-02-06 Thread Terry Reedy
Raymond Hettinger [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Fabiano Sidler wrote: with pdb (which I'm surely not using as neatly as it could be). Or is there any documentation on it I couldn't find? The pysassem module is part of the compiler package:

Re: Using bytecode, not code objects

2006-01-29 Thread Fredrik Lundh
Fabiano Sidler wrote: I'm looking for a way to compile python source to bytecode instead of code-objects. Is there a possibility to do that? The reason is: I want to store pure bytecode with no additional data. use marshal. The second question is, therefore: How can I get the correct values

Re: Using bytecode, not code objects

2006-01-29 Thread Michael Spencer
Fredrik Lundh wrote: Fabiano Sidler wrote: I'm looking for a way to compile python source to bytecode instead of code-objects. Is there a possibility to do that? The reason is: I want to store pure bytecode with no additional data. use marshal. The second question is, therefore: How

Re: Using bytecode, not code objects

2006-01-28 Thread Raymond Hettinger
[Fabiano Sidler] I'm looking for a way to compile python source to bytecode instead of code-objects. Is there a possibility to do that? The reason is: I want to store pure bytecode with no additional data. The second question is, therefore: How can I get the correct values for a given