cpython/Objects
Guido van Rossum 4668b000a1 Implement PEP 238 in its (almost) full glory.
This introduces:

- A new operator // that means floor division (the kind of division
  where 1/2 is 0).

- The "future division" statement ("from __future__ import division)
  which changes the meaning of the / operator to implement "true
  division" (where 1/2 is 0.5).

- New overloadable operators __truediv__ and __floordiv__.

- New slots in the PyNumberMethods struct for true and floor division,
  new abstract APIs for them, new opcodes, and so on.

I emphasize that without the future division statement, the semantics
of / will remain unchanged until Python 3.0.

Not yet implemented are warnings (default off) when / is used with int
or long arguments.

This has been on display since 7/31 as SF patch #443474.

Flames to /dev/null.
2001-08-08 05:00:18 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
abstract.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
bufferobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
cellobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
classobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
cobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00
complexobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
descrobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
dictobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
fileobject.c Remove spurious "closed" attribute definition from the memberlist 2001-08-06 18:51:38 +00:00
floatobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
frameobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
funcobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
intobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
iterobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
listobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
longobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
methodobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
moduleobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
object.c - Rename PyType_InitDict() to PyType_Ready(). 2001-08-07 17:24:28 +00:00
obmalloc.c Identifiers matching _[A-Z_]\w* are reserved for C implementations. 2001-03-11 18:36:13 +00:00
rangeobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
sliceobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
stringobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
tupleobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
typeobject.c - Rename PyType_InitDict() to PyType_Ready(). 2001-08-07 17:24:28 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
unicodetype_db.h forgot to check in the new makeunicodedata.py script 2001-01-21 17:01:31 +00:00
xxobject.c REMOVED all CWI, CNRI and BeOpen copyright markings. 2000-09-01 23:29:29 +00:00