[Python-Dev] [Python-checkins] r41972 - python/branches/ssize_t/Objects/funcobject.c

Michael Hudson mwh at python.net
Tue Jan 10 10:28:53 CET 2006


"Martin v. Löwis" <martin at v.loewis.de> writes:

> Well, you know that LOAD_CONST only supports 2**31 constants, so
> truncation to int is currently safe (I hope that the compiler detects
> cases where somebody tries to create more than 2**16 constants).

Easy enough to check:

   >>> eval(repr(range(100000)))

(It works).

Cheers,
mwh

-- 
  Q: What are 1000 lawyers at the bottom of the ocean?
  A: A good start.
  (A lawyer told me this joke.)
                                  -- Michael Ströder, comp.lang.python


More information about the Python-Dev mailing list