[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

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

[issue34520] test_asyncio leaked [2, 2, 2] references, sum=6 in AMD64 Windows8.1 Refleaks 3.7

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

[issue34498] Python 3.7 breaks on singledispatch_function.register(pseudo_type), which Python 3.6 accepted

2018-08-27 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/issue34498> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34468] An always-false condition in range_repr() from Objects/rangeobject.c

2018-08-23 Thread Brett Cannon
Brett Cannon added the comment: I think your second proposal sounds about right, Alexey. -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue34

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

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

[issue34446] ambiguous _max_size parameter in SpooledTemporaryFile

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

[issue34417] imp.find_module reacts badly to iterator

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

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

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

[issue34200] importlib: python -m test test_pkg -m test_7 fails randomly

2018-08-17 Thread Brett Cannon
Brett Cannon added the comment: I can't reproduce with master on macOS. -- ___ Python tracker <https://bugs.python.org/issue34200> ___ ___ Python-bugs-list m

[issue34416] PyCapsule_Import seems to release the GIL without acquiring it

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

[issue34392] Add sys.isinterned()

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

[issue34387] Deletion of attributes in dataclass is buggy

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

[issue18307] Relative path in co_filename for zipped modules

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

[issue18307] Relative path in co_filename for zipped modules

2018-08-10 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +twouters ___ Python tracker <https://bugs.python.org/issue18307> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27186] add os.fspath()

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

[issue32797] Tracebacks from Cython modules no longer work

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

[issue32797] Tracebacks from Cython modules no longer work

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

[issue32797] Tracebacks from Cython modules no longer work

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

[issue32797] Tracebacks from Cython modules no longer work

2018-08-03 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon, eric.snow, ncoghlan, petr.viktorin ___ Python tracker <https://bugs.python.org/issue32797> ___ ___ Python-bug

[issue34312] Allow str.endswith and str.startswith to accept an iterable

2018-08-03 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue34312> ___ ___

[issue34312] Allow str.endswith and str.startswith to accept an iterable

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

[issue34312] Allow str.endswith and str.startswith to accept an iterable

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

[issue34286] lib2to3 tests fail on the 3.7 branch (used to work with 3.7.0)

2018-07-31 Thread Brett Cannon
Brett Cannon added the comment: Could be related to https://bugs.python.org/issue21446 . -- nosy: +berker.peksag ___ Python tracker <https://bugs.python.org/issue34

[issue34239] Convert test_bz2 to use tempfile

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

[issue25083] Python can sometimes create incorrect .pyc files

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

[issue21446] Update reload fixer to use importlib instead of imp

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

[issue34163] Python latest release 2.7 shows SSL error

2018-07-20 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue34163> ___ ___

[issue34143] There is a constant definition error in errno.py

2018-07-19 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue34143> ___ ___

[issue34137] Add Path.lexist() to pathlib

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

[issue34133] ValueError documented as being restricted to only "a built-in operation or function"

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

[issue21617] importlib reload can fail with AttributeError if module removed from sys.path

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

[issue34117] Rename "generator expressions" to "generator comprehensions"

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

[issue32584] Uninitialized free_extra in code_dealloc

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

[issue21446] Update reload fixer to use importlib instead of imp

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

[issue34100] Same constants in tuples are not merged while compile()

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

[issue34094] Porting Python 2 to Python 3 example contradicts its own advice

2018-07-11 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue34094> ___ ___

[issue25711] Rewrite zipimport from scratch

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

[issue34062] Python launcher on Windows does not work with --list or --list-paths

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

[issue33944] Deprecate and remove pth files

2018-06-22 Thread Brett Cannon
Brett Cannon added the comment: My only answer to Ethan is "don't use eggs". :) -- ___ Python tracker <https://bugs.python.org/issue33944> ___ ___

[issue33944] Deprecate and remove pth files

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

[issue33903] Can't use lib2to3 with embeddable zip file

2018-06-20 Thread Brett Cannon
Change by Brett Cannon : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue33

[issue33912] [EASY] test_warnings: test_exec_filename() fails when run with -Werror

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

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

2018-06-15 Thread 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

[issue4948] Make heapq work with all mutable sequences

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

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

2018-06-09 Thread 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

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

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

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

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

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

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

[issue33777] dummy_threading: .is_alive method returns True after execution has completed

2018-06-06 Thread Brett Cannon
Change by Brett Cannon : -- components: +Library (Lib) -Interpreter Core ___ Python tracker <https://bugs.python.org/issue33777> ___ ___ Python-bugs-list mailin

[issue32584] Uninitialized free_extra in code_dealloc

2018-06-03 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +dino.viehland ___ Python tracker <https://bugs.python.org/issue32584> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33755] Failed separate tests in test_importlib

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

[issue33755] Failed separate tests in test_importlib

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

[issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path

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

[issue33562] Check that the global settings for asyncio are not changed by tests

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

[issue33562] Check that the global settings for asyncio are not changed by tests

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

[issue33562] Check that the global settings for asyncio are not changed by tests

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

[issue29235] Allow profile/cProfile to be used as context managers

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

[issue32911] Doc strings no longer stored in body of AST

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

[issue33629] test_importlib creates a coredump on AMD64 FreeBSD 10.x Shared 3.7

2018-05-24 Thread Brett Cannon
Change by Brett Cannon <br...@python.org>: -- nosy: +ncoghlan, petr.viktorin ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33562] Check that the global settings for asyncio are not changed by tests

2018-05-17 Thread Brett Cannon
Change by Brett Cannon <br...@python.org>: -- keywords: +patch pull_requests: +6617 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue33562] Check that the global settings for asyncio are not changed by tests

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

[issue33501] split existing optimization levels into granular options

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

[issue33451] Start pyc file lock the file

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

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

2018-05-16 Thread Brett Cannon
Change by Brett Cannon <br...@python.org>: -- nosy: -brett.cannon ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32414> ___ _

[issue33522] Enable CI builds on Visual Studio Team Services

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

[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 <br...@python.org>: -- assignee: -> barry ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33465> ___ __

[issue33399] site.abs_paths should handle None __cached__ type

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

[issue33510] [logging] add JSON log formatter

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

[issue33443] Typo in Python/import.c

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

[issue33443] Typo in Python/import.c

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

[issue33501] split existing optimization levels into granular options

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

[issue33420] [typing] __origin__ invariant broken

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

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

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

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

2018-04-30 Thread Brett Cannon
Change by Brett Cannon <br...@python.org>: -- nosy: +petr.viktorin ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32414> ___ _

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

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

[issue33370] Addition of mypy cache to gitignore

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

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

2018-04-30 Thread Brett Cannon
Change by Brett Cannon <br...@python.org>: -- nosy: +brett.cannon ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33375> ___ _

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

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

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

2018-04-27 Thread Brett Cannon
Change by Brett Cannon <br...@python.org>: -- assignee: -> brett.cannon ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32718> ___ _

[issue33370] Addition of mypy cache to gitignore

2018-04-27 Thread Brett Cannon
Change by Brett Cannon <br...@python.org>: -- type: -> enhancement ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33370> ___ __

[issue33370] Addition of mypy cache to gitignore

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

[issue33343] [argparse] Add subcommand abbreviations

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

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

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

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

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

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

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

[issue25427] Remove the pyvenv script in Python 3.8

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

[issue25427] Remove the pyvenv script in Python 3.8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2018-04-13 Thread Brett Cannon
Change by Brett Cannon <br...@python.org>: -- priority: normal -> low ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33277> ___ __

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

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

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

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

[issue33270] tags for anonymous code objects should be interned

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

[issue33065] IDLE debugger: problem importing user created module

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

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

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

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

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

<    6   7   8   9   10   11   12   13   14   15   >