using extended built-in types
Andrew Bennetts
andrew-pythonlist at puzzling.org
Mon Jun 30 03:50:37 EDT 2003
On Mon, Jun 30, 2003 at 05:40:06AM +0200, Martin v. L?wis wrote:
> rimbalaya at yahoo.com (Rim) writes:
>
> > How do I make all future integers use myint instead of int without
> > explicitely say a = myint(value)?
>
> That is not possible.
If only ;)
If your tolerance for evil is sufficiently high, you could use intrinisics,
a hack by Jp Calderone...
PyCon lightning talk:
http://www.intarweb.us:8080/PyCon/intrinsics-lightning-0.xhtml
Source:
http://www.intarweb.us:8080/evil/intrinsics.c
-Andrew.
More information about the Python-list
mailing list