Re: [Python-Dev] Python Virtual Machine Architecture

2008-08-08 Thread Leo Soto M.
r writing Python programs or > extending / writing modules. Is there any documentation (or papers) geared > towards understanding the core? Maybe <http://wiki.python.org/moin/CPythonVmInternals>? -- Leo Soto M. http://blog.leosoto.com _

Re: [Python-Dev] On __cmp__ specifications and implementation (to mimic it on Jython)

2008-08-06 Thread Leo Soto M.
On Tue, Aug 5, 2008 at 10:46 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Tue, Aug 5, 2008 at 5:56 PM, Leo Soto M. <[EMAIL PROTECTED]> wrote: > > But that's going to be easier if I understand the "why" and not only > > the "how". I can

Re: [Python-Dev] On __cmp__ specifications and implementation (to mimic it on Jython)

2008-08-05 Thread Leo Soto M.
On Tue, Aug 5, 2008 at 4:59 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Tue, Aug 5, 2008 at 1:56 PM, Leo Soto M. <[EMAIL PROTECTED]> wrote: >> On Tue, Aug 5, 2008 at 4:45 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: >>> Given that in Python 3.0 __c

Re: [Python-Dev] On __cmp__ specifications and implementation (to mimic it on Jython)

2008-08-05 Thread Leo Soto M.
ity with 2.5... Sure, it won't be a problem on Jython 3.0. But I'm doing this for the upcoming Jython 2.5, where we still have to live with __cmp__ -- Leo Soto M. http://blog.leosoto.com ___ Python-Dev mailing list Python-Dev@python.org http

[Python-Dev] On __cmp__ specifications and implementation (to mimic it on Jython)

2008-08-05 Thread Leo Soto M.
gt;> cmp(A(), B()) 1 (3): >>> class A(object): ...def __cmp__(self, other): return 1 ... >>> class B: ...def __cmp__(self, other): return 1 ... >>> cmp(A(), B()) -1 (4): >>> class A(object): ... def __coerce__(self, other): return 0, 0 ... def _