R. David Murray added the comment:
I plan to take a look at this and other email bugs during the Pycon sprints, if
not before.
--
___
Python tracker
<http://bugs.python.org/issue11
Changes by R. David Murray :
--
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
superseder: -> input() has trailing carriage return on windows
___
Python tracker
<http://bugs.python
R. David Murray added the comment:
This patch isn't going to be accepted, so I'm closing the issue. Someone else
can propose a different wording in a new issue if they wish.
--
resolution: -> rejected
stage: -> committed/rejected
status
R. David Murray added the comment:
I believe you are looking for mode 'r|'.
--
nosy: +r.david.murray
resolution: -> works for me
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs
R. David Murray added the comment:
Thanks for the patch!
--
resolution: -> fixed
stage: needs patch -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by R. David Murray :
--
nosy: +orsenthil, r.david.murray
___
Python tracker
<http://bugs.python.org/issue11467>
___
___
Python-bugs-list mailing list
Unsub
R. David Murray added the comment:
I think perhaps the language in the language reference is a bit misleading.
The purpose of the raw string algorithm is that any characters in the string be
copied literally into the string object. That is, \" "escapes" the " not so
R. David Murray added the comment:
If you do a "def foo" in module bar.py, and have a class FooFoo in bar.py, and
do:
FooFoo.myfoo = foo
and foo refers to an unbound variable, that variable will be looked up in
bar.py's global name space.
If instead the 'def foo'
R. David Murray added the comment:
If I'm remembering the discussion I read correctly, what the parser does is to
parse the a regular string and a raw string in exactly the same way, but in the
raw string case, it does not do the subsequent escape sequence replacement pass
on the p
R. David Murray added the comment:
Well, I don't think we are going to add an abort method in order to write a
unit test, though it isn't completely out of the question.
However, I've now looked at the code and the other comments in the file, and it
is clear that great care is
R. David Murray added the comment:
Gah. I always check to see if the patch uploaded before I delete my working
copy, but this time I didn't :( :(
I guess I'll come back to this during the sprints.
--
___
Python tracker
<http://bu
R. David Murray added the comment:
Well, it's still the case that the Python raw string syntax isn't going to
change to not escape the quotes, because that would break far too many existing
applications that depend on them being escaped. So a new string literal type
would seem
R. David Murray added the comment:
Unfortunately we don't have enough history information to determine who wrote
the original _bencode function, although very likely it was Barry. As for the
test, that seems to have been written during the python3 translation to make
sure that the beh
Changes by R. David Murray :
--
assignee: -> r.david.murray
___
Python tracker
<http://bugs.python.org/issue11049>
___
___
Python-bugs-list mailing list
Un
Changes by R. David Murray :
--
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/issue968430>
___
___
Python-bugs-list m
R. David Murray added the comment:
I think whatever change we make it should be backward compatible, even though
that is a bit annoying (especially given the current method name). So either a
parameter that selects the new behavior and defaults to the old, or a new
method that returns a
New submission from R. David Murray :
Here is a proposed addition to the tutorial noting the problem with using raw
strings for windows paths and how to work around it.
--
assignee: docs@python
components: Documentation
files: tutorial-raw-string.patch
keywords: patch
messages: 130720
R. David Murray added the comment:
I've opened issue 11479 with a proposed patch to the tutorial along the lines
suggested by Graham.
--
___
Python tracker
<http://bugs.python.org/i
R. David Murray added the comment:
Well, the problem with both [:-1] and os.path.join is that they are
inappropriate for that section of the tutorial. I considered putting the
discussion later in the section so that I could use [:-1] (which hasn't been
introduced at that point), but it
R. David Murray added the comment:
Well, the problem with the reference is that the language reference is intended
as a specification document, not a tutorial, so such a discussion does not
belong there. The library reference, which does contain platform-specific and
tutorial-like
Changes by R. David Murray :
--
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue1590
Changes by R. David Murray :
--
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue975
Changes by R. David Murray :
--
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue1681
Changes by R. David Murray :
--
versions: +Python 2.7, Python 3.1, Python 3.3
___
Python tracker
<http://bugs.python.org/issue2658>
___
___
Python-bugs-list mailin
Changes by R. David Murray :
--
versions: +Python 2.7, Python 3.1, Python 3.3
___
Python tracker
<http://bugs.python.org/issue1690608>
___
___
Python-bugs-list m
Changes by R. David Murray :
--
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue1443875>
___
___
Python-bugs-list mailin
Changes by R. David Murray :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue504152>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue1440472>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue1079>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
resolution: -> accepted
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.org/
New submission from R. David Murray :
test_subprocess was failing for me on my laptop, and my laptop only. With some
guidance from haypo on using strace, I tracked the problem down to the fact
that the last directory in my path is a directory to which I don't have
permission. So the
Changes by R. David Murray :
--
assignee: -> r.david.murray
___
Python tracker
<http://bugs.python.org/issue11490>
___
___
Python-bugs-list mailing list
Un
Changes by R. David Murray :
--
resolution: -> fixed
stage: needs patch -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
R. David Murray added the comment:
Patch looks good to me.
--
assignee: -> r.david.murray
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issu
Changes by R. David Murray :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue1025395>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue8769>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue9967>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue1823>
___
___
Python-bugs-list mailing list
Unsub
Changes by R. David Murray :
--
versions: +Python 3.2, Python 3.3 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue10574>
___
___
Python-bugs-list m
R. David Murray added the comment:
Assuming this is correct (I haven't tried looking for the reference yet), I'm
leaning toward it being enough of a behavior change that it should not be
backported.
--
versions: +Python 3.3 -Python 2.7, Python 3.1,
Changes by R. David Murray :
--
versions: +Python 3.2
___
Python tracker
<http://bugs.python.org/issue5803>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.org/issue11050>
___
___
Python-bugs-list m
R. David Murray added the comment:
Hmm. It seems to me that in this case the test *should* fail, since it
indicates a broken Python installation. How about instead catching the error
in the test and calling self.fail with the error and an additional message
about making sure configure has
R. David Murray added the comment:
MvL explained that there is a configure tests that makes the existence of this
routine optional. So the skip is appropriate, but the message should read
something like "the clear history tests cannot be run because the clear_history
method is not avai
R. David Murray added the comment:
Here is a patch that adds a footnote explaining the issue.
--
keywords: +patch
Added file: http://bugs.python.org/file21117/gen_not_quite_idem.patch
___
Python tracker
<http://bugs.python.org/issue1440
R. David Murray added the comment:
The tests for this function are...not sufficient. I don't think I'm
comfortable committing a patch without improving the tests. Ideally there
would also be a test that the locale does not affect the result, which would
need to be skipped if
Changes by R. David Murray :
--
assignee: -> r.david.murray
___
Python tracker
<http://bugs.python.org/issue11496>
___
___
Python-bugs-list mailing list
Un
R. David Murray added the comment:
Thanks.
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
type: crash -> behavior
versions: +Python 3.2
___
Python tracker
<http://bugs.python
R. David Murray added the comment:
Yes, if it is not actually an RFC non-compliance I'd rather not backport it,
but I'm not averse to changing it. I'm open to argument about backporting
though...if you know of spam filters that actually do count
R. David Murray added the comment:
How does assertRaisesRegex address the use case in issue 3583?
--
___
Python tracker
<http://bugs.python.org/issue10
R. David Murray added the comment:
It exists, but clearly it is broken. I'll look in to it.
--
assignee: -> r.david.murray
stage: -> needs patch
type: -> behavior
versions: +Python 3.1, Python 3.2, Python 3.3
___
Python
R. David Murray added the comment:
It looks to me like description is still missing from the docstring, at least
on python3 tip.
--
___
Python tracker
<http://bugs.python.org/issue8
Changes by R. David Murray :
--
stage: -> patch review
type: behavior -> feature request
___
Python tracker
<http://bugs.python.org/issue11511>
___
___
Pyth
R. David Murray added the comment:
I don't think we have any committers who run NetBDS. Can you attach your patch
here? I take it the other NetBSD checks are still required?
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.py
R. David Murray added the comment:
Here is a patch that adds tests for the methods I didn't previous have test
for. There may still be some headers that I'm not testing for the 'contains
binary' case, but this is certainly more comprehensive than we had before.
Please
Changes by R. David Murray :
--
assignee: -> r.david.murray
___
Python tracker
<http://bugs.python.org/issue11555>
___
___
Python-bugs-list mailing list
Un
Changes by R. David Murray :
--
assignee: -> r.david.murray
___
Python tracker
<http://bugs.python.org/issue11556>
___
___
Python-bugs-list mailing list
Un
Changes by R. David Murray :
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by R. David Murray :
--
versions: +Python 3.1, Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/issue11555>
___
___
Python-bugs-list m
Changes by R. David Murray :
--
versions: +Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/issue11556>
___
___
Python-bugs-list mailin
R. David Murray added the comment:
Fixed, thanks.
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by R. David Murray :
--
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
type: -> behavior
___
Python tracker
<http://bugs.python
R. David Murray added the comment:
I've committed the patch as is. We'll address improving the semantics one way
or another as part of email6 development.
--
resolution: -> fixed
stage: patch review -> committed/rejected
status
R. David Murray added the comment:
Raymond, it looks like you committed this fix separately to the 3.2 branch and
the default branch, instead of committing to 3.2 and then merging to default.
With svn, this wasn't a big deal, but with mercurial it will leave the 3.2
changeset unmerged
R. David Murray added the comment:
It turns out this is a bug in 3.1, not something introduced by email5.1 in 3.2.
The minimum reproducer is stringifying any message containing a header with no
body.
--
stage: -> needs patch
versions: +Python
Changes by R. David Murray :
Removed file: http://bugs.python.org/file21043/issue11298_py2.7.patch
___
Python tracker
<http://bugs.python.org/issue11298>
___
___
Pytho
R. David Murray added the comment:
Drat, I accidentally deleted the patch file. Reattaching.
--
nosy: +r.david.murray
Added file: http://bugs.python.org/file21234/issue11298_py2.7.patch
___
Python tracker
<http://bugs.python.org/issue11
R. David Murray added the comment:
Steffen, these look like different kinds of errors than the one you reported in
this ticket. If they are, could you open a new issue? Either way, simple
reproducers would be the most helpful.
--
___
Python
R. David Murray added the comment:
This fix reveals a second bug. Without this fix, a non-existent file raises an
IOError with an appropriate error message, but with the chained exception.
After this fix, it raises an error that says 'not a gzip file', which while
technically t
R. David Murray added the comment:
Note that the code in question was changed to the form with the bugs in 3.2, so
this fix does not need to be backported to 3.1. The test could be, though.
--
components: +Library (Lib) -Interpreter Core
title: Infinite recursion around raising an
Changes by R. David Murray :
--
type: crash -> behavior
versions: +Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/issue11548>
___
___
Python-
Changes by R. David Murray :
--
nosy: +vinay.sajip
___
Python tracker
<http://bugs.python.org/issue11557>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
+1 for providing a way to autogenerate the message.
--
___
Python tracker
<http://bugs.python.org/issue1559549>
___
___
Pytho
R. David Murray added the comment:
I talked with Barry, who could find no relevant discussions in his email logs.
We decided that _bencode was misguided in the first place (this is reinforced
by the bug I fixed a year ago where email was stripping the final newline off a
body *after
R. David Murray added the comment:
We commented out a few of the tests because they took too long to run due to
the large default loop count. timeit would have to be further modified to
support testing the default, which probably isn't worth it.
--
resolution: -> accept
R. David Murray added the comment:
OK, now this bit works like it did in Python2.
--
resolution: -> fixed
stage: needs patch -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by R. David Murray :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue11578>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by R. David Murray :
--
nosy: +mark.dickinson
___
Python tracker
<http://bugs.python.org/issue4114>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
Steffen, what you are doing in 11243-test is not something that the current
email package supports. String input to message_as_string must be ASCII only
in email 5.1/python3.2. Likewise for decode_header. To get unicode in to a
header, you have to pass
R. David Murray added the comment:
I'm closing this issue. If you have a specific test case that is still
failing, please open a new issue. And thanks for testing this fix.
--
resolution: -> fixed
stage: patch review -> committed/rejected
status: ope
R. David Murray added the comment:
I'm rejecting this. There is more than one bug here, but it starts with the
fact that ('xxx', None) is treated the same as ('xxx', 'us-ascii'). In the
first case it would be nice if a space was used to separate two of th
R. David Murray added the comment:
Yes, I can well understand that feeling. I've only relatively recently taken
over maintaining the email package. I'm working my way through the old bug
queue, and I can only deal with them in the context in which I
R. David Murray added the comment:
I don't see a test case here, did you forget to attatch something?
Also, in this:
elf._msg[n] = email.header.make_header(email.header.decode_header(b))
unless 'b' is an ASCII-only string, it isn&
Changes by R. David Murray :
--
assignee: -> r.david.murray
stage: -> test needed
type: -> behavior
versions: +Python 3.2
___
Python tracker
<http://bugs.python.or
R. David Murray added the comment:
If the message contains 8bit bytes in a header, then getitem is going to return
a Header object. decode_header does not operate on Header objects, as you have
observed. Thinking about it some more, having decode_header operate on a
Header and return its
R. David Murray added the comment:
I talked to Martin. He wants the 2.5 mercurial branch to get *exactly* that
set of changes that needs to be applied to the svn repository in order for him
to build the security release, no more no less. Note that 2.5 goes out of
security maintenance in
R. David Murray added the comment:
Yes, although there may be another answer on the compile bug.
--
resolution: -> wont fix
stage: -> committed/rejected
status: open -> closed
type: -> behavior
___
Python tracker
<http://
R. David Murray added the comment:
I talked to Martin about this at the sprints. He wants the set of patches in
the 2.5 hg repo to be exactly those that he should apply to svn to build the
next release, no more no less. If someone wants to propose a patch that fixes
the hg compile but does
Changes by R. David Murray :
--
nosy: +benjamin.peterson
___
Python tracker
<http://bugs.python.org/issue11594>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
>>> str(u"\u0411")
Traceback (most recent call last):
File "", line 1, in
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0411' in position
0: ordinal not in range(128)
So, clearly
R. David Murray added the comment:
Well, python3 is probably pushing some people to try to add better unicode
support to their python2 versions. I think it is more a question of "is this
an easy fix?" or would it require extensive changes to support unicode
properly. If it is ea
R. David Murray added the comment:
Until unittest learns to do parameterized tests, it's nice to have each test be
separate so that you can easily see which test cases are failing. (A number of
the existing email tests have a lot of tests in each "unit" test, and this can
R. David Murray added the comment:
I understand what you are saying, and I thought about that, too; but
you could say the same thing about any bug fix that makes code work that didn't
work before, yet we don't. So I guess you are right that it should be
discussed on
Changes by R. David Murray :
--
Removed message: http://bugs.python.org/msg131361
___
Python tracker
<http://bugs.python.org/issue11579>
___
___
Python-bugs-list m
R. David Murray added the comment:
I understand what you are saying, and I thought about that, too; but you could
say the same thing about any bug fix that makes code work that didn't work
before, yet we don't. So I guess you are right that it should be discussed on
Changes by R. David Murray :
--
assignee: -> r.david.murray
___
Python tracker
<http://bugs.python.org/issue9874>
___
___
Python-bugs-list mailing list
Un
Changes by R. David Murray :
--
assignee: -> r.david.murray
___
Python tracker
<http://bugs.python.org/issue11605>
___
___
Python-bugs-list mailing list
Un
Changes by R. David Murray :
--
assignee: -> r.david.murray
stage: -> patch review
type: -> behavior
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.or
R. David Murray added the comment:
I can reproduce this just using message_from_binary_file and BytesGenerator on
your input file, so thanks for attaching the email. I have a test in the test
suite that is *supposed* to test this, but clearly there is a case here that is
not being tested
R. David Murray added the comment:
Fixed now. Thanks, and sorry for the delay, and the confusion.
--
resolution: accepted -> fixed
stage: needs patch -> committed/rejected
___
Python tracker
<http://bugs.python.org/
3001 - 3100 of 12936 matches
Mail list logo