[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib xmlrpclib.py,1.11,1.12

Jeremy Hylton jeremy@zope.com
Wed, 10 Oct 2001 14:16:53 -0400 (EDT)


>>>>> "SM" == Skip Montanaro <montanaro@users.sourceforge.net> writes:

  SM> Update of /cvsroot/python/python/dist/src/Lib In directory
  SM> usw-pr-cvs1:/tmp/cvs-serv25433

  SM> Modified Files:
  SM> 	xmlrpclib.py
  SM> Log Message: allow long ints to be marshalled as ints - no check
  SM> is made to the incoming value, so the programmer will have to
  SM> catch OverflowError.

How does the other end unmarshal it?  You shouldn't get overflow
errors any more.

Oh, well, actually you do still get overflow and value errors from the
builtin int().  I wonder if there should be a generic number-from-string 
conversion function that returns either a long or an int as needed.
If an integer literal in your program text can produce a long, why
can't builtin int()?

Jeremy