diff -r a970054a93fb Doc/library/ctypes.rst --- a/Doc/library/ctypes.rst Mon Jul 16 18:30:03 2012 +0100 +++ b/Doc/library/ctypes.rst Mon Jul 16 21:09:13 2012 +0200 @@ -1368,9 +1368,14 @@ Instances of these classes have no public methods, however :meth:`__getattr__` and :meth:`__getitem__` have special behavior: functions exported by the shared -library can be accessed as attributes of by index. Please note that both -:meth:`__getattr__` and :meth:`__getitem__` cache their result, so calling them -repeatedly returns the same object each time. +library can be accessed as attributes of by index. Please note that +:meth:`__getattr__` cache the result, so calling it repeatedly returns the same +object each time, while :meth:`__getitem__` returns a new object each time. + + >>> libc.time == libc.time + True + >>> libc['time'] == libc['time'] + False The following public attributes are available, their name starts with an underscore to not clash with exported function names: