[issue35404] Document how to import _structure in email.message

2018-12-04 Thread Charles-Axel Dein
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

[issue23586] Add classproperty to the builtin functions

2015-03-04 Thread Charles-Axel Dein
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

[issue20351] Add doc examples for DictReader and DictWriter

2014-11-02 Thread Charles-Axel Dein
Charles-Axel Dein added the comment: Sounds good. Do you know when this will get merged? -- ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Pytho

[issue20351] Add doc examples for DictReader and DictWriter

2014-07-28 Thread Charles-Axel Dein
Charles-Axel Dein added the comment: Anything else I need to do? -- ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailin

[issue20351] Add doc examples for DictReader and DictWriter

2014-06-26 Thread Charles-Axel Dein
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/issue20

[issue20351] Add doc examples for DictReader and DictWriter

2014-04-18 Thread Charles-Axel Dein
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/issue20

[issue20351] Add doc examples for DictReader and DictWriter

2014-04-10 Thread Charles-Axel Dein
Charles-Axel Dein added the comment: Hey - is there anything else I need to do here? -- ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bug

[issue20351] Add doc examples for DictReader and DictWriter

2014-03-04 Thread Charles-Axel Dein
Charles-Axel Dein added the comment: Any update? -- ___ Python tracker <http://bugs.python.org/issue20351> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20351] Add doc examples for DictReader and DictWriter

2014-02-16 Thread Charles-Axel Dein
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/issue20

[issue20351] Add doc examples for DictReader and DictWriter

2014-01-22 Thread Charles-Axel Dein
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

[issue20310] Recommend using pprint for deterministic doctest

2014-01-19 Thread Charles-Axel Dein
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

[issue3722] print followed by exception eats print with doctest

2008-12-05 Thread Charles-Axel Dein
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