New submission from Joseph Schachner:
We should not make people who need to read Python documentation do an extra
transformation in their heads to correctly understand that in section 5.15
higher precedence is at the bottom of the table and lower precedence is at the
top. Because the
Vadim Kantorov added the comment:
From my (novice) standpoint, it's very weird that importing pkg_resources in a
module's __init__.py causes Python to deviate from its core module import
rules / sequence.
Would you consider reporting this issue to pkg_resources's authors more
appropriate?
New submission from Cal Leeming:
There was a discussion/patch in #9754 [1].
This allows for multiple warning types as a tuple, e.g.;
self.assertWarnsRegex((DeprecationWarning, RuntimeWarning), ^E1000:)
However, it does not allow testing for multiple warning messages, e.g.;
expect =
R. David Murray added the comment:
Yes, unless you can identify a python bug yourself. I believe pkg_resources
does a bunch of imports when it is imported, so I'm not really surprised that
it has an effect on the order in which things are imported.
--
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com:
Added file: http://bugs.python.org/file40238/python2.7-pgo-v02-mac.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24915
___
Alecsandru Patrascu added the comment:
I modified the patches after the review made by Brett (python2.7-pgo-v02.patch
and python3.6-pgo-v02.patch):
- removed the call to pybench
- left the PGO steps as optional. To use it we run make profile-opt
- in the initial patches, I left out test_hashlib
Stefan Krah added the comment:
My initial reaction is that the default should be optimized for
short build times. I would not want to type disable-profile-opt
every time I'm running the tests.
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
To be clear: I believe it imports things that are not in the standard library,
based on scanning sys.path. But I haven't studied the code in depth, so I
could be wrong.
--
___
Python tracker
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com:
Added file: http://bugs.python.org/file40237/python3.6-pgo-v02.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24915
___
Stefan Krah added the comment:
Yacc uses low to high.
--
nosy: +skrah
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24921
___
___
Python-bugs-list
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com:
Added file: http://bugs.python.org/file40236/python2.7-pgo-v02.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24915
___
Changes by Alecsandru Patrascu alecsandru.patra...@intel.com:
Added file: http://bugs.python.org/file40239/python3.6-pgo-v02-mac.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24915
___
New submission from Chris Hogan:
Setup.py evaluates what's given in LDFLAGS and CPPFLAGS and CFLAGS. These
variables are the usual mechanism to communicate custom paths/libs/defs to a
build process. However, setup.py puts system paths in front of custom paths
which makes it impossible to use
New submission from Vineet Kumar Doshi:
Hi,
link :
https://docs.python.org/2/library/htmlparser.html#HTMLParser.HTMLParser.handle_comment
Incorrect Line :
The content of Internet Explorer conditional comments (condcoms) will also be
sent to this method, so, for !--[if IE 9]IE9-specific
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +gregory.p.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24924
___
___
Changes by R. David Murray rdmur...@bitdance.com:
Removed file: http://bugs.python.org/file40241/doctest_find__test__.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24925
___
Changes by R. David Murray rdmur...@bitdance.com:
Added file: http://bugs.python.org/file40242/doctest_find__test__.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24925
___
Brett Cannon added the comment:
the v02 patches LGTM. I'm fine with seeing those committed as-is knowing
Alecsandru is actively working towards Clang support.
--
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
Brett Cannon added the comment:
OK, if someone finds a way to reproduce the bug in the next week then we will
keep this open as active, else I'm closing it as out-of-date.
--
status: open - pending
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 6eb5e59886e1 by R David Murray in branch '3.4':
#24926: Fix typo in example.
https://hg.python.org/cpython/rev/6eb5e59886e1
New changeset ae9a9f201870 by R David Murray in branch '3.5':
Merge: #24926: Fix typo in example.
Changes by Jonas Obrist ojiido...@gmail.com:
Added file: http://bugs.python.org/file40248/process_segfault.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24927
___
Roundup Robot added the comment:
New changeset ff53dbcdc85f by R David Murray in branch '2.7':
#24926: Fix typo in example.
https://hg.python.org/cpython/rev/ff53dbcdc85f
--
nosy: +python-dev
___
Python tracker rep...@bugs.python.org
New submission from Jonas Obrist:
When using multiprocessing.Pool, if the function run in the pool segfaults, the
program will simply hang forever. However when using multiprocessing.Process
directly, it runs fine, setting the exitcode to -11 as expected.
I would expect the Pool to behave
R. David Murray added the comment:
Thanks for the report.
--
nosy: +r.david.murray
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24926
Terry J. Reedy added the comment:
Torgil, thank you for the interesting feedback. I will respond to your four
paragraphs slightly out of order.
1. Starting Idle with '-n', I verified that running 'print(a)' from the editor
works after entering 'a=1' in the shell. The intended purpose of the
New submission from Alexander Oblovatniy:
Hi!
Current implementation of `patch.dict` spoils order of items in
`collections.OrderedDict`, because it explicitly converts passed `values` to
`dict`
Alexander Oblovatniy added the comment:
Hi!
Current implementation of `patch.dict` spoils order of items in
`collections.OrderedDict`, because it explicitly converts passed `values` to
`dict`
Christoph Gohlke added the comment:
Two findings regarding the new semi-static linking options:
Distutils now creates libraries (.lib) that may not be readable by subsequent
versions of Visual C++
https://msdn.microsoft.com/en-us/library/0zza0de8.aspx.
Build times and static library sizes
Daniel Shahaf added the comment:
What's the reasoning behind offering a error code to name mapping?
Allowing code that runs into an error to print the error name rather than its
numeric value. This saves whoever reads the error message having to look it up
himself.
his seem problematic to
Robert Collins added the comment:
I don't know if or when it was moved, but right now:
./python -m pydoc unittest.case.TestCase.assertLogs
... the docs for it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24193
Michael Foord added the comment:
assertLogs is on a Python test suite helper, not TestCase itself.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24193
___
Torgil Svensson added the comment:
I frequently use IDLE as an interactive shell to Python with the Editor
attached. It's very nice for this purpose as it's lightweight and embedded in
Python delivery. This is only possible with -n flag as without it each press on
F5 will restart the
Roundup Robot added the comment:
New changeset 5a9ac801f9b4 by larry in branch '3.5':
Merged in brettcannon/cpython350/3.5 (pull request #2)
https://hg.python.org/cpython/rev/5a9ac801f9b4
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
Based on reading the patch.dict doct, I'm guessing that that dict call is
making a copy in order to do a restore later. Perhaps replacing the dict call
with a copy call would be sufficient? (I haven't looked at the dict.patch code).
--
nosy:
Robert Collins added the comment:
Hi, just to say - I'm happy to help steer this through. I think its an
important ecosystem fixup.
--
nosy: +rbcollins
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24294
Jonas Obrist added the comment:
So the reason this is happening is very simple:
When using Pool.apply, the task (function) is sent to the task queue, which is
consumed by the worker. At this point the task is in progress. However, the
worker dies without being able to finish the task or in
Gregory P. Smith added the comment:
i'm updating the title to be more accurate.
turning it on by default is likely not desirable as the makefile is primarily
used by developers who are iterating on changes.
but having it use a good workload (regrtest) and work with llvm and os x are
good. :)
New submission from Steve Yeung:
Currently, the regex in TimeRE enforces the numeric ranges. For example:
'm': r(?Pm1[0-2]|0[1-9]|[1-9]),
As a result, an invalid month will cause an generic regex error:
ValueError: time data '2015/16/5' does not match format '%Y/%m/%d'
However, if we
Robert Collins added the comment:
On testing this - I don't think subprocess tests are necessarily needed.
The scenarios are these (from Nick's comment):
Test frameworks.
- there are two in the standard library. unittest and doctest.
- unittest's code paths end up going through 'TestProgram'.
Larry Hastings added the comment:
If this has been broken since 3.3, I don't think it's a release blocker for
3.5. I'm willing to consider it a bug and accept a fix, but I'd prefer it to
be as low-risk as possible (aka the Python version). Can someone fix the
regressions?
And, if the C fix
R. David Murray added the comment:
Most likely you ran the test using a different version of python from the one
the test is from. All the tests in that file pass on our buildbots when run by
the python version they are for.
--
nosy: +r.david.murray
Larry Hastings added the comment:
Please either mark as wontfix or send me a pull request.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24844
___
Larry Hastings added the comment:
The C implementation is making me nervous. My gut feeling is the Python
implementation would be easier to get right.
I still don't quite understand: what is the user-perceived result of this
change? Module authors issuing a DeprecationWarning can now use
Changes by Larry Hastings la...@hastings.org:
--
title: The new import system makes it impossible to correctly issue a
deprecation warning for a module - The new import system makes it inconvenient
to correctly issue a deprecation warning for a module
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24931
___
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
keywords: +easy
stage: - needs patch
type: - enhancement
versions: +Python 3.5, Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24911
Changes by Yury Selivanov yseliva...@gmail.com:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24931
___
___
Python-bugs-list
Robert Collins added the comment:
Forgot docs - I'll do before committing, but not worried about review of them
so much.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2786
___
Nathaniel Smith added the comment:
I still don't quite understand: what is the user-perceived result of this
change? Module authors issuing a DeprecationWarning can now use stacklevel=2
instead of stacklevel=10?
Exactly. There are a lot of deprecated modules in the wild, and the correct
Changes by R. David Murray rdmur...@bitdance.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21167
___
___
Changes by marcos paulo marcos...@yahoo.com.br:
--
title: fix - test_ssl broker was fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24930
___
New submission from Samuel Isaacson:
When inheriting from namedtuples, _asdict and __dict__ return empty
dictionaries:
from collections import namedtuple
class Point(namedtuple('_Point', ['x', 'y'])):
pass
a = Point(3, 4)
print(a._asdict() == {})
gives False; it is
Samuel Isaacson added the comment:
Sorry; it returns True on Python 3.4, False on Python 2.7.6.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24931
___
Ned Deily added the comment:
I don't think we should hold 3.5.0 for a patch for this. I recommend lowering
the priority and targeting a patch for 3.5.1.
--
priority: release blocker - normal
___
Python tracker rep...@bugs.python.org
marcos paulo added the comment:
the version that i ran the test, is python 2.7.10
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24930
___
___
marcos paulo added the comment:
anyway, this changes that i did, make this test more resilent!
this test now is more complete than before!
:-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24930
Nathaniel Smith added the comment:
You're right, impossible is a slight exaggeration :-). As an alternative,
every package could indeed carry around a table containing the details of
importlib's call stack in every version of Python.
(I also haven't checked whether it's consistent within a
New submission from marcos paulo:
Hello to everyone!!!
This test https://hg.python.org/cpython/file/2.7/Lib/test/test_ssl.py on method
ContextTests.test_options, is broker becouse has a error between lines 717 ~
719;
On 717 line, has a comment about # OP_ALL | OP_NO_SSLv2 is the default
Robert Collins added the comment:
Ok, so this is an API and ABI change. I'm going to do a variant without that
downside.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2786
___
Larry Hastings added the comment:
Pull request accepted and merged.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24847
___
___
Larry Hastings added the comment:
Pull request accepted and merged.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21167
___
___
Robert Collins added the comment:
And herewith.
--
Added file: http://bugs.python.org/file40250/issue-2786-1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2786
___
Larry Hastings added the comment:
Pull request accepted and merged.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24867
___
___
Larry Hastings added the comment:
Yes, I'll accept this into 3.5.0, please send a pull request.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24769
___
Larry Hastings added the comment:
Is it really *impossible* to correctly issue a deprecation warning for a
module, as the title asserts? Or does the new import system simply make it
*tiresome*?
if sys.version_info.major == 3 and sys.version_info.minor == 4:
stacklevel = 8
elif
Changes by Larry Hastings la...@hastings.org:
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24847
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
keywords: +easy
nosy: +berker.peksag
stage: - needs patch
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24789
___
Martin Panter added the comment:
I think Gnu Readline uses standard output for echoing input, prompts,
controlling the cursor, etc. You can already see this by redirecting to a
separate terminal. In Linux:
$ python /dev/pts/2
So I think your assumption is not valid. Perhaps you can redirect
Martin Panter added the comment:
I’ve never used syslog() in Python, but I thought I should point out that the
standard Posix API does not do any error reporting either. See
http://pubs.opengroup.org/onlinepubs/9699919799/functions/syslog.html: “The .
. . functions shall not return a value. /
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file40251/nt_fix1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24931
New submission from Nick Coghlan:
Programs/_testembed (invoked by test_capi to test CPython's embedding support)
is currently a very simple application with only two different embedding tests:
https://hg.python.org/cpython/file/tip/Programs/_testembed.c
In light of proposals like PEP 432 to
Roundup Robot added the comment:
New changeset 54a9c649281d by Martin Panter vadmium in branch '3.4':
Issue #24808: Update the documentation of some PyTypeObject fields
https://hg.python.org/cpython/rev/54a9c649281d
New changeset e81d692a00b1 by Martin Panter vadmium in branch '3.5':
Issue
Raymond Hettinger added the comment:
I would like the see LTO enabled. The intermodule calls to code in abstract.c
would become less expensive.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17781
Raymond Hettinger added the comment:
Perhaps replacing the dict call with a copy call would be sufficient?
I think that would do it.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24928
Larry Hastings added the comment:
I wanted to get this in to Python 3.5.0rc2, so I checked it in myself. Petr, I
gave you credit in the checkin comment and Misc/NEWS. Hope that's okay!
--
resolution: - fixed
stage: commit review - resolved
status: open - closed
versions: +Python 3.6
Raymond Hettinger added the comment:
For __dict__, I'm not sure what the right behavior should by for subclasses
that don't define __slots__. In Python 3, the __dict__ is returning the dict
for the subclass. This might be the correct and most desirable behavior:
class
Martin Panter added the comment:
Most of this looks good. For the record, tp_flags was changed to unsigned in
3.4 (Issue 16086). The const and Py_ssize_t changes were done before 3.0.
The only bits I would hesitate about are adding back the two comments saying
“Assigned meaning in release 2”.
Roundup Robot added the comment:
New changeset 5b43ee3df43e by Berker Peksag in branch '3.5':
Issue #10708: Add a link to devguide in Misc/Porting.
https://hg.python.org/cpython/rev/5b43ee3df43e
New changeset 23f4d8bf4f83 by Berker Peksag in branch 'default':
Issue #10708: Add a link to
78 matches
Mail list logo