Brett Cannon added the comment:
New changeset f2fffd41b42d88fe36b483852ae33d5a415b7082 by Brett Cannon (Miss
Islington (bot)) in branch '3.7':
bpo-32758: Warn that ast.parse() and ast.literal_eval() can segfault the
interpreter (GH-5960) (GH-6041)
https://github.com/python/cpyt
Brett Cannon added the comment:
I have the changes in for Python 3 for the ast module.
Updated TODO list:
- [x] ast module
- [ ] compile()
- [ ] eval() for >= 3.7
- [ ] exec() for >= 3.7
- [ ] dbm.dumb.open()
- [ ] inspect
--
___
Python t
Brett Cannon added the comment:
Actually, the TODO list is:
- [x] ast module for Python 3
- [ ] compile()
- [ ] eval() for >= 3.7
- [ ] exec() for >= 3.7
- [ ] dbm.dumb.open()
- [ ] inspect
- [ ] ast module for Python 2 (see https://github.com/python/cpython/pul
Change by Brett Cannon :
--
pull_requests: +5804
___
Python tracker
<https://bugs.python.org/issue32758>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
Thanks for the feedback, Serhiy! Based on that, the new TODO list is:
- [x] ast module for Python 3
- [x] compile() for Python 3
- [ ] dbm.dumb.open()
- [ ] ast module for Python 2 (see https://github.com/python/cpython/pull/5960)
- [ ] compile() for Python 2
Brett Cannon added the comment:
@Serhiy: Correct, which is what the warning says:
https://github.com/python/cpython/pull/6043/files .
--
___
Python tracker
<https://bugs.python.org/issue32
Change by Brett Cannon :
--
pull_requests: +5808
___
Python tracker
<https://bugs.python.org/issue32758>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
- [x] ast module for Python 3
- [x] compile() for Python 3
- [x] dbm.dumb.open()
- [ ] ast module for Python 2 (see https://github.com/python/cpython/pull/5960)
- [ ] compile() for Python 2 (see https://github.com/python/cpython/pull/6043)
At this point there is
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue33015>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
Please open a separate issue for the test_poplib issue.
--
___
Python tracker
<https://bugs.python.org/issue32642>
___
___
Pytho
Change by Brett Cannon :
--
type: behavior -> enhancement
versions: +Python 3.8 -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python
3.7
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
The proposed change for 3.8 and 3.7 seems reasonable to me.
--
___
Python tracker
<https://bugs.python.org/issue33053>
___
___
Brett Cannon added the comment:
I can't make any promises unfortunately.
--
___
Python tracker
<https://bugs.python.org/issue33053>
___
___
Python-bugs-l
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue33124>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +ncoghlan
___
Python tracker
<https://bugs.python.org/issue33119>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
Not sure if this has missed the 3.7 train, but bumping this to check if the
discussion on distutils-sig ever occurred and what the result of it was.
(Otherwise the PR just needs a news entry and it should be ready.)
--
versions: +Python 3.8
Brett Cannon added the comment:
New changeset 5cbb84106efefd200933aa31e22abf39267d2557 by Brett Cannon
(Himanshu Lakhara) in branch 'master':
bpo-27428: Fix WindowsRegistryFinder documentation to list appropriate ABC
(GH-6061)
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 :
--
keywords: +3.7regression
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue33128>
___
___
Python-bugs-list mailin
Brett Cannon added the comment:
There's a bunch of things wrong with zipimport, just ask Thomas. ;)
--
nosy: +twouters
___
Python tracker
<https://bugs.python.org/is
Change by Brett Cannon :
--
nosy: +brett.cannon, eric.snow, ncoghlan
___
Python tracker
<https://bugs.python.org/issue33169>
___
___
Python-bugs-list mailin
Brett Cannon added the comment:
Correct because as documented it calls invalidate_caches() on meta-path finders
and the one that handles sys.path calls invalidate_caches() on the finders
found in sys.path_importer_cache() (as documented by
https://docs.python.org/3/library/importlib.html
Brett Cannon added the comment:
OK, I will update importlib.machinery.PathFinder.invalidate_caches() to also
drop None from sys.path_importer_cache (objects that are not None and do not
define invalidate_caches() will be left alone just like they are today). I
should hopefully be able to get
Brett Cannon added the comment:
The other problem is zipimport is written in C and no one wants to deal with
that headache if possible. ;) We actually tweaked the importlib.resources API
specifically to avoid having to muck with zipimport's C code as it would have
required major su
New submission from Brett Rasmussen :
The antivirus program 'AVG Business Edition' reported that the file
python-2.7.14.amd64.msi contained "Trojan horse SCGeneric_c6.HJQ".
The virustotal.com web site reported a match on MD5
370014d73c3059f610c27365def62058 for file pyt
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue33210>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
And mostly for completeness, I know Thomas has maligned the fact that zipimport
has tests for some crazy things in its semantics which made it difficult for
him to improve the module.
--
___
Python tracker
<ht
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +6107
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33169>
___
___
Py
Brett Cannon added the comment:
New changeset 9e2be60634914f23db2ae5624e4acc9335bf5fea by Brett Cannon in
branch 'master':
bpo-33169: Remove values of `None` from sys.path_importer_cache when
invalidating caches (GH-6402)
https://github.com/python/cpyt
Change by Brett Cannon :
--
pull_requests: +6108
___
Python tracker
<https://bugs.python.org/issue33169>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
All done in 3.7 and master.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
New changeset a09bb87c1eebb07b01b8105cf536704893aec565 by Brett Cannon in
branch '3.7':
[3.7] bpo-33169: Remove values of `None` from sys.path_importer_cache when
invalidating caches (GH-6402) (GH-6403)
https://github.com/python/cpyt
Brett Cannon added the comment:
+1 from me for Nick's suggestion.
--
___
Python tracker
<https://bugs.python.org/issue33237>
___
___
Python-bugs-list m
New submission from Brett Cannon :
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 intent was to have no values
Brett Cannon 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 at all. ;)
And ye
Brett Cannon 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/cpython/blob/e98e3385f2acfc6d98f70f8e66c96b752d0
Change by Brett Cannon :
--
stage: -> needs patch
type: -> enhancement
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue33270>
___
__
New submission from Brett Cannon :
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 empty".
Techn
New submission from Brett Cannon :
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/library/importlib.html
Change by Brett Cannon :
--
priority: normal -> low
___
Python tracker
<https://bugs.python.org/issue33277>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +6162
stage: test needed -> patch review
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
Are you seeing the same issue on Python 3.6.5?
--
nosy: +belopolsky, brett.cannon
___
Python tracker
<https://bugs.python.org/issue33
Brett Cannon added the comment:
And we do have women on the team, so please minimize the "fellas" comments.
--
___
Python tracker
<https://bugs.python.o
Brett Cannon 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
resolution:
New submission from Brett Cannon :
`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 of the following exception:
S
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +6250
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
New changeset a8c342465b977115b88a4f130833a2fd4c4e7356 by Brett Cannon in
branch 'master':
bpo-25427: Remove pyvenv (GH-5962)
https://github.com/python/cpython/commit/a8c342465b977115b88a4f130833a2
Change by Brett Cannon :
--
resolution: -> fixed
stage: commit review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Brett Cannon :
--
title: importlib.resources.contents() incorrectly yields an empty list -> Have
importlib.resources.contents() return an interable instead of an iterator
___
Python tracker
<https://bugs.python.org/issu
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon 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://githu
Change by Brett Cannon :
--
title: Subcommand abbreviations -> [argparse] Add subcommand abbreviations
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon 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 priori
Change by Brett Cannon :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue33370>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Brett Cannon :
--
assignee: -> brett.cannon
___
Python tracker
<https://bugs.python.org/issue32718>
___
___
Python-bugs-list mailing list
Unsubscrib
Brett Cannon 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/cpyt
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue33375>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Brett Cannon :
--
nosy: +petr.viktorin
___
Python tracker
<https://bugs.python.org/issue32414>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon 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 wrote:
>
> Thomas Kluyver added the comment:
>
> Hi Brett! If you get a moment, any review of the linked
Change by Brett Cannon :
--
title: __origin__ invariant broken -> [typing] __origin__ invariant broken
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
Reference to some discussions on this topic
https://groups.google.com/forum/#!topic/python-ideas/4oRgwrV1tVA
--
___
Python tracker
<https://bugs.python.org/issue33
Brett Cannon 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/5e6312c39e1fc32ecef18d340bcd5f7e314170e1
-
Brett Cannon added the comment:
Thanks!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon 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 tracker
<https://bugs.python.
Brett Cannon 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
<https://bugs.python.org/is
Change by Brett Cannon :
--
assignee: -> barry
___
Python tracker
<https://bugs.python.org/issue33465>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Brett Cannon :
--
assignee: -> brett.cannon
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue31602>
___
___
Python-bugs-list mai
Brett Cannon added the comment:
New changeset 01c6a8859ef2ff5545a87cf537573bd342c848bf by Brett Cannon (Oren
Milman) in branch 'master':
bpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a
bad zlib.decompress() (GH-3784)
https://github.com/python/cpyt
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
The whole imp module is deprecated so I'm personally not bothered by
imp.load_source() not being strengthened to be more sane.
--
___
Python tracker
<https://bugs.python.org/is
Brett Cannon added the comment:
The problem with that is it will increase the number of stat calls which we
have always tried to minimize due to performance worries.
https://www.python.org/dev/peps/pep-0552/ has also been accepted which will
take care of this specific case. So while I
Brett Cannon added the comment:
To make the proposal concrete, would you then change
https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap_external.py#L785
to include a `source_mtime != int(time.time())` guard? I think as long as
that's the last check in the guard since
Brett Cannon added the comment:
New changeset db60a5bfa5d5f7a6f1538cc1fe76f0fda57b524e by Brett Cannon (Oren
Milman) in branch 'master':
bpo-31781: Prevent crashes when calling methods of an uninitialized
zipimport.zipimporter object (GH-3986)
https://github.com/python/cpyt
Brett Cannon added the comment:
As always, thanks for the fix, Oren!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
As Nick said, if the overhead of an import statement is that critical, then you
should NOT use the `from ... import ...` form at all and just stick with
`import ...` and if necessary, bind local names to objects off of the final
module or a local name for the
Brett Cannon added the comment:
What's "unclean" in this case? I mean you can always re-run Make after making
changes and the build succeeds, so I'm not quite sure what leads to this state.
--
nosy: +brett.cannon
___
Py
New submission from Brett Cannon :
The term "dunder" is used out in the community regularly, but if you have never
been exposed to it before it can seem a little odd without context.
--
assignee: docs@python
components: Documentation
messages: 305509
nosy: brett.cannon, d
Brett Cannon added the comment:
R. David is correct that currently the policy is there are no type hints in the
stdlib. Now the interesting thing about AC is the type hint info could be kept
just in the docstring and not added to __annotations__ which somewhat goes
around this restriction
Brett Cannon added the comment:
zipimport.py would be frozen just like importlib, so there's no bootstrapping
issue if that's what you're asking.
--
___
Python tracker
<https://bugs.pyt
Brett Cannon added the comment:
Nick pointed me at this issue for the undeprecation of
inspect.getfullargspec(). While I'm fine with the un-deprecation for
compatibility reasons, I would rather the function not last beyond Python 3
un-deprecated. Nick says, though that:
"
Brett Cannon added the comment:
I'm not saying we remove getfullargspec() **right now**, just that we don't
keep it around long-term as it simply can't evolve to keep up with how rich our
parameter support is today and might become in the future. And that's why, for
me,
Brett Cannon added the comment:
Already planning this as a PyPI package (at least to start). See
https://notebooks.azure.com/Brett/libraries/di2Btqj7zSI/html/Lazy%20importing.ipynb
for the design.
--
___
Python tracker
<https://bugs.python.
Brett Cannon added the comment:
Import itself I don't believe calls os.path.realpath(), so this is probably
just something pkgutil happens to do.
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/is
Brett Cannon added the comment:
We don't sell any information to anyone. If you would like to file a bug to
have email addresses obfuscated more then the correct place to file that is
http://psf.upfronthosting.co.za/roundup/meta .
Obviously any help in updating the code would be apprec
Brett Cannon added the comment:
Since the directory is where the code that is being executed exists don't you
have to implicitly trust that directory is secure? Otherwise how can you even
trust the code you're choosing to execute?
--
nosy: +christ
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +4785
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue32248>
___
___
Py
Brett Cannon added the comment:
I vote that it has to work and it should be prepended.
--
___
Python tracker
<https://bugs.python.org/issue32324>
___
___
Pytho
Brett Cannon added the comment:
New changeset 4ac5150e068a3a795ef00465f6dff51747b62b91 by Brett Cannon in
branch 'master':
bpo-32248: Implement importlib.abc.ResourceReader (GH-4892)
https://github.com/python/cpython/commit/4ac5150e068a3a795ef00465f6dff5
Brett Cannon added the comment:
Yep, I assumed implementing the ReourceReader API would be a separate step.
As for the type hints, I thought it was lifted such that new code could include
it but we wouldn't be taking PRs to add them to pre-existing
Brett Cannon added the comment:
Re-opened as a release blocker to make sure we're okay with the potential ABI
breakage.
--
nosy: +ned.deily
priority: normal -> release blocker
status: closed -> open
___
Python tracker
<https://b
Brett Cannon added the comment:
I brought this up on python-ideas, but I think discussing it here may be
better: I think we may need to use a data file format that has an open source
implementation. The tool Yahya used (plantuml) doesn't appear to be open
source, which is a problem fo
Brett Cannon added the comment:
I should mention that over on python-ideas people found the open source code to
plantuml, so I think the format is acceptable for use in the docs.
--
___
Python tracker
<https://bugs.python.org/issue32
Change by Brett Cannon :
--
type: resource usage -> enhancement
___
Python tracker
<https://bugs.python.org/issue32486>
___
___
Python-bugs-list mailing list
Un
Change by Brett Cannon :
--
versions: +Python 3.7 -Python 3.6
___
Python tracker
<https://bugs.python.org/issue32486>
___
___
Python-bugs-list mailing list
Unsub
Change by Brett Cannon :
--
pull_requests: +4975
___
Python tracker
<https://bugs.python.org/issue32248>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
I bet Barry forgot to add some test directories to the makefile.
On Sat, Jan 6, 2018, 10:33 Zachary Ware, wrote:
>
> Zachary Ware added the comment:
>
> I notice that my 'Installed' builder (
> http://buildbot.python.org/all/#/buil
Change by Brett Cannon :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue32525>
___
___
Python-bugs-list
Brett Cannon added the comment:
https://www.visualstudio.com/team-services/
It's Microsoft's GitHub hosting, issue tracking, and CI/CD platform.
--
___
Python tracker
<https://bugs.python.o
2701 - 2800 of 5934 matches
Mail list logo