R. David Murray added the comment:
I'm not sure we would consider this a bug (the message is accurate), but I
wouldn't object to fixing it, since that would indeed seem more consistent with
how __delitem__ and del are defined in the language reference.
--
nosy: +r.da
Changes by R. David Murray :
--
versions: +Python 3.7 -Python 3.6
___
Python tracker
<http://bugs.python.org/issue27413>
___
___
Python-bugs-list mailin
Changes by R. David Murray :
--
nosy: +qingyunha
___
Python tracker
<http://bugs.python.org/issue27413>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
This is a duplicate of issue 27413.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Add an option to json.tool to bypass non-ASCII characters.
__
Changes by R. David Murray :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by R. David Murray :
--
nosy: +brett.cannon, eric.snow, ncoghlan
___
Python tracker
<http://bugs.python.org/issue31210>
___
___
Python-bugs-list mailin
R. David Murray added the comment:
OK, that seems reasonable to me. I'll reopen the issue. Assuming other
developers agree that this should be changed, I'm not sure if it will qualify
as a bug or an enhancement, so I'm leaving versions unselected for now :)
--
resolu
R. David Murray added the comment:
You mean to create the entries on sys.path that do not come from the PYTHONPATH?
--
___
Python tracker
<http://bugs.python.org/issue31
R. David Murray added the comment:
This is a duplicate of issue 27541.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Repr of collection's subclasses
___
Pyth
R. David Murray added the comment:
I'm not sure there is anything we should do here, then, because we are
conforming to the posix parsing for PATH in our PYTHONPATH implementation.
I think if you want to pursue this further you should take it to the
python-ideas mailing list. I'
R. David Murray added the comment:
By DELIM, you mean the shell ':'? As far as I've been able to determine there
is no way defined in posix to escape that character. If you can find one,
please let us know. (I think the same is true for the Windows semicolon bu
Changes by R. David Murray :
--
stage: needs patch -> backport needed
___
Python tracker
<http://bugs.python.org/issue30824>
___
___
Python-bugs-list mai
R. David Murray added the comment:
New changeset 8204b903683f9e0f037ccfaa87622716019914d7 by R. David Murray (Nate
Tangsurat) in branch 'master':
bpo-30824: Add mimetype for .json (#3048)
https://github.com/python/cpython/commit/8204b903683f9e0f037ccfaa876227
R. David Murray added the comment:
Yep, I figured that. That's why I suggested the clarification to the README,
if someone wants to generate a PR for it.
--
___
Python tracker
<http://bugs.python.org/is
Changes by R. David Murray :
--
title: !HAVE_CLOCK_GETTIME causes problems with _PyTime_FromTimespec ->
configure checks fail confusingly under --with-address-sanitizer if libasan is
missing
___
Python tracker
<http://bugs.python.org/issu
R. David Murray added the comment:
Replace "test_that_failed" with the name of the test that failed.
The README could be improved by saying:
If any tests fail, you can re-run the failing test(s) in verbose mode. For
example if, 'test_os' and 'test_gdb' failed,
R. David Murray added the comment:
Steve, when we changed installers was that when we also fixed the
security/permissions problems with the install dir? If permissions are the
issue the OP's problem may have nothing to do with it not bein
R. David Murray added the comment:
It is by design. Read the footnote associated with the subtraction opertion on
datetimes: after subtraction date2 + timedelta = date1, which implies that the
subtraction ignores daylight savings transitions, since the addition does
("Note that no time
R. David Murray added the comment:
I agree. The normal python convention is that an immutable object returns the
new value when an operation "changes" it, while a mutable object returns None.
It seems like replace and rename should follow this convention (and that it
wou
R. David Murray added the comment:
What makes you think this is a python bug rather than exactly what it says: a
cert verification error?
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue31
R. David Murray added the comment:
>>> while True:
... raise StopIteration
...
Traceback (most recent call last):
File "", line 2, in
StopIteration
--
nosy: +r.david.murray
___
Python tracker
<http://bugs
R. David Murray added the comment:
Both the replace and rename functions will remain in the API, as they mirror
the os module, not the os itself. I agree that the naming is unfortunate, but
it has the weight of history behind it, so we are stuck with it. Issue 24229
rejected adding a copy
R. David Murray added the comment:
The short answer is no. We no longer use the MSI installer.
Perhaps the windows experts will be interested in exploring why you can't use
the current installers, since they work for most people.
--
components: +Windows
nosy: +paul.
R. David Murray added the comment:
Ah, I see. We don't really support .pyc-only distribution, though we try not
to break it.
Do you want to propose a fix?
--
___
Python tracker
<http://bugs.python.org/is
R. David Murray added the comment:
What are you reporting as the bug here? 2to3 obviously can't work without the
source, so based just on what you have written here this sounds like an Azure
bug.
--
nosy: +r.david.murray
___
Python tracker
R. David Murray added the comment:
In fact, this ia a FAQ:
https://docs.python.org/3/faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-backslash
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue31
R. David Murray added the comment:
That seems like a reasonable use case, but is fnmatch what git is using for
this? If so, what is the feature set required? In any case, the existing
functionality must remain as is for backward compatibility reasons, so this
would either be a new function
Changes by R. David Murray :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue31129>
___
___
Python-bugs-list mailing list
Unsubscrib
R. David Murray added the comment:
For backward compatibility reasons this will not be changed. I don't know if
the idea of adding a method and doing a documentation deprecation is worth it
or not.
--
nosy: +lukasz.langa, r.david.murray
___
P
R. David Murray added the comment:
Closed issue 31127 as a duplicate of this one.
--
nosy: +Kevin Shweh
___
Python tracker
<http://bugs.python.org/issue5
R. David Murray added the comment:
This is a duplidate of issue 5996. It is not clear if we are going to treat it
as a bug or a doc bug.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> abstract class insta
R. David Murray added the comment:
I wonder if that explanation should be added to the doc section to which I
pointed. I thought I'd remembered something like that being in there, but it
isn't.
--
___
Python tracker
<http://bu
Changes by R. David Murray :
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue29427>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
The behavior is consistent:
>>> a = [1, 2]
>>> b = [3, 4]
>>> [(a, b) for a in a for b in b]
Traceback (most recent call last):
File "", line 1, in
File "", line 1, in
UnboundLocalError: local variable
R. David Murray added the comment:
By the way, if you want to open a doc issue with a suggestion of how to clarify
this in the docs, that would be welcome.
--
___
Python tracker
<http://bugs.python.org/issue31
R. David Murray added the comment:
No, it should not. A DBM is not necessarily a single file. What you should be
doing is creating a temporary *directory*, and opening your DB inside that.
--
components: +Library (Lib) -IO
nosy: +r.david.murray
resolution: -> rejected
st
R. David Murray added the comment:
Looking at the fnmatch man page, it looks like there are option flags that some
shells use that our fnmatch doesn't support. I'm not sure if supporting them
is a good idea for us or not, but it is probably worth discussing. I suspect
our f
Changes by R. David Murray :
--
type: behavior -> enhancement
versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6
___
Python tracker
<http://bugs.python.org/issu
R. David Murray added the comment:
I don't believe there is an equivalent unix command. Are you referring to the
fnmatch glibc function? Can you demonstrate the differences? I doubt we will
change the functionality, but that would be the minimum starting point for a
discu
Changes by R. David Murray :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Built-in list disappeared from Python 2.7 intersphinx inventory
___
Python tracker
<http://bugs.python
R. David Murray added the comment:
Yeah, different developers have different opinions. We discuss (I'd say argue,
which is accurate, but has acquired negative connotations) until we reach a
consensus. And if we don't reach a consensus we leave it alone ("status quo
w
R. David Murray added the comment:
It is intended. See issue 30554.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Inaccessible attribute characters_written on OSErr
R. David Murray added the comment:
Perhaps I'm missing something, but isn't this to be expected? Timer will run
d.popleft() repeatedly until you get the error you see because the list is
empty. Are you thinking that setup is run each time? That would defeat its
purpose.
-
R. David Murray added the comment:
The specialized use case is wanting to autogenerate a name with no other
information provided. You suggested csv as one example where this would be
used, but even in that case I'd rather see something based on the filename than
a mashup of field name
R. David Murray added the comment:
Yes, that is mostly likely why parseaddr operates the way it does. The old
email package does not do very much hand-holding, it expects you to understand
the RFCs, which as you note is a rather daunting task. The new email package
(the new policies) in
R. David Murray added the comment:
I think the "vaguely" pretty much says it, and you are the at least the first
person who has *requested* it :)
This is one of those cost-versus-benefit calculations. It is a specialized use
case, and in other specialized use cases the &quo
R. David Murray added the comment:
Ah, I take it back. With \n it retains the \n in the decoded name field.
There is a bug of some sort here (\r\n should be treated the same as \n, I
think, whatever way it is treated). I don't think this is worth addressing,
given that the new pol
R. David Murray added the comment:
parseaddr does what you expect if the message has been read using universal
newline mode (ie: the linesep is \n):
>>> parseaddr('"=?UTF-8?Q?Anita_=W4=86ieckli=C5=84ska_|_PATO_Nieruch?=\n
>>> =?UTF-8?Q?omo=C5=9Bci?=" &quo
R. David Murray added the comment:
Thanks for the report. Retitling because this has nothing to do with map:
>>> def foo(*args):
... raise TypeError('fake')
... yield 1
...
>>> foo(1, *foo())
Traceback (most recent call last):
File "", line
R. David Murray added the comment:
Agreed. Explicit is good.
--
___
Python tracker
<http://bugs.python.org/issue31065>
___
___
Python-bugs-list mailing list
Unsub
R. David Murray added the comment:
Yes we can add "otherwise return None". However it is pretty clear as is,
since "poll" implies an immediate return, and if there's no return code to
return, the logical value in Python to get back is None :)
---
R. David Murray added the comment:
Boy, I wasn't thinking very clearly when I wrote that.
As pointed out on the PR, tempfile.TemporaryDirectory of course returns a
TemporaryDirectory object. That's in the nature of Python. I was reading so
poorly that I didn't even no
R. David Murray added the comment:
I agree with Raymond. I'm not sure that adding roughly is going to decrease
the possibility of confusion, but I won't object to it.
In a way, it's too bad we didn't make the attribute lookup machinery look up
all dunder methods on
R. David Murray added the comment:
No, we understand the process, the problem is that except for the 'dev' docs,
the link would be to a branch other than master. That's the problem that we're
discussing.
Maybe instead of an edit link on non-dev docs we could have a mes
R. David Murray added the comment:
It actually returns the path, since "name" often means the last component of
the path. Just saying "path" might be confused with pathlib, though. So I
guess we'd have to say "returning its path as a string", which sounds
R. David Murray added the comment:
smtplib in 2.7 doesn't know anything about RFC822 or any of the replacement
RFCs. sendmail accepts a *string*, and doesn't understand or modify anything
about that string except the newlines. It is your responsibility not to *add*
the BCC header.
R. David Murray added the comment:
So you are saying that BytesIO has code that checks that its argument only has
a single reference and modifies the string in place when it can if so? You
can't depend on that in any other implementation of Python, and shouldn't
depend on it
R. David Murray added the comment:
I think Terry and his OP are reacting to the fact that "-190 % 12 == -10" looks
like it is saying that that expression is True in Python, which it is not (and
that's the point).
IMO, another issue is that "and then compilers that tru
R. David Murray added the comment:
I'm confused, I don't see how there can be any difference between (1) and (2).
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.o
R. David Murray added the comment:
Well, the reason one *might* consider a test failure as a release blocker (and
I'm not saying you should, I'm just explaining the possible logic) is that
distros would understandably like the test suite to pass before they include a
releas
R. David Murray added the comment:
I would take "actual file" as meaning the file the symlink points to, so I'd
say the documentation matches the implementation according to your description
of the two. The current docs actually say "refer to the same file or
directory&q
R. David Murray added the comment:
Right. We don't try to fix handling these kinds of exponential expressions.
This is a case of "don't do that" :)
(I don't know if the regex module is better at "handling" this kind of regex
bug.)
--
nosy: +r.da
R. David Murray added the comment:
However, our general policy is that we don't make such changes unless we are
also touching the code for other reasons. So I think using this PR as a base
for your feature PRs, and then committing everything together if they are
accepted, would be the w
R. David Murray added the comment:
Thanks for wanting to improve Python. However, the purpose of those function
is to *print* the result. They intentionally do not have return values.
All of the values that you would have these functions return are accessible via
attributes already
R. David Murray added the comment:
I think you change is appropriate given that the "equivalent to" for the built
in iterators contains the 'is' expression.
However, I also think we should drop that second whole paragraph, and in the
previous paragraph say ".
R. David Murray added the comment:
Getting input from python ideas is a great idea :)
--
___
Python tracker
<http://bugs.python.org/issue30576>
___
___
Python-bug
Changes by R. David Murray :
--
type: crash -> behavior
versions: +Python 3.6, Python 3.7
___
Python tracker
<http://bugs.python.org/issue30956>
___
___
Python-
R. David Murray added the comment:
I changed the title to reflect the problem, but note that I'm *assuming* it is
"greater than the default" that is the issue, I haven't actually tested that
theory.
--
title: ftplib socket timeout can't be handled -> ft
R. David Murray added the comment:
I would like to leave this issue open. It is clear that the behavior for long
timeouts does not match the docs, and that should be investigated if someone
has the motivation :)
--
resolution: works for me ->
stage: resolved ->
status:
R. David Murray added the comment:
This is a bug tracker for Python. 3.2 is out of maintenance, so such a
question is not appropriate for this forum. In any case it is an issue with
your install, not with Python itself, so again not appropriate for this forum.
You should ask for help on the
R. David Murray added the comment:
We don't need to burden Mark with doing a PR for this (unless he wants to).
This is a good new contributer practice issue :)
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/is
R. David Murray added the comment:
Given:
import socket
from ftplib import FTP
try:
ftp = FTP('host.i.know.will.hang.com', timeout=4)
except socket.timeout:
print('caught')
I see 'caught' printed on the console. However, if I increase the timeout to
400
R. David Murray added the comment:
There is, however, unittest2 on pypi that has most of the python3 features
backported.
--
___
Python tracker
<http://bugs.python.org/issue30
R. David Murray added the comment:
No. 2.7 is in maintenance mode and gets no new features.
--
nosy: +r.david.murray
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by R. David Murray :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<http://bugs.python.org/issue30
R. David Murray added the comment:
I do not have a strong opinion on this issue, but I share Martin's doubts that
it should be added. It certainly should not be on by default if it is added.
We should get input from other core devs.
--
nosy: +r.david.m
R. David Murray added the comment:
"things with __getitem__ are clearly iterable"
This is false. IMO it should be fixed in the glossary. It should say "or
__getitem__ method implementing sequence semantics". That plus the addition to
the Iterable docs w
R. David Murray added the comment:
Thanks for the suggestion, but I don't think so.
Python imports are not lazy. They are ordered. Python is an *interpreted*
language, so __subclasses__ is only going to hold those subclasses whose class
definitions have been executed. This is fundament
Changes by R. David Murray :
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
superseder: -> can't interpolate byte string with \x00 before replacement
identifier
___
Python tracker
<http://bugs.p
R. David Murray added the comment:
No, refusing to guess in this case is to believe the class's declaration that
it is an iterable if (and only if) it defines __iter__, which is the modern
definition of iterable. If that doesn't work when the object is iterated,
that's a b
R. David Murray added the comment:
Thanks for being interested in improving Python. Please join the discussion in
the existing issue 26781, which proposes a max_depth parameter for walk.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -&g
R. David Murray added the comment:
This is the standard way that we write examples. Sprinkling in extra blank
lines everywhere would make the examples less readable. One you've learned how
the command interpreter works, the examples are clear, so you each beginner
only has to learn
R. David Murray added the comment:
If I remember correctly, the exceptions adhere to the standard because it gives
the option of "signaling" in those cases (but in any case it is the behavior we
want).
0.5 is a float, so x**.5 is not the square root.
>>> math.sqrt
R. David Murray added the comment:
I just had a colleague get confused about the container returning self, and he
was referring to the iterator protocol docs at
https://docs.python.org/3.6/library/stdtypes.html#iterator.__iter__. If you
don't read that section with your thinking cap f
R. David Murray added the comment:
The biggest problem, as paul.j3 says, is to get someone from core to review the
argparse issues. I am currently planning to make argparse one of my foci in a
sprint we are doing at the beginning of September, so there is some hope
Any reviews/testing
R. David Murray added the comment:
It is documented how to call a static method when you don't have an instance.
So when you don't (for example, inside a static method on the same class) you
use that form (call the method on the class name).
I realize you don't find thi
R. David Murray added the comment:
Thanks. OK, so you agree a fix is appropriate. What about the question of
backport/backward compatibility?
--
___
Python tracker
<http://bugs.python.org/issue23
R. David Murray added the comment:
I don't think that helps. The issue here is that *sequences* are iterated over
by incrementing an integer index. If you change the size of the list, you are
potentially changing which value any given index points to. Presumably the
tutorial writer th
R. David Murray added the comment:
I'm not sure there's a "best practice" choice between the two calling forms
that are documented. Although obviously when you don't have an instance you
can't use the instance calling form. I think it is *common* practice to u
R. David Murray added the comment:
Also note that we have fixed a number of bugs in the stdlib code where a raw
string was not used for a docstring when it should have been. And when I say
bugs, I mean both formatting problems in pydoc, and doctest bugs. There may
even have been a case
R. David Murray added the comment:
Given a choice between catering for Python programmers and catering for
Java/C++ programmers, the Python docs obviously ought to chose to cater to
Python programmers. To a python programmer, calling C.f() is intuitive.
I would myself definitely *not
R. David Murray added the comment:
I think we are waiting on confirmation that we have a buildbot that has the
necessary headers.
--
___
Python tracker
<http://bugs.python.org/issue27
R. David Murray added the comment:
Thanks, Joel!
--
resolution: -> fixed
stage: backport needed -> resolved
status: open -> closed
type: -> behavior
___
Python tracker
<http://bugs.python
R. David Murray added the comment:
New changeset 3bbdf990a2c1b0b303b950058e3177a1bd5f697a by R. David Murray (Joel
Hillacre) in branch '3.5':
bpo-30532: Fix whitespace folding in certain cases (#2592)
https://github.com/python/cpython/commit/3bbdf990a2c1b0b303b950058e3177
R. David Murray added the comment:
New changeset c60d2f5e8609b040ab58c498fde23928fe9dbef5 by R. David Murray (Joel
Hillacre) in branch '3.6':
bpo-30532: Fix whitespace folding in certain cases (#2591)
https://github.com/python/cpython/commit/c60d2f5e8609b040ab58c498fde239
R. David Murray added the comment:
Reading through some of the linked material, it looks like the issue is with
how UNC "symlinks" are resolved.
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.o
R. David Murray added the comment:
@qingyunha: we are telling you that that would *introduce* a bug. This is
working the way it is supposed to.
Vinay, what if we rewrote the beginning of that paragraph like this:
Sets the threshold for this logger to lvl. Logging messages which are less
R. David Murray added the comment:
If I saw your message, I would think "what is a 'simple name'?". There's no
glossary entry for that, nor is it a concept used elsewhere in the
documentation as far as I remember. One could instead use "single identifier&qu
R. David Murray added the comment:
I will let Vinay answer definitively, but this is working as designed. This
allows you to set 'debug' level on a sub-logger without getting debug output
for every logger in your system, which is what you would get otherwise as the
default loggin
R. David Murray added the comment:
I think the current error message is more informative than your suggestion,
myself. However, the message could say "keyword argument name" instead of just
"keyword", which I think would be quite a bit clearer.
I seem to remember anothe
701 - 800 of 10554 matches
Mail list logo