Change by R. David Murray :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
R. David Murray added the comment:
Well, it would be an "unenhancement" (reducing functionality :).
What I think it would be classed as is an API bug fix, and those generally can
be made only in feature releases. I can imagine code depending on this
ability, since we have had c
Change by R. David Murray :
--
nosy: +eric.snow
___
Python tracker
<https://bugs.python.org/issue31655>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
Sorry, not broken, it just raises a type error, which is appropriate :)
--
___
Python tracker
<https://bugs.python.org/issue31
R. David Murray added the comment:
What happens when you apply a bitwise operation to two bytes objects of unequal
length?
Since the answer to that question is not obvious, we simply don't support the
operation.
If you want to make a proposal for this the python-ideas mailing list wou
R. David Murray added the comment:
virtualenv is not part of the standard library. What happens if you use venv
instead?
--
nosy: +r.david.murray
___
Python tracker
<https://bugs.python.org/issue31
R. David Murray added the comment:
We generally wait for something a bit stronger than "tentatively" before adding
a mime type (ie: an actual submission to the relevant standards channel).
--
nosy: +r.david.murray
___
Python track
R. David Murray added the comment:
3.5 is in security-fix-only mode, and we use versions to indicate which
versions we plan to fix the bug in.
--
nosy: +r.david.murray
versions: -Python 3.5
___
Python tracker
<https://bugs.python.org/issue31
R. David Murray added the comment:
Yes, redistributors sometimes backport non-security fixes if they consider them
important enough.
Note that I haven't evaluated the merits of this issue, and there is a related
issue about how 2to3 finds its fixers that this may overlap
R. David Murray added the comment:
Yes, if/when it goes in it will go in to all currently maintained versions.
I've adjusted 'versions' accordingly.
--
versions: -Python 3.4, Python 3.5, Python 3.6
___
Python tracker
<https
R. David Murray added the comment:
Yes, this conforms to Python's namespace/scoping rules: nested scopes are
allowed to reference (but not assign to) variables from the global scope even
without a 'global' declaration.
--
nosy: +r.david.murray
resolution: -&g
R. David Murray added the comment:
If you are talking about Gerhard, if he was still around you'd probably get a
similar response, but he hasn't been around much. So this is somewhat of an
orphaned module currently and it takes longer for an issue to get traction.
One of the dr
R. David Murray added the comment:
Given the title, are you saying that it works if you omit the
stderr=subprocess.STDOUT? At the beginning you say you are using an authorized
key and mux so you don't need to enter a password, and at the end you say it
works fine if the MUX is created
R. David Murray added the comment:
Based on the paragraph following the example, I don't think client_thread is a
threading.Thread, and 'run' is meant to be a generic representation of a
possible API. Since Threads do have a 'run' method, this is certainly
potenti
R. David Murray added the comment:
Or maybe instead of client_handler/run, it should be something like
handle_client_asynchronously(clientsocket).
--
___
Python tracker
<https://bugs.python.org/issue31
R. David Murray added the comment:
This is fixed in python3. Do you have a use case for 2.7 or are you just
noticing?
--
nosy: +r.david.murray
versions: -Python 3.4
___
Python tracker
<https://bugs.python.org/issue31
R. David Murray added the comment:
3.4 and 3.5 are in security maintenance mode only, and this is not a security
bug. This was fixed in master (3.7) as a result of issue 25324. The decision
there was made to not backport it because no one had complained about the
problem previously. Now
R. David Murray added the comment:
Which example? (It might be easiest to just generate a PR with your suggested
improvement.)
--
nosy: +r.david.murray
___
Python tracker
<https://bugs.python.org/issue31
R. David Murray added the comment:
Where did you get your installer? I don't find any references to 'backports'
in our repo, other than a couple of places in the docs where the word appears.
I also don't understand the relationship between your MyPackages and a
backpo
R. David Murray added the comment:
What is "the backports module"? I still don't understand what a backports
directory, that I don't think our installer creates, has to do with your
MyLibraries directory.
I'm sorry that I'm having trouble following your expla
R. David Murray added the comment:
I think there needs to be an easy way to turn off the warnings while running
tests, as well. I don't want to be bothered by those messages when testing
parts of my package that are consciously using the provisional features.
But really, I agree with
R. David Murray added the comment:
That's why I said set on by default by the test harnesses. The opt in would be
done by the standard testing tools, not directly by the programmer. That's how
deprecation warnings work now.
--
___
Pyth
R. David Murray added the comment:
I imagine we could make it controlled by the same setting that controls
deprecation warnings, with some way to differentiate them if you really need
to. I forget exactly how that warning control works, so maybe that would be
awkward, but I wouldn'
R. David Murray added the comment:
Nick says: "Neither of those situations can be encountered simply by running an
existing *application* on a newer version of Python".
I fail to see the operational difference between running an application on a
newer version of Python and d
R. David Murray added the comment:
Ah, so backports is a package on pypi. You should report this problem wherever
they do their bug tracking. It is *possible* there is some problem in 2.7 on
windows, but it is much more likely to be a bug in backports on windows. In
sort, python does not
R. David Murray added the comment:
This tracker is for reporting bugs in python. If you want to report a problem
with the tracker, please use the 'report tracker problem' link in the left
column. (That said, I thought the error message you show in the screenshot was
fixed by
R. David Murray added the comment:
I fixed the title for you, otherwise this looks like a duplicate of issue 31732.
--
nosy: +r.david.murray
title: Add TRACE level to the logging module -> Add NOTICE level to the logging
module
___
Python trac
R. David Murray added the comment:
Most likely an error in your program logic, I'm afraid. This isn't a forum for
getting help, you should try the python-list mailing list. (If you do find a
bug, you can then open an issue with details.)
--
nosy: +r.da
R. David Murray added the comment:
I'm not arguing against the rejection, but I want to mention a point in
relation to Raymond's statement "five levels have sufficed for a long and that
the need for finer distinctions almost never arises in practice". In thinking
abou
R. David Murray added the comment:
I think in the echo examples the 'with conn' block should be indented and a
'with s:' added around it.
The network sniffer should probably use a with statement with the
created socket.
The CAN example ends only on ctrl-C, and could go i
R. David Murray added the comment:
Heh, of course the socket server also only ends with ctl-C. And I misread the
CAN example, it won't spin because the read isn't wrapped in a try/except. So
yes, that should use a with on the socket as well, since the with will close
the socket
R. David Murray added the comment:
"Safely evaluate an expression node or a string containing a Python expression."
The behavior you are citing matches that documentation, as far as I can see.
1+1 is an expression involving supported literals.
--
nosy: +r.da
R. David Murray added the comment:
Does the patch in gh-3488 fix this? I think it should, or if it doesn't that's
a bug in the PR patch.
--
___
Python tracker
<https://bugs.python.o
R. David Murray added the comment:
You are correct, that is a bug. Presumably I forgot to check for non-ascii
when the parameter value doesn't need to be folded. I'm not sure when I'll
have time to look at this, unfortunately :(. If you can see how to fix it, you
could subm
R. David Murray added the comment:
Great, thank you for that research. And yes, that's exactly why __str__ uses
utf8=True, the "picture" of the message is much more readable. I will commit
that PR soon.
--
___
Python
R. David Murray added the comment:
The python standard library does not parse files, nor does it have a _parse_rfc
message. You say you reported the problem you are having to "the program's
maintainer", and that is appropriate. There does not appear to be anything in
this re
R. David Murray added the comment:
I meant the python standard library datetime package doesn't parse files, of
course :) Other parts of the stdlib certainly do parse files.
--
___
Python tracker
<https://bugs.python.org/is
R. David Murray added the comment:
It may be a proper noun, but it is conventionally spelled with a lowercase
letter when referring to the type/object. It would be spelled with an upper
case letter when referring to the *standard*.
--
___
Python
R. David Murray added the comment:
In this case I think the cost of editing for consistency may be higher than the
value, especially since as you say there are ambiguous cases.
--
___
Python tracker
<https://bugs.python.org/issue31
R. David Murray added the comment:
Ionel please give commenters the benefit of the doubt. In this case, Raymond
is merely articulating our policy: if something is in pre-PEP stage we don't
generally keep issues open in the tracker. We open issues for PEPs when they
get t
R. David Murray added the comment:
If you run
mpirun -np 4 myexe.x moreargs; echo $?
in /bin/sh, what do you see? You also might try to make sure it is the same
mpirun and the same myexe.x that is being called in both cases (it is the
mpirun return code you are seeing).
--
nosy
R. David Murray added the comment:
The patch looks good to me if someone wants to make a PR out of it. If you
wouldn't mind digitally signing the CLA, Peter, that would make PSF legal
happy, though I doubt a one sentence doc patch is really an
R. David Murray added the comment:
It is not obvious that this is a bug. Why should None be a valid value for 'in
network'?
--
nosy: +r.david.murray
___
Python tracker
<https://bugs.python.o
R. David Murray added the comment:
Duplicate of #25655. Any concrete proposals for how to make this better are
welcome.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Python errors related to failures loadin
R. David Murray added the comment:
I believe we currently have a policy that the python standard library will not
include type annotations, that those are provided by typeshed.
--
nosy: +r.david.murray
___
Python tracker
<https://bugs.python.
R. David Murray added the comment:
Yes, that's the way it works (and is intended to work, for performance
reasons). The documentation on this could be improved...while it does say
globals must be a dict and that locals can be any mapping object, it does it in
a sentence that is
R. David Murray added the comment:
>From the linked email:
> That way ad hoc scripts and the REPL will get warnings by default,
> while zipapps and packages can avoid warnings by keeping their
> __main__.py simple, and importing a CLI helper function from another
> module. Entr
R. David Murray added the comment:
I'm not sure what licensing issues you are talking about, but setting up a
buildbot shouldn't normally run into any. As long as you have a license to the
run the OS, the fact that you are using it to receive jobs from our build
master an
R. David Murray added the comment:
Can you please give examples of what you think the problem is?
--
nosy: +r.david.murray
___
Python tracker
<https://bugs.python.org/issue31
R. David Murray added the comment:
It was never about putting the interests of the app developers first, it was
about putting the interests of the users first: not being pestered by seeing
deprecation warnings they can't do anything about.
So yeah, maybe a PEP explaining the logic wou
R. David Murray added the comment:
This is a duplicate of #27794.
--
nosy: +r.david.murray
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> setattr a read-only property; the AttributeError should show
the attribute that failed
versions:
R. David Murray added the comment:
This is not something it is worth complicating the dict API or collections for.
If you want the feature in your code, implement your subclass in your own
utility library.
If you disagree with this decision, please bring it up on the python-ideas
mailing
R. David Murray added the comment:
> Why would mypy, flake8 or pip emit DeprecationWarnings?
Because they use python features that get deprecated, and the python the user
is using to run them gets upgraded. Now, those particular tools probably will
get updated quickly, but other tools w
R. David Murray added the comment:
My *personal* memory (as in, the reason I gave a sigh of relief when we made
this change) was other tools, regardless of what core's rationale was :) (If I
remember correctly it was some sysadmin-type tool I was using just about every
R. David Murray added the comment:
FWIW, I find the version without the spaces to be more readable (but I don't
find annotations to be readable in general, so my opinion may not be worth much
:)
--
nosy: +r.david.murray
___
Python tracker
&
R. David Murray added the comment:
Agreed.
--
___
Python tracker
<https://bugs.python.org/issue32018>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
It looks like Brotli is a de-facto standard (RFC 7932 is an informational RFC),
and it says the IANA registry has been updated. However, this appears to be
http-only, with no corresponding program used for compression of files, and
thus no "file exte
R. David Murray added the comment:
OK, so there are "real" filenames that have .br on the end? That wasn't clear
from the RFC and discussions I found. Based on the documentation, br is for
use in the Content-Encoding header.
What does aiohttp do when it gets a brotli enco
R. David Murray added the comment:
Note, I'm not saying we shouldn't do this, I'd just like to get good
documentation of why linked to this issue.
--
___
Python tracker
<https://bugs.pyt
R. David Murray added the comment:
Hmm. OK, the docs do say that value should be usable as a content-encoding
header.
However, absent any sort of program that actually does brotli encoding/decoding
to and from files, this would be essentially useless based on the aiohttp's
algorithm (o
R. David Murray added the comment:
Can you reproduce this without your PosArgsParser?
--
nosy: +r.david.murray
___
Python tracker
<https://bugs.python.org/issue32
R. David Murray added the comment:
OK, bouncing around from those URL I finally found this:
https://github.com/google/ngx_brotli/issues/28
That indicates unambiguously that someone does expect files to be
pre-compressed on the server and that the main brotli package provides a cli
tool (I
R. David Murray added the comment:
Ah, yes, I'd managed to forget about that issue, even though I was the one that
finally committed the fix.
So, the alternate parser will be in 3.7. In the meantime you can grab the code
from the commit and put it in a local file, I think. You'll
R. David Murray added the comment:
I think it is an interesting idea. Let see what other people think.
--
nosy: +r.david.murray
___
Python tracker
<https://bugs.python.org/issue32
R. David Murray added the comment:
It is "obvious by inspection". Paths are paths instead of strings because they
are formed out of discrete path components instead of strings. If you sorted
each directory in the paths from the top down, and then sorted the
subdirectories, and t
R. David Murray added the comment:
To put it another way, think about sorting a list of tuples. Same behavior.
--
___
Python tracker
<https://bugs.python.org/issue32
R. David Murray added the comment:
parseaddr is for parsing the contents of an address header, not for parsing any
additional text. So the correct way to call it is parseaddress('someone
').
In any case, please look in to the new email policies, which provide a much
more conv
R. David Murray added the comment:
No, you could create an ABC whose only purpose was to be a target of register
calls. As with the issue you reference, this is something better implemented
in a linter. I'll leave this open for at least one other dev to concur and
close, t
R. David Murray added the comment:
Unfortunately the imap module in the stdlib doesn't provide a whole lot in the
way of tools for parsing the imap data, just for sending it back and forth to
the server.
--
___
Python tracker
&
R. David Murray added the comment:
The docs start out with "as outlined in PEP 3119; see the PEP for why this was
added to Python". I think it would be a good doc enhancement request to
extract the motivation and other description out of that pep and put it in the
main docs in
R. David Murray added the comment:
By design, iterators do not have a length (see msg248496).
--
nosy: +r.david.murray
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by R. David Murray :
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/issue32108>
___
___
Python-bugs-list mailing list
Unsubscribe:
R. David Murray added the comment:
Yes, the markup (and therefore how the code is displayed in the docs) clearly
indicates that the , between the lists is not part of the python syntax being
discussed.
--
nosy: +r.david.murray
___
Python tracker
New submission from R. David Murray :
No changes were made to the documentation of get_event_loop when its behavior
was modified to return the loop running the future/coroutine when called from
that context. The documentation still says it gets the loop associated with
the thread
R. David Murray added the comment:
Thanks for the suggestion, but I'm -0.5. I don't think these are compelling
enough to be worth adding to the module API. The number of times I've done
this kind of operation is far smaller than the number of times I've had other
code i
R. David Murray added the comment:
Um. If they aren't expected to understand how to write this code, why isn't it
being provided to them as a canned function as part of the test environment?
To succeed in getting something like this added, I suspect you will need to
show that i
R. David Murray added the comment:
The surprising thing is the behavior of NaN, which is *not equal* to itself.
The statement about orderability says "...are ordered the same as their first
unequal elements". This is explicit and unambiguous, there is no difference in
this conte
R. David Murray added the comment:
Your are reading the documentation wrong. For linesep, it says "The string to
be used to terminate lines in serialized output." The key word there is
"output". email operates in "universal newline mode" when parsing messa
R. David Murray added the comment:
OK, I should have used the term the docs actually use: "serialization".
get_content() is, I hope, clearly not serialization, while as_string() is.
Does that make it make more sense? Do you see a way to improve the docs in
t
R. David Murray added the comment:
I think Serhiy's point is that it doesn't matter whether or not it is used by a
tool, it is useful for humans. I don't know if it is used by the tracker; Ezio
worked on that code, I think.
--
___
R. David Murray added the comment:
I would suggested following the statement "To create a heap, use a list
initialized to [], or you can transform a populated list into a heap via
function heapify()." with "Any mutation of the list thereafter must maintain
the heap invariant i
R. David Murray added the comment:
A note would be too heavy handed. And get_content is a different function from
get_payload, so there is no change in behavior, there is a new API with a more
consistent behavior. Basically, Python programs in general use \n line endings
internally, and
R. David Murray added the comment:
This is almost certainly either a duplicate or will be fixed by a PR I have
pending, that I don't have time to look for right now, that rewrites the
folder. I'll try to get to merging that PR soonish, but it might not happen
before th
R. David Murray added the comment:
It is gh-3488 if you want to try it out. Feedback welcome.
--
___
Python tracker
<https://bugs.python.org/issue32182>
___
___
R. David Murray added the comment:
For the record: https://docs.python.org/3/faq/programming.html#id13
--
nosy: +r.david.murray
___
Python tracker
<https://bugs.python.org/issue32
R. David Murray added the comment:
Guido specifically rejected __len__ for iterators when the iteration protocol
was designed. This has become a FREQ in recent times (Frequently Rejected
Enhancement Request :)
The rationale, as I understand it, is that an iterator object should always
R. David Murray added the comment:
The doc source files do not contain smart quotes, and as far as I know, sphinx
does produce correct utf-8.
Recently there was a bug where incorrect smart quotes were leaking out of the
internationalization of the docs, so this might be a problem that is
R. David Murray added the comment:
New changeset 85d5c18c9d83a1d54eecc4c2ad4dce63194107c6 by R. David Murray in
branch 'master':
bpo-27240 Rewrite the email header folding algorithm. (#3488)
https://github.com/python/cpython/commit/85d5c18c9d83a1d54eecc4c2ad4dce
R. David Murray added the comment:
New changeset a87ba60fe56ae2ebe80ab9ada6d280a6a1f3d552 by R. David Murray (Miss
Islington (bot)) in branch '3.6':
bpo-27240 Rewrite the email header folding algorithm. (GH-3488) (#4693)
https://github.com/python/cpyt
R. David Murray added the comment:
The PR has been committed.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.5
___
Python tracker
<https://bugs.python.or
R. David Murray added the comment:
The PR has been committed.
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
type: crash -> behavior
versions: -Python 3.4, Python 3.5
___
Python tracker
<https://bugs.python
R. David Murray added the comment:
I checked, and your example works correctly with the patch applied. I've
committed the PR. Let me know if you find any other issues (there are several
open issues with exactly how headers are wrapped, but I don't think there are
any
R. David Murray added the comment:
I don't understand what the bug is that you are reporting here. Can you
clarify? mypy isn't part of the stdlib, so an explanation in terms of what's
in the stdlib would be helpful.
--
nosy:
R. David Murray added the comment:
Ah. I'm guessing Vinay will probably want to fix the docs, then, since that's
less disruptive backward compatibility wise.
--
nosy: +vinay.sajip
___
Python tracker
<https://bugs.python.o
Change by R. David Murray :
--
stage: -> needs patch
versions: +Python 3.7 -Python 3.4, Python 3.5
___
Python tracker
<https://bugs.python.org/issu
R. David Murray added the comment:
To be pedantic, are not macros, they are context managers :)
Your first case is not something I would have thought of coding. In the
to_raise=True case, the subTest is failing because an exception is raised
inside its scope. In the to_raise=False case
R. David Murray added the comment:
Yes, that's an easy mistake to make. I avoided it by only running one of the
tests cases at a time, and I'll admit I had to think about it for a while to
understand what was going on in your
Change by R. David Murray :
--
resolution: -> not a bug
___
Python tracker
<https://bugs.python.org/issue32213>
___
___
Python-bugs-list mailing list
Un
R. David Murray added the comment:
I can confirm that there is a difference on linux as well, using the sqlite
version for both 2.7 and 3.7:
rdmurray@pydev:~/python/p27[2.7]>./python sqlite3_27_36_performance_bug.py
First step: 3.22849011421
Second step: 3.2167429924
rdmurray@pydev:~/pyt
R. David Murray added the comment:
...using the *same* sqlite version...
--
___
Python tracker
<https://bugs.python.org/issue32215>
___
___
Python-bugs-list m
5601 - 5700 of 12944 matches
Mail list logo