Re: Installing A-A-P
Wichert Akkerman <[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple. ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/