[issue13896] shelf doesn't work with 'with'

2012-01-28 Thread Zachary Richey
Zachary Richey added the comment: The docs for shelve(see: http://docs.python.org/dev/library/shelve.html#shelve.open) recommend using contextlib.closing for this purpose. -- nosy: +zachary r. ___ Python tracker <http://bugs.python.org/issue13

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-11-29 Thread Zachary Richey
Zachary Richey added the comment: I've reworded the patch and fixed the issues in the patch pointed out by eric.araujo. -- Added file: http://bugs.python.org/file23815/functions_print_doc_2.patch ___ Python tracker <http://bugs.py

[issue12832] The documentation for the print function should explain/point to how to control the sys.stdout encoding

2011-08-24 Thread Zachary Richey
Zachary Richey added the comment: I'm not sure if this is good documentation, but it explains how the encoding is gotten for stdout and stderr. -- keywords: +patch nosy: +mach1723 Added file: http://bugs.python.org/file23042/functions_print_doc.