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
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
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
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
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
Changes by endolith :
--
title: Should not use mboxo format -> Mailbox module should not use mboxo format
___
Python tracker
<http://bugs.python.org/issu
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
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
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