[issue3722] print followed by exception eats print with doctest
Charles-Axel Dein <[EMAIL PROTECTED]> added the comment: This is a bug. This is not a good behavior. If I would like to temporarily print a variable to see its content, in order to debug my code, doctest will eat its output. Thus I will be make to use pdb or to use logging, or to get rid of doctest. This will be far more complicated. See attached file. -- nosy: +charlax type: feature request -> behavior Added file: http://bugs.python.org/file12238/proof_of_concept_doctest.py ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3722> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35404] Document how to import _structure in email.message
New submission from Charles-Axel Dein : The example for `walk()` in `email.message.EmailMessage` makes use of the `_structure` function but does not clarify how to import it. I can make a patch adding a line: from email.iterators import _structure -- assignee: docs@python components: Documentation messages: 331018 nosy: charlax, docs@python priority: normal severity: normal status: open title: Document how to import _structure in email.message type: enhancement versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue35404> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20351] Add doc examples for DictReader and DictWriter
Charles-Axel Dein added the comment: Hey - is there anything else I need to do here? -- ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20351] Add doc examples for DictReader and DictWriter
Charles-Axel Dein added the comment: New version of the patch. -- Added file: http://bugs.python.org/file34969/add_csvdict_examples.patch ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20351] Add doc examples for DictReader and DictWriter
Charles-Axel Dein added the comment: Updated patch following review. -- Added file: http://bugs.python.org/file35790/add_csvdict_examples.patch ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20351] Add doc examples for DictReader and DictWriter
Charles-Axel Dein added the comment: Anything else I need to do? -- ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20310] Recommend using pprint for deterministic doctest
New submission from Charles-Axel Dein: I just thought that using pprint.pprint was an elegant solution to the non-deterministic order of repr(dict) in doctest. See for instance http://bugs.python.org/issue3332 Contrary to sorted(foo().items()): - It provides a nice output that is exactly like a dict. - It supports any number of nested dicts. - It can be used in other cases as well to make doctests elegant. -- assignee: docs@python components: Documentation files: pprint_doctest.patch keywords: patch messages: 208526 nosy: charlax, docs@python priority: normal severity: normal status: open title: Recommend using pprint for deterministic doctest type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file33560/pprint_doctest.patch ___ Python tracker <http://bugs.python.org/issue20310> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20351] Add doc examples for DictReader and DictWriter
New submission from Charles-Axel Dein: IMO csv.DictWriter and csv.DictReader provides a nicer interface for complex CSV file. I see some people reinventing the DictReader and DictWriter pretty frequently, because when they rapidly scan the documentation all examples are about csv.reader and csv.writer. This patch adds examples. -- assignee: docs@python components: Documentation files: add_csvdict_examples.patch keywords: patch messages: 208835 nosy: charlax, docs@python priority: normal severity: normal status: open title: Add doc examples for DictReader and DictWriter Added file: http://bugs.python.org/file33629/add_csvdict_examples.patch ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20351] Add doc examples for DictReader and DictWriter
Charles-Axel Dein added the comment: Updated patch following review. -- Added file: http://bugs.python.org/file34110/add_csvdict_examples.patch ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20351] Add doc examples for DictReader and DictWriter
Charles-Axel Dein added the comment: Any update? -- ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20351] Add doc examples for DictReader and DictWriter
Charles-Axel Dein added the comment: Sounds good. Do you know when this will get merged? -- ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23586] Add classproperty to the builtin functions
New submission from Charles-Axel Dein: Similar to http://bugs.python.org/issue20659 Having a behavior that is similar to a property on a class seems intuitive enough. Is there any specific reason why it does not exist? -- messages: 237227 nosy: charlax priority: normal severity: normal status: open title: Add classproperty to the builtin functions type: enhancement ___ Python tracker <http://bugs.python.org/issue23586> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com