On Thu, Nov 02 2017, Ajinkya Bobade wrote:
[...]
> However, I want to write this code for "*.bag" extension files that is
> sys.stdout = open("/Volumes/aj/hello world.bag", 'w') . This file is
> defined as Binary(application/octect-stream). The above code doesn't
> work in this scenario. How do I make it work?
[...]
The contents of a file are not dependent on its extension. What is it
that you're trying to do here? I assumed that you simply want to capture
all your log messages.
--
Cordially,
Noufal
http://nibrahim.net.in
___
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers