R. David Murray added the comment:
Yeah, obviously that language can be improved. 'exactly' was meant to imply
'nothing but', but clearly it doesn't.
If we want to restore more stringent backward compatibility and allow trailing
text, it would be possible to
Changes by R. David Murray :
--
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue10390>
___
___
Pyth
R. David Murray added the comment:
Committed in r86414.
--
nosy: -BreamoreBoy
resolution: -> accepted
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.org/
R. David Murray added the comment:
Right, regardless of whether or not it is a bug in python, IMO it *is* a bug in
the python test suite, since we *expect* buildbots to be long running processes
and therefore they are going to get hit by this failure on OSX periodically
with a pretty high
Changes by R. David Murray :
--
priority: high -> normal
___
Python tracker
<http://bugs.python.org/issue7900>
___
___
Python-bugs-list mailing list
Unsubscri
R. David Murray added the comment:
In connection with another bug report I found a rather basic error in
parseaddr, so I'm going to eventually dig far enough into the RFC to have a
real opinion on the elided-space issue.
--
___
Python tr
R. David Murray added the comment:
Well, the distinction is that, before the bug fix that caused your issue, the
'format_string' method would use a regex to extract the % specifiers from the
input string, and call 'format' to replace that % specifier with a properly
loc
R. David Murray added the comment:
Committed (as a warning) in r86419. Thanks, Chris.
--
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.org/
R. David Murray added the comment:
Yes, simply saying "make it consistent" is a won't fix, because of backward
compatibility issues. Specific proposals for specific functions in a way that
deals with the backward compatibility issues should be opened as new issues.
R. David Murray added the comment:
Vinay, your example with communicate only works because you removed the [:-1].
If you run your version against a debug build, the tests will fail.
I'm updating the patch with a version that works with both a non-debug and a
debug build, and ad
R. David Murray added the comment:
Indeed, as I remember it there are people using commonprefix as a string
function in situations having nothing to do with os paths.
I'm changing the title to reflect the fact that this is really a feature
request for a new function. IMO it is a reaso
R. David Murray added the comment:
Why do you consider this a bug in GZipFile rather than a bug in Django?
GZipFile is already careful to consider mode only when it is defined as an
attribute. It seems to me that if it is defined, it should be meaningful.
--
nosy: +pitrou
R. David Murray added the comment:
I'm -1 on your second case. That syntax is too magical, especially since a
test method can appear on more than one test case.
The additional pattern matching suggestion is more interesting, but it would be
necessary to implement that in unittest,
R. David Murray added the comment:
This is a duplicate of issue 2571. If after reading that discussion you have
ideas about and interest in working on the feature request as suggested, you
may either comment on that one or open a new feature request, whichever seems
clearer to you.
Note
R. David Murray added the comment:
No, the __init__ argument default value is the standard way of indicating "this
argument was not specified". It is not in any way a value for 'mode'.
--
status: open -> closed
__
R. David Murray added the comment:
Yes. However, if None were a valid value for mode, then the would would
instead do something like:
SENTINEL = object()
class GZipFile...
def __init__(self, filename=None, mode=SENTINEL, ...
and then where None currently appears in the logic of the
R. David Murray added the comment:
Is this a duplicate of #1293741? That issue was closed as out of date, but I'm
not 100% convinced that was the correct closure. What do you think?
Does it still happen with 2.7? (2.6 is in security fix only mode.)
--
nosy: +r.david.m
Changes by R. David Murray :
--
nosy: +pitrou
___
Python tracker
<http://bugs.python.org/issue10418>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
Ronald hasn't replied yet and he's the most likely to be in a position to try
to reproduce it.
Even if you can't fix it, figuring out more about how that individual test is
arriving at the hang could be useful. If you've got the chops
R. David Murray added the comment:
No, because that patch doesn't document the special inheritance rules for
__doc__ (which are uniquely special even among special methods). Now, exactly
where one would want to document those rules, I'm not sure.
--
nosy: +r.da
R. David Murray added the comment:
I agree with you, Pascal, but I think Nick is saying that that information is
not actually available. I don't fully understand why, but he knows vastly more
about Python internals than I do so I'll take his word for it.
It might be interest
R. David Murray added the comment:
I would recommend posting to the python mailing list (see mail.python.org for a
list of the mailing lists and subscribe to python-list). The bug tracker isn't
a place to get help, but you might also try searching for windows idle bugs,
since as I r
R. David Murray added the comment:
Ronald, on a normal unix system if you add a user to a group, any existing
process/terminal session that runs 'id -G' will return the *old* group list.
Only a new process/terminal session will see the new group.
On OSX, 'id -G' return
R. David Murray added the comment:
I agree with Stephen. The test in question is *not a valid test* on OSX.
Therefore on OSX it should be skipped.
If you can think of a way to test the actual behavior of getgroups on OSX,
that's even b
R. David Murray added the comment:
Having just reread this issue more carefully, my understanding is that Ronald
had elected to make the results returned from os.getgroups match that returned
by "system tools" (by which I understood him to mean the 'id' command). Sinc
New submission from R. David Murray :
Per issue 7900, os.getgroups on OSX does not behave the same way as on any
other unix platform. This seems worthy of a documentation note, since anyone
trying to write portable code could get bit by this.
I don't really understand the relationship o
R. David Murray added the comment:
And it's entirely possible (even likely) that what Stephen is seeing here is a
platform bug in OSX's quirky implementation of group management.
--
___
Python tracker
<http://bugs.python.
Changes by R. David Murray :
--
nosy: +ned.deily, ronaldoussoren
___
Python tracker
<http://bugs.python.org/issue10433>
___
___
Python-bugs-list mailing list
Unsub
Changes by R. David Murray :
--
nosy: +michael.foord
___
Python tracker
<http://bugs.python.org/issue10433>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
IMO this follows logically from Python's self-consistent rules. I'm not
convinced that the amount of extra verbiage required to detail this particular
case would make the docs clearer, but you are welcome to suggest a wording for
us t
R. David Murray added the comment:
Woops, I see you did suggest a wording. However, what you wrote is imprecise
and confused me when I first read it (I thought you meant that self.f() didn't
work!).
--
___
Python tracker
<http://bugs.py
R. David Murray added the comment:
Only because you don't *have* self. Which is why I said "imprecise" and not
"incorrect" :)
--
___
Python tracker
<http:
R. David Murray added the comment:
Perhaps.
You can help narrow this down by doing the following: In your program do a
'print msg.as_string()' and see if you see the ! problem there.
If not, try using several different SMTP servers to send your email. If the !
problem shows up w
R. David Murray added the comment:
This sounds like a reasonable feature request. If you would like to propose a
patch against trunk (py3k, what will become 3.3), I will take a look at it.
--
nosy: +r.david.murray
stage: -> needs patch
type: -> feature request
versions: +Pyth
R. David Murray added the comment:
The traceback you point to seems to indicate the getheaders call is in your
code.
Can you provide a minimal test case that demonstrates the failure mode you are
concerned about?
--
nosy: +r.david.murray
R. David Murray added the comment:
I agree that the docs for import_fresh_module are confusing. The code says
there are sanity checks in test_heapq and test_warnings, so that code could
presumably be used as a model for someone to develop a more complete
stand-alone test (I haven't l
R. David Murray added the comment:
If a patch had been proposed it probably would have gotten in to 3.2. Maybe
someone (perhaps you?) will find the time before 3.2.1.
Someone has decided to work on the bz2 rewrite, by the way (issue 5863
R. David Murray added the comment:
Yes, a clear definition of the minimum requirements for being wrapped by
TextIOWrapper sounds like a necessary thing to have (and I'd be inclined to
agree with your assertion, but I didn't work on the IO library :). It would be
best to open a new
R. David Murray added the comment:
I don't think that new_child and parents are too specialized at all, indeed
they are essential to one of the primary use cases for the construct. I find
Django's push and pop much more intuitive than new_child and parents, however,
and would pr
R. David Murray added the comment:
Yes, that's part of what I find more intuitive about it. I think of the
chainmap as a stack. Perhaps if I had a different application (I would use it
for either configuration or namespace management) I'd want a different API, but
for those two
R. David Murray added the comment:
Your example got a little messed up.
>>> list(io.StringIO('print 1\n\x0cprint 2\n\n'))
['print 1\n', '\x0cprint 2\n', '\n']
>>> 'print 1\n\x0cprint 2\n\n'.splitlines(True)
['print 1\n&
R. David Murray added the comment:
On the other hand, I believe io is documented as only recognizing /r and /n, so
its behavior matches its documentation.
--
___
Python tracker
<http://bugs.python.org/issue11
R. David Murray added the comment:
"newline controls how universal newlines works (it only applies to text mode).
It can be None, '', '\n', '\r', and '\r\n'..."
Whereas splitlines says:
"Return a list of the lines in the string, brea
R. David Murray added the comment:
Creating a test for this may not be practical :(
--
assignee: -> r.david.murray
nosy: +r.david.murray
stage: -> needs patch
___
Python tracker
<http://bugs.python.org/i
Changes by R. David Murray :
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue11316>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
type: behavior -> feature request
versions: +Python 3.3 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue11316>
___
_
R. David Murray added the comment:
Read a little further:
Caution: within a method of C, an assignment like ``self.count = 42``
creates a new and unrelated instance named "count" in ``self``'s own dict.
That is, c.count refers to C.count right up until the point w
R. David Murray added the comment:
Hmm. Rereading your message, is seems like you just didn't understand the
statement "c.count refers to C.count for any...". That is a statement about
how the language behaves. If there is not yet an instance variable 'count',
bu
R. David Murray added the comment:
Ah, yes, you are correct. We must reject this, then, since 2.7 is now feature
frozen and this is a feature request.
--
resolution: -> out of date
stage: -> committed/rejected
___
Python tracker
R. David Murray added the comment:
Yes, thanks for that.
--
___
Python tracker
<http://bugs.python.org/issue11316>
___
___
Python-bugs-list mailing list
Unsub
R. David Murray added the comment:
Please consult the python tutor's list, the bug tracker is not the place to get
introductory help with Python.
--
___
Python tracker
<http://bugs.python.org/is
R. David Murray added the comment:
I just wound up doing a bit of research on this for other reasons. Piers
Lauder was the original author of the imaplib module, and he is (as far as I
can tell) currently maintaining an imaplib2 module that does support IDLE (but
not, I think, python3
R. David Murray added the comment:
I'm -1 on this feature request. I think it is an unnecessary complication of
the API, especially since dirname corresponds to the unix shell 'dirname'
command, which doesn't have such a feature. If you need this feature in a
particula
R. David Murray added the comment:
No, it isn't a design principle. My point was that unix hasn't found it useful
to add a level option to the dirname API.
I don't know that I personally have ever had occasion to peel off more than one
directory level without also wanting
Changes by R. David Murray :
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue11348>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
Can you construct a test case that demonstrates the corruption?
--
nosy: +r.david.murray
stage: -> test needed
___
Python tracker
<http://bugs.python.org/issu
R. David Murray added the comment:
We could, however, raise SkipTest if getpriority returns 19 or higher with a
message like "unable to reliably test setpriority at current nice level of NN".
My guess is that no system we support has a lower upper limit on nice. If
someon
R. David Murray added the comment:
To be clear: raise SkipTest if prio is 19 or above *and* the increment fails.
--
___
Python tracker
<http://bugs.python.org/issue11
Changes by R. David Murray :
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue11355>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
This would increase the overhead to no purpose, as far as I can see.
Ask or Jesse can reopen this if they think it is worth considering.
--
nosy: +asksol, jnoller, r.david.murray
resolution: -> rejected
status: open ->
R. David Murray added the comment:
Is there an IANA registration for this? Any other standards references to it
would be helpful, if it doesn't. See issue 10730 for an example of the
research that went in to the last mimetypes addition.
--
nosy: +r.david.murray
versions: -P
R. David Murray added the comment:
Committed to py3k in r88730, 3.2 in r88731, and 2.7 in r88732.
I tested it by hand; mbox open failed before patch, succeeded (read-only) after
patch. I also changed two other cases of EACCES tests without testing them; I
don't see how it could hurt t
R. David Murray added the comment:
Amazing. This issue is unreported for years, Victor fixes it in python3, and
*then* we get two bug reports for it against 2.7 in as many months :)
Anyway, this is a duplicate of issue 11098. If you have a real use case for
this, we can consider a backport
R. David Murray added the comment:
Ah, I'm wrong, this has been reported earlier issue 707576.
--
___
Python tracker
<http://bugs.python.org/is
Changes by R. David Murray :
--
assignee: -> r.david.murray
___
Python tracker
<http://bugs.python.org/issue11401>
___
___
Python-bugs-list mailing list
Un
R. David Murray added the comment:
Ah, yes, splitpath is a function I've occasionally wanted. I also remember
being surprised that os.path.split didn't return such a list.
--
___
Python tracker
<http://bugs.python.o
R. David Murray added the comment:
Note that email.message works (and is the preferred spelling) since Python2.5.
--
nosy: +benjamin.peterson, r.david.murray
___
Python tracker
<http://bugs.python.org/issue11
Changes by R. David Murray :
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue11416>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
901 - 1000 of 10554 matches
Mail list logo