[issue3332] DocTest and dict sort.

2014-08-29 Thread endolith
endolith added the comment: The fundamental purpose of doctest is to test that examples in documentation work correctly: > To check that a module’s docstrings are up-to-date by verifying that all > interactive examples still work as documented. >To perform regression t

[issue3332] DocTest and dict sort.

2014-08-27 Thread endolith
endolith added the comment: I ran into this bug with sets, too. Expected: {6, 5, 3} Got: set([5, 3, 6]) Documentation should illustrate how the function is actually meant to be used, not contrived examples that convert to sorted output purely so that doctest can understand them

[issue13698] Mailbox module should support other mbox formats in addition to mboxo

2012-06-25 Thread endolith
endolith added the comment: > - If the mailbox is written using the mboxrd format and read using the mboxo > format, lines that were meant to start with ">From " are changed to ">>>From > ". This is a new type of corruption. Well, yes. So the c

[issue13698] Mailbox module should support other mbox formats in addition to mboxo

2012-04-29 Thread endolith
endolith added the comment: Ok. I'm not sure what backwards compatibility issues would exist, though. The only difference is that mboxrd converts "\nFrom " → "\n>From " "\n>From " → "\n>>From " making the conversion reversible, while

[issue14694] Option to show leading zeros for bin/hex/oct

2012-04-29 Thread endolith
New submission from endolith : Suggestion: Add an option to bin/hex/oct functions to format binary output with a minimum fixed width, including leading zeros. Also might be useful for hex and oct. Currently, bin(18) produces '0b10010' with this change, something like bin(18, fo

[issue13698] Mailbox module should not use mboxo format

2012-01-02 Thread endolith
Changes by endolith : -- title: Should not use mboxo format -> Mailbox module should not use mboxo format ___ Python tracker <http://bugs.python.org/issu

[issue13698] Should not use mboxo format

2012-01-02 Thread endolith
New submission from endolith : The documentation states: "Several variations of the mbox format exist to address perceived shortcomings in the original. In the interest of compatibility, mbox implements the original format, which is sometimes referred to as mboxo." http://docs.pyth

[issue3907] "for line in file" doesn't work for pipes

2008-09-18 Thread endolith
New submission from endolith <[EMAIL PROTECTED]>: One of the principles of Python is that "There should be one-- and preferably only one --obvious way to do it." It seems that the "for line in file" idiom is The Way to iterate over the lines of a file, and older

[issue3544] "expection" typo

2008-08-11 Thread endolith
New submission from endolith <[EMAIL PROTECTED]>: http://docs.python.org/lib/typecontextmanager.html "if any expection that occurred should be suppressed" -- assignee: georg.brandl components: Documentation messages: 71035 nosy: endolith, georg.brandl severity: nor