]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Variant of patch #423262: Change module attribute get & set
authorTim Peters <tim.peters@gmail.com>
Fri, 11 May 2001 21:51:48 +0000 (21:51 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 11 May 2001 21:51:48 +0000 (21:51 +0000)
commitd85e102337725554a43027fe90e54dd886f4ec9a
treed0bc76afbeace03a71537ba84504c2eea891c171
parent564a6cc8cae4cd9461c01ac4c7a14915744bcc1e
Variant of patch #423262:  Change module attribute get & set
Allow module getattr and setattr to exploit string interning, via the
previously null module object tp_getattro and tp_setattro slots.   Yields
a very nice speedup for things like random.random and os.path etc.
Misc/NEWS
Objects/moduleobject.c