I get a package from Pypi. The package has many modules using built-in open() 
function. I like to redefine all the open() there with the default encoding 
'utf-8', but not for code outside the package. Maybe I can put my def statement 
at the beginning of every module of this package, but just wondering is there a 
simple way of doing it?

Best Regards,
Jach
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to