[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-07-07 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +14454 pull_request: https://github.com/python/cpython/pull/14642 ___ Python tracker ___

[issue36085] Enable better DLL resolution

2019-07-07 Thread Steve Dower
Steve Dower added the comment: Heh, and I was so sure I'd copy pasted the right number after getting it wrong so often. Just tag it against this bug. -- ___ Python tracker _

[issue37502] Fix default argument handling for buffers argument in pickle.loads

2019-07-07 Thread Kyle Stanley
Kyle Stanley added the comment: Thanks for reporting the issue. On PR-14593 I reviewed the changes with interpreter screenshots showing the output of "pickle.loads(pickle.dumps(1, protocol=pickle.HIGHEST_PROTOCOL), buffers=None)" in the latest version of cpython master compared to the branch

[issue37476] Adding a unit test of unicode in test_unicode.py

2019-07-07 Thread Xiang Zhang
Change by Xiang Zhang : -- type: -> enhancement versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-07 Thread Benjamin Mintz
Benjamin Mintz added the comment: Updated main.py. New expected output: True New actual output: == False Traceback (most recent call last): File "main.py", line 14, in print(module.sub) AttributeError: module 'testext' has no attribute 'sub' ---

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-07 Thread Benjamin Mintz
New submission from Benjamin Mintz : unzip the attached zip file and run main.py expected output: True actual output: False So what? If you follow these directions, https://docs.python.org/3.7/library/importlib.html#checking-if-a-module-can-be-imported , you will put a stale reference in

[issue37520] zipfile.Path.parent returns incorrect value (same as self) for directory ref

2019-07-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue37520] zipfile.Path.parent returns incorrect value (same as self) for directory ref

2019-07-07 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 66905d14672517d50dc8ba516b9839f9ddbcc131 by Jason R. Coombs (Miss Islington (bot)) in branch '3.8': bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) (GH-14641) https://github.com/python/cpython/commit/66905d14672517d50dc8ba516b983

[issue37520] zipfile.Path.parent returns incorrect value (same as self) for directory ref

2019-07-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +14453 pull_request: https://github.com/python/cpython/pull/14641 ___ Python tracker ___ __

[issue37520] zipfile.Path.parent returns incorrect value (same as self) for directory ref

2019-07-07 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 38f44b4a4adc37e8f5f8971917d8b3145f351a56 by Jason R. Coombs in branch 'master': bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) https://github.com/python/cpython/commit/38f44b4a4adc37e8f5f8971917d8b3145f351a56 -- _

[issue37520] zipfile.Path.parent returns incorrect value (same as self) for directory ref

2019-07-07 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +14452 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14638 ___ Python tracker ___

[issue37520] zipfile.Path.parent returns incorrect value (same as self) for directory ref

2019-07-07 Thread Jason R. Coombs
New submission from Jason R. Coombs : Originally reported in https://github.com/jaraco/zipp/issues/7, the parent of a Path object referencing a directory is returning the incorrect result: cpython master $ docker run -it python:rc-buster

[issue37510] argparse removing more "--" than it should

2019-07-07 Thread paul j3
paul j3 added the comment: https://bugs.python.org/file29845/dbldash.patch while written against an earlier version of `argparse`, does what you want. I moved the '--' removal out of `_get_values` and into `consume_positionals`. Note that a full patch should include test cases and documenta

[issue26952] argparse help formatter crashes

2019-07-07 Thread paul j3
paul j3 added the comment: Xiang Zhang pointed out that the immediate error in this case was caused by the empty mutually exclusive group: https://bugs.python.org/issue26952#msg264835 The nesting fails because adding actions to the argument_group does not enroll them in the mutually exclusi

[issue37513] Fix a wrong exception type in ctypes documentation

2019-07-07 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Fix a type error in ctypes.rst -> Fix a wrong exception type in ctypes documentation versions: +Python 2.7, Python 3.7, Python 3.8, Python 3.9 ___

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington
miss-islington added the comment: New changeset 00bf4d64ecb01027be40c32d822e47e55d6b5c76 by Miss Islington (bot) in branch '2.7': bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615) https://github.com/python/cpython/commit/00bf4d64ecb01027be40c32d822e47e55d6b5c76

[issue34446] ambiguous _max_size parameter in SpooledTemporaryFile

2019-07-07 Thread Andrew Scheller
Andrew Scheller added the comment: I agree that this is ambiguous behaviour. The docs at https://docs.python.org/3/library/tempfile.html#tempfile.SpooledTemporaryFile say "This function operates exactly as TemporaryFile() does, except that data is spooled in memory until the file size exceeds

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +14451 pull_request: https://github.com/python/cpython/pull/14637 ___ Python tracker ___ __

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington
miss-islington added the comment: New changeset 3f7d0c9665ca546bb0073376cb83e31dd13b48d9 by Miss Islington (bot) in branch '3.8': bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615) https://github.com/python/cpython/commit/3f7d0c9665ca546bb0073376cb83e31dd13b48d9

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington
miss-islington added the comment: New changeset bc0a6ced30267d4e21e7566bfd6d14b30d6d1604 by Miss Islington (bot) in branch '3.7': bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615) https://github.com/python/cpython/commit/bc0a6ced30267d4e21e7566bfd6d14b30d6d1604

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset f6cdd3ff687ebbf8209d793a18a042ea495c4aeb by Xiang Zhang (Hai Shi) in branch 'master': bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615) https://github.com/python/cpython/commit/f6cdd3ff687ebbf8209d793a18a042ea495c4aeb

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +14450 pull_request: https://github.com/python/cpython/pull/14636 ___ Python tracker ___ __

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +14449 pull_request: https://github.com/python/cpython/pull/14635 ___ Python tracker ___ __

[issue37513] Fix a type error in ctypes.rst

2019-07-07 Thread Xiang Zhang
Xiang Zhang added the comment: Should be TypeError. It's changed from ValueError to TypeError in https://bugs.python.org/issue1831. -- nosy: +xiang.zhang ___ Python tracker _

[issue37519] Three inconsistent module attributes

2019-07-07 Thread Géry
New submission from Géry : Analysis In the next two sections showing the module attributes and corresponding spec attributes of imported modules and run modules, we notice the following rule (which is in accordance with this `PEP 451 section

[issue26952] argparse help formatter crashes

2019-07-07 Thread Alexander Kapshuna
Alexander Kapshuna added the comment: I have a feeling that nesting groups has nothing to do with it. Got same traceback when I forgot to fill my mutually exclusive groups with arguments. import argparse parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group() parser

[issue21120] PyArena type is used in headers from the limited API

2019-07-07 Thread Zackery Spytz
Change by Zackery Spytz : -- components: +Build -Library (Lib) nosy: +ZackerySpytz versions: +Python 3.9 -Python 3.5 ___ Python tracker ___

[issue37221] PyCode_New API change breaks backwards compatibility policy

2019-07-07 Thread Stefan Behnel
Stefan Behnel added the comment: No need to keep this bug open on CPython side. The backwards compatibility has been restored (and I'll release Cython 0.29.12 today to resolve the issue on that side.) -- resolution: -> fixed status: open -> closed __