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

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

[issue33451] Start pyc file lock the file

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

[issue33501] split existing optimization levels into granular options

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

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

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

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

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

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

2018-05-24 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +ncoghlan, petr.viktorin ___ Python tracker <https://bugs.python.org/issue33629> ___ ___ Python-bugs-list mailing list Unsub

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

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

[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/2e01b75884892d5aabdaab658fbd17

[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:

[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

[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

[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

[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:

[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

[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:

[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

[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/cpyt

[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-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

[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/3f45f5da8eb052f1b54d37086c67b7

[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

[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

[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:

[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

[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

[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> ___ ___

[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.

[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 befor

[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> ___ ___

[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:/

[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 &

[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). A

[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 should

[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). --

[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 fun

[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. -

[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> ___ ___

[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> ___ ___

[issue27805] io.open('/dev/stdout', 'a') raises OSError with errno=ESPIPE

2018-07-21 Thread Brett Randall
Change by Brett Randall : -- nosy: +javabrett ___ Python tracker <https://bugs.python.org/issue27805> ___ ___ 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

[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:

[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 ___ Pyth

[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

[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: Interp

[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-03 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue34312> ___ ___

[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

[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-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 __pycach

[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 &g

[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

[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:

[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/is

[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 of

[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

[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

[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-l

[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 kwar

[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 use

[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

[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 o

[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

[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:

[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 ). -

[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

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

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

[issue25711] Rewrite zipimport from scratch

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

[issue34546] Add encryption support to zipfile

2018-08-31 Thread Brett Cannon
Change by Brett Cannon : -- title: Zipfile encryption function -> Add encryption support to zipfile ___ Python tracker <https://bugs.python.org/issu

[issue25711] Rewrite zipimport from scratch

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

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

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

[issue34619] Typo in docs.python.jp

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

[issue18307] Relative path in co_filename for zipped modules

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

[issue30576] http.server should support HTTP compression (gzip)

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

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

2018-09-14 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +8746 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32718> ___ ___ Py

[issue30576] http.server should support HTTP compression (gzip)

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

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

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

[issue34781] infinite waiting in multiprocessing.Pool

2018-09-24 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +davin, pitrou ___ Python tracker <https://bugs.python.org/issue34781> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30964] Mention ensurepip in package installation docs

2018-09-25 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker <https://bugs.python.org/issue30964> ___ ___ Python-bugs-list

[issue34802] asyncio.iscoroutine() documentation is wrong

2018-09-27 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue34802> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34609] Importing certain modules while debugging raises an exception

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

[issue34903] strptime %d handling of single digit day of month

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

[issue34985] python finds test modules from the wrong directory during PGO build

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

[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

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

[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

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

[issue35006] itertools.combinations has wrong type when using the typing package

2018-10-17 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35001] ImportFrom level cannot be optional

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

[issue35040] [functools] provide an async-compatible version of functools.lru_cache

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

[issue35051] Fix pep8 on Lib/turtledemo module

2018-10-24 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue18114] Update PyImport_ImportFrozenModuleObject() to set __package__

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

[issue35042] Use the role :pep: for the PEP \d+

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

[issue35137] Exception in isinstance when __class__ property raises

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

[issue35253] Linker warning LNK4281

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

[issue35244] Allow to setup Clang as default compiler for modules build

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

[issue18053] Add checks for Misc/NEWS in make patchcheck

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

[issue17314] Stop using imp.find_module() in multiprocessing

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

[issue18055] Stop using imp in IDLE

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

[issue14797] Deprecate imp.find_module()/load_module()

2013-05-25 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Stop using imp in IDLE ___ Python tracker <http://bugs.python.org/issue14797> ___ ___ Python-bugs-list mailin

[issue18056] Document importlib._bootstrap.NamespaceLoader

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

[issue18057] Register NamespaceLoader with importlib.abc.Loader

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

[issue18058] Define is_package for NamespaceLoader

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

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