[issue32758] Stack overflow when parse long expression to AST

2018-03-09 Thread Brett Cannon
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

[issue32758] Stack overflow when parse long expression to AST

2018-03-09 Thread Brett Cannon
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

[issue32758] Stack overflow when parse long expression to AST

2018-03-09 Thread Brett Cannon
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

[issue32758] Stack overflow when parse long expression to AST

2018-03-09 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +5804 ___ Python tracker <https://bugs.python.org/issue32758> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32758] Stack overflow when parse long expression to AST

2018-03-09 Thread Brett Cannon
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

[issue32758] Stack overflow when parse long expression to AST

2018-03-09 Thread Brett Cannon
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

[issue32758] Stack overflow when parse long expression to AST

2018-03-09 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +5808 ___ Python tracker <https://bugs.python.org/issue32758> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32758] Stack overflow when parse long expression to AST

2018-03-09 Thread Brett Cannon
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

[issue33015] Fix function cast warning in thread_pthread.h

2018-03-10 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue33015> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32642] add support for path-like objects in sys.path

2018-03-15 Thread Brett Cannon
Brett Cannon added the comment: Please open a separate issue for the test_poplib issue. -- ___ Python tracker <https://bugs.python.org/issue32642> ___ ___ Pytho

[issue33087] No reliable clean shutdown method

2018-03-19 Thread Brett Cannon
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

[issue33053] Avoid adding an empty directory to sys.path when running a module with `-m`

2018-03-21 Thread Brett Cannon
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> ___ ___

[issue33053] Avoid adding an empty directory to sys.path when running a module with `-m`

2018-03-22 Thread Brett Cannon
Brett Cannon added the comment: I can't make any promises unfortunately. -- ___ Python tracker <https://bugs.python.org/issue33053> ___ ___ Python-bugs-l

[issue33124] Lazy execution of module bytecode

2018-03-22 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue33124> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33119] python sys.argv argument parsing not clear

2018-03-22 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +ncoghlan ___ Python tracker <https://bugs.python.org/issue33119> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32387] Disallow untagged C extension import on major platforms

2018-03-23 Thread Brett Cannon
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

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread Brett Cannon
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

[issue27428] Document WindowsRegistryFinder inherits from MetaPathFinder

2018-03-23 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33128] PathFinder is twice on sys.meta_path

2018-03-26 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +3.7regression nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue33128> ___ ___ Python-bugs-list mailin

[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2018-03-28 Thread Brett Cannon
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

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-03-29 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker <https://bugs.python.org/issue33169> ___ ___ Python-bugs-list mailin

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-03-29 Thread Brett Cannon
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

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-03-31 Thread Brett Cannon
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

[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2018-04-03 Thread Brett Cannon
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

[issue33220] Antivirus hits on python-2.7.14.amd64.msi file

2018-04-03 Thread Brett Rasmussen
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

[issue33210] pkgutil.walk_packages gives incomplete results

2018-04-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue33210> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30891] importlib: _find_and_load() race condition on sys.modules[name] check

2018-04-04 Thread Brett Cannon
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

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-04-06 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +6107 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33169> ___ ___ Py

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-04-06 Thread Brett Cannon
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

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-04-06 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +6108 ___ Python tracker <https://bugs.python.org/issue33169> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-04-06 Thread Brett Cannon
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

[issue33169] importlib.invalidate_caches() doesn't clear all caches

2018-04-06 Thread Brett Cannon
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

[issue33237] Improve AttributeError message for partially initialized module

2018-04-07 Thread Brett Cannon
Brett Cannon added the comment: +1 from me for Nick's suggestion. -- ___ Python tracker <https://bugs.python.org/issue33237> ___ ___ Python-bugs-list m

[issue33254] importlib.resources.contents() incorrectly yields an empty list

2018-04-09 Thread Brett Cannon
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

[issue33254] importlib.resources.contents() incorrectly yields an empty list

2018-04-10 Thread Brett Cannon
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

[issue33065] IDLE debugger: problem importing user created module

2018-04-12 Thread Brett Cannon
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

[issue33270] tags for anonymous code objects should be interned

2018-04-13 Thread Brett Cannon
Change by Brett Cannon : -- stage: -> needs patch type: -> enhancement versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue33270> ___ __

[issue33276] Clarify that __path__ can't be set to just anything

2018-04-13 Thread Brett Cannon
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

[issue33277] Deprecate __loader__, __package__, __file__, and __cached__ on modules

2018-04-13 Thread Brett Cannon
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

[issue33277] Deprecate __loader__, __package__, __file__, and __cached__ on modules

2018-04-13 Thread Brett Cannon
Change by Brett Cannon : -- priority: normal -> low ___ Python tracker <https://bugs.python.org/issue33277> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue33254] importlib.resources.contents() incorrectly yields an empty list

2018-04-13 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +6162 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue33293] Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp.

2018-04-17 Thread Brett Cannon
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

[issue33293] Using datetime.datetime.utcnow().timestamp() in Python3.6.0 can't get correct UTC timestamp.

2018-04-17 Thread Brett Cannon
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

[issue33291] issue in the default setup.py which comes with the Python 3.6.5 installer

2018-04-17 Thread Brett Cannon
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:

[issue33308] parser.st2list(..., col_info=True) triggers a SystemError

2018-04-18 Thread Brett Cannon
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

[issue33276] Clarify that __path__ can't be set to just anything

2018-04-20 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +6250 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue25427] Remove the pyvenv script in Python 3.8

2018-04-20 Thread Brett Cannon
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

[issue25427] Remove the pyvenv script in Python 3.8

2018-04-20 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33254] Have importlib.resources.contents() return an interable instead of an iterator

2018-04-20 Thread Brett Cannon
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

[issue33276] Clarify that __path__ can't be set to just anything

2018-04-20 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33277] Deprecate __loader__, __package__, __file__, and __cached__ on modules

2018-04-22 Thread Brett Cannon
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

[issue33343] [argparse] Add subcommand abbreviations

2018-04-24 Thread Brett Cannon
Change by Brett Cannon : -- title: Subcommand abbreviations -> [argparse] Add subcommand abbreviations ___ Python tracker <https://bugs.python.org/issu

[issue33370] Addition of mypy cache to gitignore

2018-04-27 Thread Brett Cannon
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

[issue33370] Addition of mypy cache to gitignore

2018-04-27 Thread Brett Cannon
Change by Brett Cannon : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue33370> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue32718] Install PowerShell activation scripts for venv for all platforms

2018-04-27 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker <https://bugs.python.org/issue32718> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue33254] Have importlib.resources.contents() return an interable instead of an iterator

2018-04-30 Thread Brett Cannon
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

[issue33375] warnings: get filename from frame.f_code.co_filename

2018-04-30 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue33375> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33370] Addition of mypy cache to gitignore

2018-04-30 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33254] Have importlib.resources.contents() return an interable instead of an iterator

2018-04-30 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue32414] PyCapsule_Import fails when name is in the form 'package.module.capsule'

2018-04-30 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +petr.viktorin ___ Python tracker <https://bugs.python.org/issue32414> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33375] warnings: get filename from frame.f_code.co_filename

2018-05-03 Thread Brett Cannon
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

[issue33420] [typing] __origin__ invariant broken

2018-05-04 Thread Brett Cannon
Change by Brett Cannon : -- title: __origin__ invariant broken -> [typing] __origin__ invariant broken ___ Python tracker <https://bugs.python.org/issu

[issue33501] split existing optimization levels into granular options

2018-05-14 Thread Brett Cannon
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

[issue33443] Typo in Python/import.c

2018-05-14 Thread Brett Cannon
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 -

[issue33443] Typo in Python/import.c

2018-05-14 Thread Brett Cannon
Brett Cannon added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue33510] [logging] add JSON log formatter

2018-05-15 Thread Brett Cannon
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.

[issue33399] site.abs_paths should handle None __cached__ type

2018-05-15 Thread Brett Cannon
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

[issue33465] test_from_import_missing_attr_has_name_and_so_path fails when select is a builtin instead of an extension

2018-05-15 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> barry ___ Python tracker <https://bugs.python.org/issue33465> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue31602] assertion failure in zipimporter.get_source() in case of a bad zlib.decompress()

2017-09-29 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue31602> ___ ___ Python-bugs-list mai

[issue31602] assertion failure in zipimporter.get_source() in case of a bad zlib.decompress()

2017-09-29 Thread Brett Cannon
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

[issue31602] assertion failure in zipimporter.get_source() in case of a bad zlib.decompress()

2017-09-29 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31676] test.test_imp.ImportTests.test_load_source has side effects

2017-10-04 Thread Brett Cannon
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

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2017-10-12 Thread Brett Cannon
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

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2017-10-13 Thread Brett Cannon
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

[issue31781] crashes when calling methods of an uninitialized zipimport.zipimporter object

2017-10-20 Thread Brett Cannon
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

[issue31781] crashes when calling methods of an uninitialized zipimport.zipimporter object

2017-10-20 Thread Brett Cannon
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

[issue21720] "TypeError: Item in ``from list'' not a string" message

2017-10-25 Thread Brett Cannon
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

[issue31934] Failure to build out of source from a not clean source

2017-11-03 Thread Brett Cannon
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

[issue31937] Add the term "dunder" to the glossary

2017-11-03 Thread Brett Cannon
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

[issue31939] Support return annotation in signature for Argument Clinic

2017-11-05 Thread Brett Cannon
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

[issue25711] Rewrite zipimport from scratch

2017-11-20 Thread Brett Cannon
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

[issue27172] Undeprecate inspect.getfullargspec()

2017-11-29 Thread Brett Cannon
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: "

[issue27172] Undeprecate inspect.getfullargspec()

2017-11-30 Thread Brett Cannon
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,

[issue32192] Provide importlib.util.lazy_import helper function

2017-12-01 Thread Brett Cannon
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.

[issue32188] ImpImporter.find_modules removes symlinks in paths

2017-12-01 Thread Brett Cannon
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

[issue32177] spammers mine emails from bugs.python.org

2017-12-01 Thread Brett Cannon
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

[issue32324] [Security] "python3 directory" inserts "directory" at sys.path[0] even in isolated mode

2017-12-14 Thread Brett Cannon
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

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-15 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +4785 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32248> ___ ___ Py

[issue32324] [Security] "python3 directory" inserts "directory" at sys.path[0] even in isolated mode

2017-12-15 Thread Brett Cannon
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

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-15 Thread Brett Cannon
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

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-18 Thread Brett Cannon
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

[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-12-19 Thread Brett Cannon
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

[issue32471] Add an UML class diagram to the collections.abc module documentation

2018-01-02 Thread Brett Cannon
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

[issue32471] Add an UML class diagram to the collections.abc module documentation

2018-01-03 Thread Brett Cannon
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

[issue32486] tail optimization for 'yield from'

2018-01-04 Thread Brett Cannon
Change by Brett Cannon : -- type: resource usage -> enhancement ___ Python tracker <https://bugs.python.org/issue32486> ___ ___ Python-bugs-list mailing list Un

[issue32486] tail optimization for 'yield from'

2018-01-04 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker <https://bugs.python.org/issue32486> ___ ___ Python-bugs-list mailing list Unsub

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-05 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +4975 ___ Python tracker <https://bugs.python.org/issue32248> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-06 Thread Brett Cannon
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

[issue32525] Empty tuples are not optimized as constant expressions

2018-01-10 Thread Brett Cannon
Change by Brett Cannon : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32525> ___ ___ Python-bugs-list

[issue33522] Enable CI builds on Visual Studio Team Services

2018-05-16 Thread Brett Cannon
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

<    23   24   25   26   27   28   29   30   31   32   >