Brett Cannon added the comment:
I wonder if we should pin sphinx directly instead of the approximate pin we
have now to prevent this sort of thing in the future? I had figured they
wouldn't introduce a new warning in a bugfix release but I was wrong in
that assumption.
On Sat, Jul 15, 201
Brett Cannon added the comment:
Without looking into what changed, I say Python 3.6 being more strict in what
is a namespace package is reasonable and setuptools needs to be better about
installing pkg_resources-using __init__.py files
Brett Cannon added the comment:
I'm -0 on the backport since as Raymond and Eric pointed out it won't benefit
currently working code and I personally don't like changing what exception is
raised in a bugfix release.
--
nosy
Brett Cannon added the comment:
I also can't reproduce on Python 3.6 on Windows 10, so I'm closing this.
Looking at your SO question I noticed you didn't specify `python3` but `python`
which suggests a venv, so I'm wondering if that's mucking with things? You also
d
Brett Cannon added the comment:
One fix at a time. 😉
On Mon, Aug 7, 2017, 07:52 Jeremy Kloth, wrote:
>
> Jeremy Kloth added the comment:
>
> The PR resolved the stack overflow in dfs(), however it now fails in the
> stackdepth() routine (technically, the stackdept
Brett Cannon added the comment:
Running with `./python -m test -u all -j0` causes test_ssl to hang so that
needs to also be skipped (otherwise failures look to be the same from a test
module level):
19 tests failed:
test_asyncio test_asyncore test_epoll test_fcntl test_ftplib
Brett Cannon added the comment:
Simplest way is to do
https://docs.python.org/3/library/importlib.html#importlib.util.find_spec and
see if a spec can be found for the module in question. That will do the search
for the module but it won't load it. This does dictate that you know the nam
Brett Cannon added the comment:
You're technically right, Verdan, but pkgutils is kind of a hack as it isn't
always using standard APIs to achieve its goals, so I personally never
recommend using the module unless absolutely necessary and you know exactly how
brittle
Brett Cannon added the comment:
What about simply 'filter' as a name? or 'path_filter'?
--
nosy: +brett.cannon
___
Python tracker
<http://bug
New submission from Brett Cannon:
It would be great if I could do something like:
if any(x for async x in aiter()): ...
But as of right now, any() complains that "TypeError: 'async_generator' object
is not iterable". I would assume that any() and all() could be
Brett Cannon added the comment:
I figured there was something. :( Closing this as "rejected".
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs
Changes by Brett Cannon :
--
keywords: -easy
___
Python tracker
<http://bugs.python.org/issue18156>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
New changeset 02f3b7d5ab2206d256879e5a8a34f560218ed397 by Brett Cannon (Yaron
de Leeuw) in branch 'master':
bpo-31109: Convert zipimport to use Argument Clinic (GH-2990)
https://github.com/python/cpython/commit/02f3b7d5ab2206d256879e5a8a34f5
Changes by Brett Cannon :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue31109>
___
Brett Cannon added the comment:
I don't think this is a bad thing. This is duck-typing at work to be flexible
where the type doesn't really matter, just the provided interface. If someone
happens to provide an object that doesn't do the right thing then that's their
fault
Brett Cannon added the comment:
If it will crash the interpreter then that's different. If that turns out to be
the case then please come back here and we can rework the issue and PR to
prevent that by being better about checking return values or resulting
exception
Brett Cannon added the comment:
Could you paste in what the crash looks like? E.g. is it a segfault,
SystemError, etc.?
And you can tweak the PR or just open a new one if you would rather that fixes
the crash itself without taking away duck typing
Changes by Brett Cannon :
--
resolution: rejected ->
stage: resolved ->
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue31291>
___
___
Changes by Brett Cannon :
--
title: an assertion failure in zipimport.zipimporter.get_data() ->
zipimport.zipimporter.get_data() crashes when path.replace() returns a non-str
___
Python tracker
<http://bugs.python.org/issu
Brett Cannon added the comment:
I'm about to go on vacation so I might not be right of mind to comment, but I
think throwing a TypeError is valid if it's triggering an assertion error that
is already there.
P.S. Thanks for all the fuzz testing you'
Brett Cannon added the comment:
Yes, I'm saying that instead of hitting the C-level assertion error an explicit
TypeError should be raised (or some other change like calling str() on the
object). Either way, a C-level assertion from valid Python code i
Brett Cannon added the comment:
Should this be closed?
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue31355>
___
___
Python-bugs-list m
Brett Cannon added the comment:
What does the "[us]" mean?
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue31415>
___
___
Brett Cannon added the comment:
Ah, OK. Then I wouldn't put it in square brackets as it seems to suggest it's
somehow disconnected from the number.
--
___
Python tracker
<https://bugs.python.o
New submission from Brett Cannon:
There a couple of places where __loader__ is directly used (the biggest one
probably being importlib.reload()). It would probably be good to warn when
module.__loader__ != module.__spec__.loader like we do for __package__ to start
transitioning people over to
Brett Cannon added the comment:
There is not "find best encoding" code, hence why so much code out there uses
chardet. :)
This might also tie into issue #33944 and the idea of rethinking .pth files.
--
nosy: +brett.cannon
___
Pyth
Change by Brett Cannon :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
I don't quite follow what you're after as it sounds the same as calling
`list(test_suite)`. Am I missing something or are you just trying to avoid the
list creation?
--
nosy: +brett.cannon
___
Pyth
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26415>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
type: crash -> behavior
___
Python tracker
<https://bugs.python.org/issue35283>
___
___
Python-bugs-list mailing list
Unsubscrib
Brett Cannon added the comment:
Care to open a PR to fix this?
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue35283>
___
___
Python-bug
Change by Brett Cannon :
--
title: Incomplete error handling in the compiler's compiler_call() ->
Incomplete error handling in Python/compile.c:compiler_call()
___
Python tracker
<https://bugs.python.org
Brett Cannon added the comment:
Thanks for the PR!
--
___
Python tracker
<https://bugs.python.org/issue28401>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
The "unstable" name bugs me as it suggests we might change it without notice
which isn't true at all. It's more a limited versus broad API. So maybe rename
the directory "broad"?
--
nosy: +brett.cannon
Brett Cannon added the comment:
I guess the question is whether any other Python implementation is threadless?
E.g. is MicroPython? If it even has threads then I agree about deprecating the
module.
But if MicroPython does support threads we should keep the module. That would
mean updating
Brett Cannon added the comment:
Yeah, it's a tough call because it's one of those things others have probably
worked around already, so backporting would break the work-arounds.
If you don't want to bother backporting, Serhiy, I think it would be fin
Brett Cannon added the comment:
Gotcha, thanks for the clarification!
Unfortunately I don't think we will be able to accommodate your feature
request. It's duplicating an API to simply save calling list() which is the
idiomatic way to convert an iterable into a concrete seq
Brett Cannon added the comment:
I think the only thing missing from your list, Andrew, is updating docstrings
and such to mention is_alive() instead of isAlive().
--
___
Python tracker
<https://bugs.python.org/issue35
Brett Cannon added the comment:
I can replicate.
Do note, though, that PEPs are not documentation once they are implemented; at
that point the official docs are what should be followed.
--
components: +Interpreter Core -Library (Lib)
nosy: -docs@python
stage: -> test needed
t
Brett Cannon added the comment:
The docs do not specify that has_location is read-only:
https://docs.python.org/3/library/importlib.html#importlib.machinery.ModuleSpec.has_location
.
And PEPs are not updated once they are implemented as that would mean we would
have to perpetually update
Brett Cannon added the comment:
You can use importlib.resources to read data files and such from within a
package as an alternative.
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue35
Brett Cannon added the comment:
It will because your file change happens so quickly by script that your file
system isn't leading to a different mtime on the source, and so the bytecode
isn't being regenerated. When you do it by hand you're physically slow enough
to have
Brett Cannon added the comment:
It's because the module was originally kept compatible with Python 1.5.2:
https://www.python.org/dev/peps/pep-0291/#backward-compatible-packages-modules-and-tools
--
nosy: +brett.cannon
___
Python tracker
&
Brett Cannon added the comment:
I agree that this shouldn't change and at best can be a documentation update to
mention the fact that importlib.import_module() doesn't restrict itself to
valid syntax names on purpose.
--
assignee: -> docs@python
components: +Docum
Brett Cannon added the comment:
How did you make a recursive generator? The 'yield' would have paused
execution. Do you have code you can share to reproduce? Otherwise blowing your
stack out is normal behaviour in a function which you can deal with by lowering
your stack
Brett Cannon added the comment:
New changeset 3cf74384b53b998fa846dc2590cedf9ad2a0d5fd by Brett Cannon
(Anirudha Bose) in branch 'master':
bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests
(GH-8520)
https://github.com/python/cpyt
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue35376>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +jvr
___
Python tracker
<https://bugs.python.org/issue35376>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue35376>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
PRs should always be against 'master' unless the issue is already fixed there.
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.o
Change by Brett Cannon :
--
title: The math module should provide a function for computing binomial
coefficients -> Add a function for computing binomial coefficients to the math
module
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
This was fixed by https://github.com/python/cpython/pull/10934
--
nosy: +brett.cannon
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
Change by Brett Cannon :
--
stage: -> needs patch
versions: +Python 3.5, Python 3.6, Python 3.8
___
Python tracker
<https://bugs.python.org/issue35450>
___
_
Brett Cannon added the comment:
Correct, that should say something like "copy/symlink of the Python
binary/binaries (as appropriate by the platform or arguments used at
environment creation time)."
--
nosy: +brett.cannon
___
Pyth
Brett Cannon added the comment:
Obviously if you're willing to create a PR, Marcin, that would be great!
--
___
Python tracker
<https://bugs.python.org/is
Change by Brett Cannon :
--
title: Document add_signal_handler -> [asyncio] Document loop.add_signal_handler
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
New changeset 1fb312ce1f147ea84ecb6f5993a20d1a85c53dc3 by Brett Cannon (Miss
Islington (bot)) in branch '3.6':
bpo-35450: reflect in docs that venv module is not always creating a copy of
the Python binary (GH-11144) (GH-11168)
https://github.
Brett Cannon added the comment:
New changeset d5176fe2bcd35dc8d70d13220b58fa7ccd05b47a by Brett Cannon (Miss
Islington (bot)) in branch '3.7':
bpo-35450: reflect in docs that venv module is not always creating a copy of
the Python binary (GH-11144) (GH-11167)
https://github.
Brett Cannon added the comment:
RE: "PEP-302 and PEP-451 are the definitive specifications for how
sys.meta_path is supposed to work"
That's actually not true. In the case of import the language reference is
considered the reference for import:
https://docs.python.
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue35488>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue35498>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/issue35520>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue22166>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Brett Cannon :
https://gregoryszorc.com/blog/2018/12/18/distributing-standalone-python-applications/
claims it doesn't work.
--
components: Library (Lib)
messages: 332314
nosy: brett.cannon
priority: low
severity: normal
stage: test needed
status: open
title
Change by Brett Cannon :
--
priority: normal -> low
___
Python tracker
<https://bugs.python.org/issue35661>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Brett Cannon :
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue35661>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Brett Cannon :
When creating the pyvenv.cfg file, the prompt setting should be stored there so
that tools can introspect on it (e.g. VS Code could read the value to tell
users the name of the venv they have selected in the status bar).
--
assignee: brett.cannon
Brett Cannon added the comment:
New changeset 83da926b89daf80013ea966037c2c0e1e9d25c6b by Brett Cannon (Anthony
Shaw) in branch 'master':
bpo-35488: Add tests for ** glob matching in pathlib (GH-11171)
https://github.com/python/cpython/commit/83da926b89daf80013ea966037c2c0
Brett Cannon added the comment:
If someone can get a PR into a state that is acceptable, then this can be
resolved, Arthur. But at this point that hasn't occurred.
--
___
Python tracker
<https://bugs.python.org/i
Change by Brett Cannon :
--
nosy: +michael.foord, rbcollins
___
Python tracker
<https://bugs.python.org/issue35676>
___
___
Python-bugs-list mailing list
Unsub
Change by Brett Cannon :
--
title: Enable manylinux1 builds on Pipelines -> Enable manylinux1 builds on
Pipelines for CI testing
___
Python tracker
<https://bugs.python.org/issu
Change by Brett Cannon :
--
components: +Library (Lib), Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue35
Change by Brett Cannon :
--
title: 3.8 needlessly breaks weak references for UUIDs -> [uuid] 3.8 breaks
weak references for UUIDs
___
Python tracker
<https://bugs.python.org/issu
Change by Brett Cannon :
--
title: Division by 2 in statistics.median -> [statistics] Division by 2 in
statistics.median
___
Python tracker
<https://bugs.python.org/issu
Change by Brett Cannon :
--
nosy: +steven.daprano
___
Python tracker
<https://bugs.python.org/issue35698>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Brett R :
We are seeing a crash apparently in crypt.py when invoked via SaltStack and
have narrowed it down to some change in the Linux kernel introduced by this
security update: https://access.redhat.com/errata/RHSA-2018:3083
Linux kernel 3.10.0-862.14.4.el7.x86_64 works
Brett Cannon added the comment:
First, Cheryl, thanks for taking this on!
I think one way to potentially simplify this whole situation about the
whitespace for the prompt is to actually store the raw value that gets passed
into EnvBuilder instead of the prompt as formatted for the
Change by Brett Cannon :
--
title: Missing component in table after getElementsByTagName("nn") ->
[xml.minidom] Missing component in table after getElementsByTagName("nn")
___
Python tracker
<https://
Brett R added the comment:
Karthikeyan,
Thank you for looking into this. I have been trying, in the background, to make
further progress on this issue but progress is slow and other issues crop up.
While the version of Python here is old, it was the latest in RHEL/CentOS 7.5.
We are trying
Brett Cannon added the comment:
New changeset 1dc5cb9cb3447211069a7788208254b1cfa8ec98 by Brett Cannon (Nina
Zakharenko) in branch 'master':
bpo-35887: Add make regen-importlib step to importlib._bootstrap docstring
(GH-11777)
https://github.com/python/cpyt
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue12317>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
Can this be closed?
--
___
Python tracker
<https://bugs.python.org/issue35321>
___
___
Python-bugs-list mailing list
Unsub
Change by Brett Cannon :
--
nosy: +barry, eric.smith, eric.snow, ncoghlan
___
Python tracker
<https://bugs.python.org/issue35843>
___
___
Python-bugs-list mailin
Brett Cannon added the comment:
I think upgrading the scripts to read from pyvenv.cfg is a separate issue per
activation script (e.g. an issue for PowerShell, an issue for fish, etc.) as
this could be done piecemeal.
One benefit to doing this is it would help move towards the activation
Brett Cannon added the comment:
As stated on the PR, changing the code isn't going to be worth it, but updating
the docs would be nice.
--
___
Python tracker
<https://bugs.python.org/is
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue29757>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
I consider this an enhancement since you do have a loop in your symlinks and so
having it not exactly work isn't totally shocking. But that doesn't mean that
if someone can come up with a reasonable solution to fixing this annoyance it
woudn't
Brett Cannon added the comment:
And I don't know what a good solution would be. :) I.e. should some other
exception be raised? Should it be ignored? I just don't know personally.
--
___
Python tracker
<https://bugs.python.o
Brett Cannon added the comment:
As brought up on the PR, it turns out Path.absolute() is extremely under-tested.
Perhaps we should deprecate Path.absolute() instead of document it and properly
test it (and the testing will be necessary to move forward with the
documentation)? Path.resolve
Changes by Brett Cannon :
--
pull_requests: +361
___
Python tracker
<http://bugs.python.org/issue29455>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
Thanks for the PR, Marco!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Brett Cannon added the comment:
I've closed the PR on GitHub until we decide whether we just want to deprecate
Path.absolute() in favour of Path.resolve().
--
___
Python tracker
<http://bugs.python.org/is
Changes by Brett Cannon :
--
assignee: docs@python -> brett.cannon
___
Python tracker
<http://bugs.python.org/issue26213>
___
___
Python-bugs-list mai
Changes by Brett Cannon :
--
pull_requests: +366
___
Python tracker
<http://bugs.python.org/issue26213>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Brett Cannon :
--
pull_requests: +367
___
Python tracker
<http://bugs.python.org/issue26213>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
Thanks to Ivan for the PRs!
--
resolution: -> fixed
stage: needs patch -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.or
Brett Cannon added the comment:
git actually does not always shorten to 7 characters. In git 2.11 (I think)
they shorten to the shortest length to guarantee uniqueness. So `git rev-parse
--short HEAD` gives a hash of de04644627 which is 10 characters
Changes by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<http://bugs.python.org/issue29708>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
I've gone ahead and closed this. Thanks for taking the time to check in on
this, James!
--
nosy: +brett.cannon
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python
2301 - 2400 of 5934 matches
Mail list logo