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
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:
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 :
--
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:
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
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:
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:
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
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:
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
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:
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:
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
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:
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
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:
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:
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:
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:
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:
>>> 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:
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:
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:
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
Changes by David K. Hess :
--
pull_requests: +3096
___
Python tracker
<http://bugs.python.org/issue4963>
___
___
Python-bugs-list mailing list
Unsubscribe:
David K. Hess added the comment:
FYI, PR opened: https://github.com/python/cpython/pull/3062
--
___
Python tracker
<http://bugs.python.org/issue4963>
___
___
Pytho
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:
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,
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:
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
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
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:
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
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:
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:
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:
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
Changes by R. David Murray :
--
nosy: +brett.cannon, eric.snow, ncoghlan
___
Python tracker
<http://bugs.python.org/issue31210>
___
___
Python-bugs-list mailin
Changes by R. David Murray :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
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 :
--
nosy: +qingyunha
___
Python tracker
<http://bugs.python.org/issue27413>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
versions: +Python 3.7 -Python 3.6
___
Python tracker
<http://bugs.python.org/issue27413>
___
___
Python-bugs-list mailin
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
R. David Murray added the comment:
Is this post wrong then?:
https://superuser.com/questions/584870/how-can-i-add-a-folder-containing-a-semicolon-to-the-windows-path
("I noticed that the semicolon ; is a valid character for Windows (NTFS) file
and directory
R. David Murray added the comment:
All right. So the challenge here for windows is: if python is installed on a
path that has a semicolon in one of the directory names, is it even possible to
populate sys.path such that modules can be imported from the lib directory that
is under that path
Changes by R. David Murray :
--
title: Can not import site from sys.prefix containing DELIM -> Can not import
modules if sys.prefix contains DELIM
___
Python tracker
<http://bugs.python.org/issu
R. David Murray added the comment:
See also issue 20371.
--
nosy: +r.david.murray
___
Python tracker
<http://bugs.python.org/issue31222>
___
___
Python-bugs-list m
R. David Murray added the comment:
The docs you point to are correct (they mention python.exe). The Travis log
also shows it using python.exe. So the error message about the directory must
be about some other operation than just running the python command.
--
components: +macOS
nosy
R. David Murray added the comment:
Heh. I saw the PR but didn't realize it was attached to this issue :)
--
___
Python tracker
<http://bugs.python.org/is
R. David Murray added the comment:
Ah, this is probably the issue: https://github.com/python/cpython/pull/3134
--
___
Python tracker
<http://bugs.python.org/issue31
R. David Murray added the comment:
This is by design: namedtuples are tuples in which you can access the elements
by name. If you have a tuple with the same elements, but no name access, they
should compare equal, because they are fundamentally tuples. The names are
just a convenience
R. David Murray added the comment:
This isn't a help forum, it is a place for reporting bugs in Python. The kind
of question you are asking is best asked on the python-list mailing list (see
mail.python.org).
--
nosy: +r.david.murray
resolution: -> not a bug
stage: -&g
R. David Murray added the comment:
Just FYI, Vedran, almost everyone gets this one wrong :) I too once thought
that triple quoted text used as comments was bad style, but in fact I learned
they are an accepted way in Python to do multiline comments. Accepted by
Guido, at least:
https
R. David Murray added the comment:
And being "accepted" does not change the fact that one needs to be aware of the
fact that syntactically they are string literals and not syntactic comments.
Which was your point.
--
___
Python trac
R. David Murray added the comment:
GC cleanup is not guaranteed to be synchronous. You are observing normal
Python behavior here. Cleanup does not happen until the TestCase instance is
finalized (thus eliminating the self.dummy reference to your DummyClass). In
the case of passing tests
R. David Murray added the comment:
No, that sentence is telling you what the *Python*'s behavior is, using C++
terminology. Unlike C++, where class members are private by default, the
Python equivalent of class members are public by default.
If you can figure out a clearer way to phrase
R. David Murray added the comment:
I'm don't have a lot of experience with parsers, but I suspect that we consider
the cost of making the grammar more complex to be more significant than the
benefit we'd get from catching these at compile time. And as Vedran says,
defining wha
R. David Murray added the comment:
This kind of proposal should start with a discussion on the python-ideas
mailing list. You can reopen the issue if there is a consensus for moving
forward...but I wouldn't be surprised if this was considered to be a PEP level
proposal.
--
R. David Murray added the comment:
If you would disallow "a = [0]; [5, a][1][:] = [3]", then your proposal will
not be accepted, for backward compatibility reasons if nothing else.
--
versions: +Python 3.7 -Python 3.5, Python 3.6
___
Pyth
R. David Murray added the comment:
Sometimes it does, sometimes we make the change in a feature release, often
after a deprecation period. But in this case there is doubt that the behavior
is incorrect in the first place.
This discussion should move to the python-ideas mailing list. I
R. David Murray added the comment:
Indeed, I personally can't imagine a circumstance in which I'd want to use this
feature. Even inside an org. It also has security implications, which would
also make it a harder sell.
--
___
Pyth
R. David Murray added the comment:
Have you tried the equivalent C program? I'm guessing this is happening at the
OS layer and Python is just reporting it. On my system a timeout of 5 will
always report the OS error.
--
nosy: +r.david.m
R. David Murray added the comment:
The docs say, eg: "Return True if the path points to a symbolic link". The
path points to a file system object, and it is the object that is being
checked, not each component of the path used to get to that object.
--
nosy: +r.da
R. David Murray added the comment:
I would phrase that as "check if any of the components of the path are links",
at which point one "obvious"[*] answer is "any(x.is_symlink() for x in
[*mypath.parents, mypath])". If the path is absolute, you could use &qu
R. David Murray added the comment:
Thanks for wanting to improve the documentation.
Raymond will address this definitively, but unless I'm mistaken part of the
purpose of the examples is to show how the various itertools can be used. If
that is true, then in the context of the ov
R. David Murray added the comment:
I'm not a networking expert at this level, but I believe what is happening here
is that the network stack does an arp, and has a timeout waiting for the arp
response that is longer than your socket timeout. So at some point its arp
timeout expires whil
R. David Murray added the comment:
shadowadler, the documentation assumes *throughout* that you have not created
any variable that shadows any standard Python entities. There is no other
rational way to write the documentation. To change that policy would, as has
been pointed out, require
R. David Murray added the comment:
I see I didn't specifically address your counter argument ("that would
obviously be absurd"). Having thought it it some more, your are right, there
*is* a difference between the examples you think it would be absurd to disclaim
and your ex
R. David Murray added the comment:
OK, agreed. The general principle is: if you reference the name, it is looked
up in the the builtins namespace at runtime (effectively an indirect
reference). If the syntax doesn't explicitly mention the name, then it is
going to be (the equivalent
R. David Murray added the comment:
No, it is correct as worded. It is talking about the default methods. With
the default methods, x == y implies that x is y.
--
nosy: +r.david.murray
resolution: -> not a bug
stage: -> resolved
status: open -&g
R. David Murray added the comment:
This is a duplicate of issue 8087, which contains quite a bit of discussion of
the subtleties of the issue.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Unupdated so
Changes by R. David Murray :
--
nosy: +serhiy.storchaka
___
Python tracker
<http://bugs.python.org/issue31303>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
nosy: +lukasz.langa
___
Python tracker
<http://bugs.python.org/issue31307>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
Duplicate of issue 29708.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> support reproducible Python builds
type: security -> behavior
___
R. David Murray added the comment:
If that is the intended definition of "whitespace" in this context (I have no
opinion on that so far), then the docs need amplification, because in general
"whitespace" includes newlines. On the other hand, this might be considered a
bug
R. David Murray added the comment:
I don't think this use case is enough to justify documenting it, since this is
not an intuitive meaning of the word PARSER. I think if we wanted to expose
this for this kind of use case, we'd want to rename the constant (with an alias
fo
Changes by R. David Murray :
--
pull_requests: +3327
___
Python tracker
<http://bugs.python.org/issue15427>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
I've turned this into a PR. The example was already changed in a previous
checkin. I reworded the optparse porting addition to match the existing style
of the list.
--
nosy: +r.david.murray
___
Python tr
Changes by R. David Murray :
--
versions: +Python 3.6, Python 3.7 -Python 3.2, Python 3.3, Python 3.4
___
Python tracker
<http://bugs.python.org/issue15
Changes by R. David Murray :
--
pull_requests: +3345
___
Python tracker
<http://bugs.python.org/issue14191>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
I've turned intermixed.patch into a PR. I tweaked the documentation so that it
does not refer to the details of the implementation. I tweaked the
implementation to have the 'try' start before the code that modifies the state,
and did the l
Changes by R. David Murray :
--
pull_requests: +3348
___
Python tracker
<http://bugs.python.org/issue15427>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by R. David Murray :
--
pull_requests: +3350
___
Python tracker
<http://bugs.python.org/issue15427>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
I got an offline agreement from Zach Ware, and nobody here at the sprint has
objected (though I don't know if anyone else looked), so I'll go ahead and
finish the PR.
--
___
Python tracker
<http://bu
R. David Murray added the comment:
I started rewriting the header folder in response to this bug, because the root
problem is a bit deeper than just _fold_as_ew being missing. I will probably
work on it some more this week, but if I don't think I'm going to get it
finished I&
R. David Murray added the comment:
You did not follow the request I made on the PR to explain in this issue you
opened what is failing and why. Unless you convince us that this is actually a
bug in python, we will close the issue and PR
R. David Murray added the comment:
I think RegexFlag is an implementation detail, but it is true that it isn't
prefixed with a _ so putting it in __all__ is not obviously wrong. However, if
we do that we should also document it (currently it is mentioned only in a
versionchanged line,
R. David Murray added the comment:
New changeset 47e5f791223773dd46273153e9fa5b48f848f0c9 by R. David Murray (Miss
Islington (bot)) in branch '2.7':
[2.7] bpo-30824: Add mimetype for .json (GH-3048) (#3394)
https://github.com/python/cpython/commit/47e5f791223773dd46273153e9fa5b
R. David Murray added the comment:
Well, I consider that they really should be named constants and not an enum,
which is why I consider it an implementation detail :)
--
___
Python tracker
<http://bugs.python.org/issue31
R. David Murray added the comment:
New changeset e29ab7e75138e198b51c8bd04afa16d9d2c976a5 by R. David Murray (Miss
Islington (bot)) in branch '3.6':
[3.6] bpo-30824: Add mimetype for .json (GH-3048) (#3401)
https://github.com/python/cpython/commit/e29ab7e75138e198b51c8bd04afa16
R. David Murray added the comment:
New changeset 0f6b9d230674da784ca79a0cf1a03d2af5a8b6a8 by R. David Murray in
branch 'master':
bpo-14191 Add parse_intermixed_args. (#3319)
https://github.com/python/cpython/commit/0f6b9d230674da784ca79a0cf1a03d
R. David Murray added the comment:
Thanks Paul. By the way, if you want your "real name" in What's New, just let
me know what it is and I'll make the change.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
_
R. David Murray added the comment:
It seems likely that this is related to the problems discussed (and hopefully
solved) in issue 30024.
--
nosy: +r.david.murray
___
Python tracker
<https://bugs.python.org/issue31
R. David Murray added the comment:
New changeset 397c467c49385023de36411194d381ac993bae1a by R. David Murray
(Elena Oat) in branch 'master':
bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines.
(#3272)
https://github.com/python/cpyt
R. David Murray added the comment:
Thanks, Elena.
--
resolution: -> fixed
stage: -> backport needed
___
Python tracker
<https://bugs.python.org/i
R. David Murray added the comment:
New changeset 82cae7c5be4175e2173e4d342825b5315a9d612a by R. David Murray (Miss
Islington (bot)) in branch '2.7':
[2.7] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines.
(GH-3272) (GH-3428)
https://github.com/python/cpyt
R. David Murray added the comment:
New changeset e89b35dd2b87e85978b91e3e2dbdea1fc76d6be4 by R. David Murray (Miss
Islington (bot)) in branch '3.6':
[3.6] bpo-31330: Clarify that RawTextHelpFormatter collapses repeated newlines.
(GH-3272) (GH-3429)
https://github.com/python/cpyt
Changes by R. David Murray :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue31330>
___
___
Pyth
R. David Murray added the comment:
Can you figure out what the input to feedparser is in those cases? If pip or
whatever is feeding in a None object, then that's not a bug in feedparser.
However, if the input is a string (or bytes via the bytes interface) and this
is heppening, then th
R. David Murray added the comment:
Presumably the book didn't tell you everything you need to know to make this
work, or you missed something in the instructions, since this certainly does
work if the module is in a directory on sys.path. (The 'python module1.py'
will o
5101 - 5200 of 12944 matches
Mail list logo