[twill] extend_with

Titus Brown titus at caltech.edu
Thu Sep 8 13:33:17 PDT 2005


-> $ twill-sh
->  >> go http://www.google.com
-> ==> at http://www.google.com
-> current page: http://www.google.com
->  >> extend_with webbrowser
-> current page: http://www.google.com
->  >> webbrowser.open('http://www.google.com')
-> 
-> ERROR: name 'webbrowser' is not defined
-> 
-> current page: http://www.google.com
-> 
-> I saw the previous message, which said that the extend_with  
-> functionality had recently been fixed in the interpreter.  Does the  
-> latest development version contain that fix.  If so, what am I doing  
-> wrong?  Thanks!

Sorry, failure to document properly ;).  the command 'open' should now
work; the module name isn't used.  Good idea, though, I'll see how
difficult that would be to add...

('extend_with' works like 'from x import *')

--titus



More information about the twill mailing list