]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
1. Add string conversions to int(), long(), float(). (Not to complex()!)
authorGuido van Rossum <guido@python.org>
Mon, 31 Mar 1997 17:15:43 +0000 (17:15 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 31 Mar 1997 17:15:43 +0000 (17:15 +0000)
commitc6472e9ee161c3bbc003dbf8ce3f74ec8f700eb9
tree66ec944c1e768be04dee20b62c292053a3e6843c
parentdddf7a6fb4f2486a5fbb06acafb3223424e95145
1. Add string conversions to int(), long(), float().  (Not to complex()!)

2. Fix two bugs in complex():

   - Memory leak when using complex(classinstance) -- r was never
   DECREF'ed.

   - Conversion of the second argument, if not complex, was done using
   the type vector of the 1st.
Python/bltinmodule.c