This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Strange signature for memoryview constructor
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.7, Python 3.6, Python 3.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: skrah Nosy List: Antony.Lee, larry, python-dev, skrah, yselivanov
Priority: normal Keywords: patch

Created on 2016-12-30 01:59 by Antony.Lee, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
issue29111.diff skrah, 2016-12-30 09:16 review
Messages (3)
msg284302 - (view) Author: Antony Lee (Antony.Lee) * Date: 2016-12-30 01:59
The return value of `inspect.signature(memoryview)` is rather strange:

Python 3.5.2 (default, Nov  7 2016, 11:31:36) 
[GCC 6.2.1 20160830] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import inspect; inspect.signature(memoryview)
<Signature (module, /, object)>
msg284324 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2016-12-30 09:16
The patch seems to fix it. $module was a thing at some point, I don't know whether the semantics changed or if it was wrong in the first place.
msg284327 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-12-30 11:26
New changeset 1e1e24629218 by Stefan Krah in branch '3.5':
Issue #29111: Fix memoryview signature.
Date User Action Args
2022-04-11 14:58:41adminsetgithub: 73297
2016-12-30 11:31:28skrahsetstatus: open -> closed
assignee: skrah
resolution: fixed
stage: resolved
2016-12-30 11:26:34python-devsetnosy: + python-dev
messages: + msg284327
2016-12-30 09:16:15skrahsetfiles: + issue29111.diff
keywords: + patch
messages: + msg284324
2016-12-30 05:43:10serhiy.storchakasetnosy: + larry, skrah, yselivanov

type: behavior
components: + Interpreter Core, - Library (Lib)
versions: + Python 3.6, Python 3.7
2016-12-30 01:59:53Antony.Leecreate