Opcode compatible division

Guido van Rossum guido at python.org
Wed Jul 25 16:15:10 EDT 2001


com-nospam at ccraig.org (Christopher A. Craig) writes:

> I was wondering if it would be possible to add two new opcodes to the
> VM language which I will refer to as ExactDivide and IntegerDivide and
> keep the current opcode with its current behavior?
> 
> Even if there was no way in the actual language to generate the
> CurrentDivide opcode, its existance would allow modules compiled and
> distributed under the current system to continue to work with future
> revisions.
> 
> I haven't thought this through that much, so it may be a totally
> stupid idea, but I thought it might fix some of the issues with
> backwards compatibility.

Check out my patch on SourceForge: it does exactly that.

http://sourceforge.net/tracker/index.php?func=detail&aid=443474&group_id=5470&atid=305470

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list