Brett Cannon added the comment:
I think the question is how often in real code to people want to catch all
exceptions produced by a package or module but not any others. Perhaps it would
be better to re-word the advice that when there are many related exceptions
that it is suggested you
Brett Cannon added the comment:
If it isn't leaking in 3.8 then it's possibly not disposing of the event loop
(I added a check for that in
https://github.com/python/cpython/commit/8425de4147eb8d83befbb8ea77516fc764bb4309#diff-226dcee10b9d2f379e54d4415489236f
).
--
nosy
Change by Brett Cannon :
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/issue34498>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
I think your second proposal sounds about right, Alexey.
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue34
Brett Cannon added the comment:
Please don't use over-the-top language like "completely unjustifiable" because
it is unnecessary and in this case wrong. We treat our documentation as a
recording of the semantics of the stdlib as well as a recording of what
semantic changes occurr
Brett Cannon added the comment:
Do realize that anything which starts with an underscore, like _check, is
considered a private API.
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue34
Brett Cannon added the comment:
Saying "the available functionality is massively inefficient" is unnecessarily
hostile towards those of us who actually wrote and maintain that code. Without
diving into the code, chances are that requirement is there so that the C code
can
Brett Cannon added the comment:
Any interest in submitting a pull request to update the documentation?
--
assignee: -> docs@python
components: +Documentation
nosy: +brett.cannon, docs@python
title: Removal of kwargs for int() etc not described as change -> Removal of
Brett Cannon added the comment:
I can't reproduce with master on macOS.
--
___
Python tracker
<https://bugs.python.org/issue34200>
___
___
Python-bugs-list m
Brett Cannon added the comment:
"From our discussion off the issue tracker, it seems that your contention is
that any C API calls can arbitrarily release the GIL, and the calling function
can not be said to "hold" the GIL. If this is true than this is not a bug and
can be cl
Brett Cannon added the comment:
I agree with Christian; this is an implementation detail so it should be
flagged as private/internal somehow.
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue34
Brett Cannon added the comment:
I agree with Eric that without concrete details I suspect everything is working
as expected. E.g.
```python
class Foo:
attr = -13
ins = Foo()
ins.attr = 42
print(ins.attr)
del ins.attr
print(ins.attr)
```
--
nosy: +brett.cannon
title: Deletion
Brett Cannon added the comment:
This will be a semantic change to the value of co_filename so I don't think
this can safely be backported.
--
versions: -Python 2.7, Python 3.7
___
Python tracker
<https://bugs.python.org/issue18
Change by Brett Cannon :
--
nosy: +twouters
___
Python tracker
<https://bugs.python.org/issue18307>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
On Mon, Aug 6, 2018, 13:56 Erik Janssens, wrote:
>
> Erik Janssens added the comment:
>
> is there a particular reason for PyOS_FSPath to live in posixmodule.c
>
It's there because the C API for the os module is kept
Brett Cannon added the comment:
On Sun, Aug 5, 2018, 08:55 Nick Coghlan, wrote:
>
> Nick Coghlan added the comment:
>
> While I'd be inclined to agree with Paul's analysis if CPython were a
> greenfield project, I also think if SageMath had already been ported to
> Python
Brett Cannon added the comment:
On Sat, Aug 4, 2018, 16:07 Jeroen Demeyer, wrote:
>
> Jeroen Demeyer added the comment:
>
> To everybody who mentioned that Cython sources don't belong on sys.path:
> where *do* they belong then?
>
In a subdirectory similar to __pycache__.
Brett Cannon added the comment:
On Sat, Aug 4, 2018, 11:52 Jeroen Demeyer, wrote:
>
> Jeroen Demeyer added the comment:
>
> > In my view (and that of the documentation for sys.path), sys.path is
> where you put things that the Python interpreter can load - .so files, .p
Change by Brett Cannon :
--
nosy: +brett.cannon, eric.snow, ncoghlan, petr.viktorin
___
Python tracker
<https://bugs.python.org/issue32797>
___
___
Python-bug
Change by Brett Cannon :
--
resolution: -> wont fix
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34312>
___
___
Brett Cannon added the comment:
Teammate of mine tripped up against this because he tried to use a list.
--
___
Python tracker
<https://bugs.python.org/issue34
New submission from Brett Cannon :
str.endswith() and str.startswith() only takes str or a tuple of str. It might
be nice to make this str or an iterable of str (and that order must be kept so
that a string isn't treated as an iterable of length-1 str).
--
components: Interpreter
Brett Cannon added the comment:
Could be related to https://bugs.python.org/issue21446 .
--
nosy: +berker.peksag
___
Python tracker
<https://bugs.python.org/issue34
Brett Cannon added the comment:
Should this issue be closed, Tim, after you update for Serhiy's suggestion?
(Basically I'm just making sure you know issues are not automatically closed
after merge :) .
--
nosy: +brett.cannon
___
Python tracker
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue25083>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
I think we said backporting fixers was fine but I honestly don't remember.
On Sat, Jul 21, 2018, 23:22 Berker Peksag, wrote:
>
> Berker Peksag added the comment:
>
> Thanks, Brett. I've opened PR 8391. Should we backport this to 3.7? We d
Change by Brett Cannon :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34163>
___
___
Change by Brett Cannon :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34143>
___
___
Brett Cannon added the comment:
If you're okay with the PR being rejected because the decision is the method
isn't desired, then feel free to go ahead and create a PR, Engin! But if you
want to a better chance that it will eventually go in then I would wait for
consensus.
--
nosy
Brett Cannon added the comment:
Just an FYI, Nathaniel, your title and message are bit "pushy". I've gone ahead
and tweaked the title.
--
nosy: +brett.cannon
title: ValueError should not be documented as being restricted to only "a
built-in operation or function
Brett Cannon added the comment:
If there's no spec, Michael, then your work-around is the next best option (and
reloading never actually replaces the actual module object or it's dict/global
namespace because we don't know who is holding on to a reference).
--
nosy: +ncoghlan
New submission from Brett Cannon :
The idea came up on python-dev to tweak the names of generator expressions to
"generator comprehensions" to align more with list|set|dict comprehensions.
This would be strictly a doc change (for now). A reference to generator
expressions shou
Brett Cannon added the comment:
co_extra_freefuncs is an array of pointers, so there's no way for it to be
uninitialized unless you didn't initialize the interpreter state
(https://github.com/python/cpython/blob/b193fa996a746111252156f11fb14c12fd6267e6/Include/pystate.h#L155).
And looking
Brett Cannon added the comment:
I would still fix it as I suspect there will be a burst of users of this come
2020 and at this point it won't be a compatibility issue going forward since
3.4 is so old. :)
--
___
Python tracker
<ht
Brett Cannon added the comment:
I also agree that there's no bug here, so I'm marking this an enhancement and
removing the regression label.
--
nosy: +brett.cannon
type: resource usage -> enhancement
___
Python tracker
<https://bugs.pyth
Change by Brett Cannon :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34094>
___
___
Brett Cannon added the comment:
I'm planning to review the PR at some point.
On Sun, Jul 8, 2018, 00:42 Serhiy Storchaka, wrote:
>
> Serhiy Storchaka added the comment:
>
> Could anybody please make a review? This is just a first step, we need to
> do it before mak
New submission from Brett Cannon :
When you run `py -h` it says you can use -0 or --list as well as -0p or
--list-paths, but both --list and --list-paths don't work (the -0-based options
do, though).
--
components: Windows
messages: 321187
nosy: brett.cannon, paul.moore, steve.dower
Brett Cannon added the comment:
My only answer to Ethan is "don't use eggs". :)
--
___
Python tracker
<https://bugs.python.org/issue33944>
___
___
Brett Cannon added the comment:
Windows has symlinks now I believe, you just have to turn them on.
And I would say there is no need for alternative. If a package needs to do
something funky they can do it in their __init__.py file. Otherwise if I don't
import a package it shouldn't get
Change by Brett Cannon :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue33
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue33912>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
The prompt issues I was having are fixed in PowerShell 6.1.0-preview3, so as
soon at 6.1.0 reaches final I will start working on this again.
--
___
Python tracker
<https://bugs.python.org/issue32
Brett Cannon added the comment:
FYI I had a teacher reach out to me who wanted to use heapq as an example of
functions-based API that worked without resorting to OOP but ran into this
issue of heapq being limited to lists.
--
nosy: +brett.cannon
Brett Cannon added the comment:
New changeset 3f45f5da8eb052f1b54d37086c67b7094f35b67b by Brett Cannon (Zackery
Spytz) in branch 'master':
bpo-33375: Fix GCC warning in Python/_warnings.c (GH-7556)
https://github.com/python/cpython/commit/3f45f5da8eb052f1b54d37086c67b7094f35b67b
Brett Cannon added the comment:
Thanks everyone for making this happen!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
Looks like there is some PowerShell Core compatibility issues to work through
first. Primarily the prompt seems the venv prompt additions show up twice but
then disappear if you arrow up. There is also an issue of path separators
needing to be updated
Brett Cannon added the comment:
New changeset 11a896652ee98aa44e59ed25237f9efb56635dcf by Brett Cannon (Thomas
Kluyver) in branch 'master':
bpo-33375: Get filename for warnings from frame.f_code.co_filename (GH-6622)
https://github.com/python/cpython/commit
Change by Brett Cannon :
--
components: +Library (Lib) -Interpreter Core
___
Python tracker
<https://bugs.python.org/issue33777>
___
___
Python-bugs-list mailin
Change by Brett Cannon :
--
nosy: +dino.viehland
___
Python tracker
<https://bugs.python.org/issue32584>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
Was this on your machine or has this started across CI or buildbots? And was
this from a build or installed copy?
--
___
Python tracker
<https://bugs.python.org/issue33
Change by Brett Cannon :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue33755>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
I'm personally not loving the idea either by re-purposing Ellipsis for this
since my brain keeps thinking you're trying to go two levels up instead of just
one with that extra dot. It should also be mentioned that paths ending in an
ellipsis has actual
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
New changeset 8425de4147eb8d83befbb8ea77516fc764bb4309 by Brett Cannon in
branch 'master':
bpo-33562: Check the global asyncio event loop policy isn't set after any tests
(GH-7328)
https://github.com/python/cpython/commit
Change by Brett Cannon :
--
pull_requests: +6957
___
Python tracker
<https://bugs.python.org/issue33562>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
New changeset 2e01b75884892d5aabdaab658fbd17f7a7ccebaa by Brett Cannon (Scott
Sanderson) in branch 'master':
bpo-29235: Make cProfile.Profile a context manager (GH-6808)
https://github.com/python/cpython/commit/2e01b75884892d5aabdaab658fbd17f7a7ccebaa
Brett Cannon <br...@python.org> added the comment:
Just to quickly touch on Matthias' question about opt-in or deprecations, a key
thing to note is the ast module is automatically generated from the ASDL file,
so either of those approaches would require developing a new mechanism in the
Change by Brett Cannon <br...@python.org>:
--
nosy: +ncoghlan, petr.viktorin
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Brett Cannon <br...@python.org>:
--
keywords: +patch
pull_requests: +6617
stage: -> patch review
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
New submission from Brett Cannon <br...@python.org>:
There were not checks in test.libregrtest.save_env to make sure tests were not
mucking with the default event loop. The settings to check seem to be:
'asyncio.get_event_loop_policy', 'asyncio.get_event_loop',
'asyncio_get_exception_h
Brett Cannon <br...@python.org> added the comment:
I don't thnk they are quite the same. The other issue is about turning off the
peepholer entirely while this one is about breaking up the optimizations that
-O and -OO do so you can choose which ones you want (e.g. still drop docs
Brett Cannon <br...@python.org> added the comment:
There's no specific reason as to why that would happen as no files are kept
open after importing is finished.
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Brett Cannon <br...@python.org>:
--
nosy: -brett.cannon
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32414>
___
_
Brett Cannon <br...@python.org> added the comment:
https://www.visualstudio.com/team-services/
It's Microsoft's GitHub hosting, issue tracking, and CI/CD platform.
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Brett Cannon <br...@python.org>:
--
assignee: -> barry
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33465>
___
__
Brett Cannon <br...@python.org> added the comment:
I didn't bother digging as I assume this was done for a reason. I left a
request for changes on the PR to make the code has a stricter `try` block.
--
___
Python tracker <rep...@bugs.p
Brett Cannon <br...@python.org> added the comment:
I just wanted to say thanks to Steve for at least taking the time to open the
issues to ask if we would consider accepting the proposed changes.
--
nosy: +brett.cannon
___
Python tracke
Brett Cannon <br...@python.org> added the comment:
Thanks!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<https://bu
Brett Cannon <br...@python.org> added the comment:
New changeset 5e6312c39e1fc32ecef18d340bcd5f7e314170e1 by Brett Cannon (ukwksk)
in branch 'master':
bpo-33443 Fix typo in Python/import.c (GH-6722)
https://github.com/python/cpython/commit/5e6312c39e1fc32ecef18d340bcd5f7e31
Brett Cannon <br...@python.org> added the comment:
Reference to some discussions on this topic
https://groups.google.com/forum/#!topic/python-ideas/4oRgwrV1tVA
--
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Brett Cannon <br...@python.org>:
--
title: __origin__ invariant broken -> [typing] __origin__ invariant broken
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
Brett Cannon <br...@python.org> added the comment:
I just added myself to review the PR. At worst I will get to it during the
sprints at PyCon US.
On Thu, 3 May 2018 at 12:52 Thomas Kluyver <rep...@bugs.python.org> wrote:
>
> Thomas Kluyver <tho...@kluyver.me.uk> a
Change by Brett Cannon <br...@python.org>:
--
nosy: +petr.viktorin
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32414>
___
_
Change by Brett Cannon <br...@python.org>:
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<https://bu
Change by Brett Cannon <br...@python.org>:
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<https://bu
Change by Brett Cannon <br...@python.org>:
--
nosy: +brett.cannon
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33375>
___
_
Brett Cannon <br...@python.org> added the comment:
New changeset 3ab9365dca8438f89b2060cd3eebe00606133dc4 by Brett Cannon in
branch 'master':
bpo-33254: do not return an empty list when asking for the contents of a
namespace package (GH-6467)
https://github.com/python/cpython/
Change by Brett Cannon <br...@python.org>:
--
assignee: -> brett.cannon
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32718>
___
_
Change by Brett Cannon <br...@python.org>:
--
type: -> enhancement
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33370>
___
__
Brett Cannon <br...@python.org> added the comment:
Python's standard library isn't typed so running mypy on it isn't really
beneficial at the moment. Plus you can add .mypy_cache to your global
.gitignore file.
I'm not saying we can't add it, I'm just saying it isn't a pr
Change by Brett Cannon <br...@python.org>:
--
title: Subcommand abbreviations -> [argparse] Add subcommand abbreviations
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
Brett Cannon <br...@python.org> added the comment:
@Nick: We've had this discussion before about specs being a "receipt" of import
versus not and the last time we agreed on not. :) That's why we raise a warning
if __package__ doesn't match __spec__.parent:
https://github.co
Change by Brett Cannon <br...@python.org>:
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<https://bu
Change by Brett Cannon <br...@python.org>:
--
title: importlib.resources.contents() incorrectly yields an empty list -> Have
importlib.resources.contents() return an interable instead of an iterator
___
Python tracker <rep...@bugs.python
Change by Brett Cannon <br...@python.org>:
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker <rep...@bugs.python.org>
<https://bu
Brett Cannon <br...@python.org> added the comment:
New changeset a8c342465b977115b88a4f130833a2fd4c4e7356 by Brett Cannon in
branch 'master':
bpo-25427: Remove pyvenv (GH-5962)
https://github.com/python/cpython/commit/a8c342465b977115b88a4f130833a2fd4c
Change by Brett Cannon <br...@python.org>:
--
keywords: +patch
pull_requests: +6250
stage: needs patch -> patch review
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
New submission from Brett Cannon <br...@python.org>:
`parser.st2list(parser.suite(""), col_info=True)` causes:
Fatal Python error: a function returned a result with an error set
IndexError: list assignment index out of range
```
The above exception was the direct cause
Brett Cannon <br...@python.org> added the comment:
We don't having to do with the stegano project. It looks like they specified
the wrong encoding in their setup.py. (This also isn't the issue tracker for
pip, but I don't think they have the bug.)
--
nosy: +brett.cannon
reso
Brett Cannon <br...@python.org> added the comment:
And we do have women on the team, so please minimize the "fellas" comments.
--
___
Python tracker <rep...@bugs.python.org>
<https://b
Brett Cannon <br...@python.org> added the comment:
Are you seeing the same issue on Python 3.6.5?
--
nosy: +belopolsky, brett.cannon
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python
Change by Brett Cannon <br...@python.org>:
--
keywords: +patch
pull_requests: +6162
stage: test needed -> patch review
___
Python tracker <rep...@bugs.python.org>
<https://bugs.pyt
Change by Brett Cannon <br...@python.org>:
--
priority: normal -> low
___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33277>
___
__
New submission from Brett Cannon <br...@python.org>:
If you look at
https://docs.python.org/3/reference/import.html#import-related-module-attributes
you will notice there are a lot of attributes on modules. But since the
introduction of module specs
(https://docs.python.org/3/l
New submission from Brett Cannon <br...@python.org>:
https://docs.python.org/3/reference/import.html#module-path says that
"regardless of its value", __path__'s mere existence is key. But then later the
docs say "__path__ must be an iterable of strings, but it may be
Change by Brett Cannon <br...@python.org>:
--
stage: -> needs patch
type: -> enhancement
versions: +Python 3.8
___
Python tracker <rep...@bugs.python.org>
<https://bugs.
Brett Cannon <br...@python.org> added the comment:
Without knowing the exact Python version it's hard to tell as line 59 changed
between Python 3.5 and where Python 3.6 is now (FYI, the line as it currently
sits in Python 3.6 is
https://github.com/python/cpytho
Brett Cannon <br...@python.org> added the comment:
I had to stare at it for a while since I knew it was for namespace packages and
I'm so used to them returning a magical value to signal that fact, but then
realize we don't even support namespace packages so it wasn't magical
New submission from Brett Cannon <br...@python.org>:
If you look at
https://github.com/python/cpython/blob/0f914b5b5f6ba186afd7112fc851c97247076f70/Lib/importlib/resources.py#L247
you will notice that the generator for importlib.resources.contents() return
an empty list. While the
1001 - 1100 of 5790 matches
Mail list logo