Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue32414>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon 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
<https://bugs.python.org/is
Brett Cannon 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 docstrings
but keep as
New submission from Brett Cannon :
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',
'asyn
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +6617
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33562>
___
___
Py
Change by Brett Cannon :
--
nosy: +ncoghlan, petr.viktorin
___
Python tracker
<https://bugs.python.org/issue33629>
___
___
Python-bugs-list mailing list
Unsub
Brett Cannon 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
code generat
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/2e01b75884892d5aabdaab658fbd17
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 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
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Change by Brett Cannon :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue33755>
___
___
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: +dino.viehland
___
Python tracker
<https://bugs.python.org/issue32584>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
components: +Library (Lib) -Interpreter Core
___
Python tracker
<https://bugs.python.org/issue33777>
___
___
Python-bugs-list mailin
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/cpyt
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:
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:
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/3f45f5da8eb052f1b54d37086c67b7
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:
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
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue33912>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue33
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
Brett Cannon added the comment:
My only answer to Ethan is "don't use eggs". :)
--
___
Python tracker
<https://bugs.python.org/issue33944>
___
___
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.
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 befor
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 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:/
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
&
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).
A
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 should
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).
--
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 fun
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.
-
Change by Brett Cannon :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34143>
___
___
Change by Brett Cannon :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34163>
___
___
Change by Brett Randall :
--
nosy: +javabrett
___
Python tracker
<https://bugs.python.org/issue27805>
___
___
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
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:
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
___
Pyth
Brett Cannon added the comment:
Could be related to https://bugs.python.org/issue21446 .
--
nosy: +berker.peksag
___
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: Interp
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
Change by Brett Cannon :
--
resolution: -> wont fix
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue34312>
___
___
Change by Brett Cannon :
--
nosy: +brett.cannon, eric.snow, ncoghlan, petr.viktorin
___
Python tracker
<https://bugs.python.org/issue32797>
___
___
Python-bug
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
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 __pycach
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
&g
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
Change by Brett Cannon :
--
nosy: +twouters
___
Python tracker
<https://bugs.python.org/issue18307>
___
___
Python-bugs-list mailing list
Unsubscribe:
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/is
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 of
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:
"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 can't reproduce with master on macOS.
--
___
Python tracker
<https://bugs.python.org/issue34200>
___
___
Python-bugs-l
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
kwar
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 use
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:
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 o
Brett Cannon added the comment:
I think your second proposal sounds about right, Alexey.
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue34
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:
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
).
-
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:
I'm not questioning if people have ever created a base exception for an entire
package, I'm just asking how often it's actually used when the base exception
didn't make sense outside of the rule-of-thumb Nathaniel is pointing out?
For inst
Brett Cannon added the comment:
I think Serhiy's PR is basically done, so now the question is do we want to
merge it in and drop the C code? ;)
I obviously say yes because this is I/O-bound code and so the switch shouldn't
be enough of a performance hit to warrant blocking t
Change by Brett Cannon :
--
title: Zipfile encryption function -> Add encryption support to zipfile
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
I'm personally in no rush and I assume Serhiy isn't either with 3.8 cut-off
quite a ways out, so I see no rush.
--
___
Python tracker
<https://bugs.python.o
Brett Cannon added the comment:
Maybe I'm missing something, but who is racing whom in this case? All the
examples people have shared are simply running the test module directly which
means there's no parallelism in the execution of the test runner with other
tests. Does uni
Brett Cannon added the comment:
Karthikeyan is right that translation bugs should be reported on the GitHub
project for the translation.
--
nosy: +brett.cannon
resolution: -> third party
stage: -> resolved
status: open -> closed
_
Brett Cannon added the comment:
So it sounds like that maybe we need to decide if we are going to replace
zipimport with Serhiy's Python version. And if we do decide to go with the
Python code then it should get updated to use _imp._fix_co_filename().
Regardless of the decision, obvi
Brett Cannon added the comment:
I'm agreeing with all the other core devs (other than Victor ;) that I don't
quite think this should go in. While I appreciate the work Pierre put into the
PR, I just can't find myself to want to deal with future bug reports for this
while
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +8746
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32718>
___
___
Py
Brett Cannon added the comment:
Thanks for the understanding, Pierre (and thanks for the work on Brython!).
On Sat., Sep. 15, 2018, 08:25 Pierre Quentel,
wrote:
>
> Pierre Quentel added the comment:
>
> Brett,
>
> Thanks for taking the time, you and other core devs, to
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Brett Cannon :
--
nosy: +davin, pitrou
___
Python tracker
<https://bugs.python.org/issue34781>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue30964>
___
___
Python-bugs-list
Change by Brett Cannon :
--
nosy: +asvetlov
___
Python tracker
<https://bugs.python.org/issue34802>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
The failure line that Cheryl found in her traceback is at
https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap.py#L101 .
Maybe Antoine has an idea since he did a bunch of work on import locking?
--
nosy: +pitrou
Brett Cannon added the comment:
So the documentation reads that way because it was originally written for
strftime and has been repurposed to represent both. If the code does the right
thing then adding a note that strptime supports single digits accurately would
probably be a welcome pull
Brett Cannon added the comment:
I think there might be more going on here as the build target as it uses the
built Python which has special logic to notice it is being built in a checkout.
Did you launch the build from a directory other than the git checkout? Or were
you trying to do a
New submission from Brett Cannon :
Having venv install files into Scripts/ on Windows but into bin/ on UNIX is
troublesome for anything that tries to be cross-platform regarding virtual
environments. Having a way to create a virtual environment on Windows where
bin/ is used over Scripts
Change by Brett Cannon :
--
assignee: -> brett.cannon
___
Python tracker
<https://bugs.python.org/issue35003>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Brett Cannon :
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
There aren't any type hints in the 'ast' module in Python itself, so this is an
issue with typeshed. Closing as "third party".
--
nosy: +brett.cannon
resolution: -> third party
stage: ->
Brett Cannon added the comment:
Making this a feature request.
--
nosy: +brett.cannon
title: functools.lru_cache does not work with coroutines -> [functools] provide
an async-compatible version of functools.lru_cache
type: -> enhancement
versions: -Python 3.5, Python 3.6,
Change by Brett Cannon :
--
resolution: -> wont fix
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
I'm not sure if it's still relevant. :) Feel free to look at the code and come
back here with a recommendation as to whether this is still necessary or not.
--
___
Python tracker
<https://bugs.python.o
Brett Cannon added the comment:
New changeset 12e696b4f071ffe0d585b7f0d0d8020fd328bfdd by Brett Cannon
(Stéphane Wirtel) in branch 'master':
bpo-35042: Use the :pep: role where a PEP is specified (#10036)
https://github.com/python/cpython/commit/12e696b4f071ffe0d585b7f0d0d802
Brett Cannon added the comment:
I'm with Serhiy that exceptions should not be swallowed up unless there's a
very good reason to, and in this instance there isn't if there's a bug in code
as that low of a level as debugging that would be atrocious.
--
nosy: +bre
Brett Cannon added the comment:
No, it's not a problem, just a potential enhancement.
--
nosy: +brett.cannon, paul.moore, steve.dower, tim.golden, zach.ware
type: compile error -> enhancement
___
Python tracker
<https://bugs.python.org
Change by Brett Cannon :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue35
Brett Cannon added the comment:
There isn't really a maintainer. I originally wrote it to help out new
developers, but no one owns it. We just let people submit fixes they find
useful and add them.
--
components: +Demos and Tools
versions: -Python 2.7, Python 3.1, Python 3.2, P
Brett Cannon added the comment:
So I think I have come up with a way to expose a new method that makes this
use-case doable and in a sane manner. Richard, let me know what you think so
that I know that this makes sense before I commit myself to the new method
(init_module_attrs())::
--- a
New submission from Brett Cannon:
As part of issue #14797 I'm trying to remove all uses of
imp.find_module/load_module since the API is so bad in the face of importers.
See the attached patch to replace the one use in IDLE. It should actually be
more accepting of alternative importers
Changes by Brett Cannon :
--
dependencies: +Stop using imp in IDLE
___
Python tracker
<http://bugs.python.org/issue14797>
___
___
Python-bugs-list mailin
New submission from Brett Cannon:
Is there a reason NamespaceLoader is undocumented?
--
assignee: barry
components: Documentation
keywords: 3.3regression
messages: 189969
nosy: barry, brett.cannon, eric.smith
priority: normal
severity: normal
stage: needs patch
status: open
title
New submission from Brett Cannon:
--
assignee: brett.cannon
components: Library (Lib)
messages: 189970
nosy: barry, brett.cannon, eric.smith
priority: normal
severity: normal
stage: needs patch
status: open
title: Register NamespaceLoader with importlib.abc.Loader
type: behavior
New submission from Brett Cannon:
Is there a reason that is_package() is not defined for NamespaceLoader? If it's
just an oversight then adding it would let -m would work with namespace
packages. The other abstract methods on InspectLoader can also be implemented
or raise ImportErr
2801 - 2900 of 5934 matches
Mail list logo