GioPet Posted December 6, 2015 Share Posted December 6, 2015 Hi all, I am new to Python and I am testing a few functions. I am trying to get this done: vs.Rewrite(filename) vs.WriteLn(string) vs.Close(filename) but it always returns the error: AttributeError: 'module' object has no attribute 'WriteLn' all variables are correctly defined... so what am I doing wrong? thanks g Quote Link to comment
GioPet Posted December 7, 2015 Author Share Posted December 7, 2015 ok, I get it now I have to revert to the native functions: fo = open(path, 'w') fo.write(string); fo.close() Quote Link to comment
Dieter @ DWorks Posted December 7, 2015 Share Posted December 7, 2015 It's better not to use vs functions that can be done by Python. Only use vs functions for VW related stuff. Quote Link to comment
GioPet Posted December 7, 2015 Author Share Posted December 7, 2015 thanks Dieter, I also had a quick look at your Dlibrary, very useful stuff! g Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.