New submission from W. Trevor King :
I had been struggling to find the failure-causing mismatch in a doctest with
lots of output. REPORT_UDIFF gave lots of false mismatches because I was also
using NORMALIZE_WHITESPACE. Looking through the doctest.py source, I saw a
comment suggesting a
W. Trevor King added the comment:
Here's my patch, or pull from my Mercurial repository
http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/python/rev/6638df20c1a4
--
keywords: +patch
Added file: http://bugs.python.org/file18575/doctest_diff.
New submission from W. Trevor King :
Python has had a parse_http_list helper since urllib2 landed in 6d7e47b8ea
(EXPERIMENTAL, 2000-01-20). With Python3 it was moved into urllib.request, and
the implementation hasn't changed since (at least as of 4c19b9573, 2018-03-05).
External pro
New submission from W. Trevor King :
Python currently strips backslashes from inside quoted strings:
$ echo 'a="b\"c",d=e' | python3 -c 'from sys import stdin; from
urllib.request import parse_http_list; print(parse_http_list(stdin.read()))'
['
W. Trevor King added the comment:
Since [1] it seems like subparsers *are* optional by default. At least I get
“error: too few arguments” for version 70740 of Lib/argparse.py, but no error
for version 70741. It looks like this may be an unintentional side effect,
since I see no mention of
New submission from W. Trevor King:
Avoid:
Traceback (most recent call last):
File "setup.py", line 61, in
'html2text (>=3.0.1)',
File "/.../python3.2/distutils/core.py", line 148, in setup
dist.run_commands()
File "/
W. Trevor King added the comment:
On Fri, Oct 11, 2013 at 05:21:15PM +, Ned Deily wrote:
> This problem has been reported previously as Issue17354, a duplicate
> of Issue12853 which is still open at the moment.
Ah, I searched for a fwe possible subject lines, but didn't hit t
W. Trevor King added the comment:
I just posted a patch fixing this in the current master branch [1]. Ned Deily
pointed out that my Issue19226 duplicated an earlier Issue17354, which also has
a patch fixing this problem. Merging either one of these patches should close
this issue. I like
New submission from W. Trevor King :
I don't imagine this comes up very often, but:
$ mkdir /tmp/a; cd /tmp/a; rmdir /tmp/a; python -c 'import site';
rmdir: removing directory, /tmp/a
'import site' failed; use -v for traceback
Traceback (most recent call last):
Fi
W. Trevor King added the comment:
I just fixed it myself ;). As I said before, not really a big deal, but it was
an easy fix. I've attached a patch, or you can merge my hg branch f
python-trunk at
http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/python/
--
key
W. Trevor King added the comment:
As a workaround until the patch gets included, you can import this monkey patch
module.
--
nosy: +labrat
Added file: http://bugs.python.org/file18325/minidom.py
___
Python tracker
<http://bugs.python.org/issue5
W. Trevor King added the comment:
And while we're at it, we should also
.replace('&', '&').replace('"', """).replace('<', '<')
which would have to go at the beginning to avoid double-escaping th
W. Trevor King added the comment:
Here's an example from the notmuch list. You can trigger the exception in
Python 3.4 with:
>>> import email.policy
>>> import mailbox
>>> mbox = mailbox.mbox('msg.mbox', factory=None, create=False)
>>&
W. Trevor King added the comment:
The troublesome header formatting is:
>>> import email.policy
>>> email.policy.SMTP.fold_binary('Cc',
'notmuch\n\t,\n\tpublic-notmuch-gxuj+tv9eo5zyzon3hd...@plane.gmane.org,\n\tRainer
M Krug ,\n\tJeremy
Nickurak\n\t
W. Trevor King added the comment:
In email._header_value_parser._Folded.append_if_fits, if I shift:
if token.has_fws:
ws = token.pop_leading_fws()
if ws is not None:
self.stickyspace += str(ws)
stickyspace_len
New submission from W. Trevor King:
With the current tip, starttls uses ._host when calling wrap_socket [1], but
._host is only setup in SMTP.__init__ [2]. Before #22921 [3] starttls would
ignore ._host when SNI wasn't available locally. But as far as I can tell,
starttls has never
New submission from W. Trevor King:
In the recently-landed [1],
There was also the Unladen Swallow project, but it was abandonned in 2011.
Should have used “abandoned” instead of “abandonned”.
[1]: https://hg.python.org/peps/rev/b463c740990c
changeset: 6155:b463c740990c
user
17 matches
Mail list logo