Re: [A-A-P-develop] Installing A-A-P
Brought to you by:
vimboss
From: Wichert A. <wi...@wi...> - 2003-11-11 11:24:43
|
Previously Bram Moolenaar wrote: > Is this possible? Currently the pre module is imported to test for the > bug. Once the pre module has been imported, how to replace the wrong > code? Overwrite the reference to the function definition somehow? A function is just a variable of type function, so you can assign to it at will. For example: >>> import pre /usr/lib/python2.3/pre.py:94: DeprecationWarning: Please use the 're' module, not the 'pre' module DeprecationWarning) >>> def error(): ... print "My own error" ... >>> pre.error=error >>> pre.error() My own error Wichert. -- Wichert Akkerman <wi...@wi...> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. |