pygobject / pgi

[Unmaintained: Use PyGObject instead] GTK+ / GObject Introspection Bindings for PyPy.
GNU Lesser General Public License v2.1
74 stars 16 forks source link

Cache getattr(lib, symbol) in _CProperty #9

Closed pwaller closed 10 years ago

pwaller commented 10 years ago

The repeated re-assignment of func.argtypes and restypes was making it look like new objects were being created whilst trying to find the source of a leak. This cache is a convenience which prevents that.

lazka commented 10 years ago

Good catch