Roger Serwy added the comment:

The attached patch changes %%s to %%r. This should handle file names containing 
quotes automatically.

Ramchandra's point of using a subprocess instead would fix the issue as well. 
That would require changing "print_window" in Lib/idlelib/IOBinding.py 

Terry's observation about Windows' Notepad omitting the file extension is just 
a behavior of Notepad.

----------
keywords: +patch
Added file: http://bugs.python.org/file28662/16829_print.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16829>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to