Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP-3118: C-contiguity with zero strides #57054

Closed
skrah mannequin opened this issue Aug 26, 2011 · 3 comments
Closed

PEP-3118: C-contiguity with zero strides #57054

skrah mannequin opened this issue Aug 26, 2011 · 3 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@skrah
Copy link
Mannequin

skrah mannequin commented Aug 26, 2011

BPO 12845
Nosy @skrah

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/skrah'
closed_at = <Date 2014-09-19.21:12:38.457>
created_at = <Date 2011-08-26.10:29:44.632>
labels = ['interpreter-core', 'type-bug', 'invalid']
title = 'PEP-3118: C-contiguity with zero strides'
updated_at = <Date 2014-09-19.21:12:38.454>
user = 'https://github.com/skrah'

bugs.python.org fields:

activity = <Date 2014-09-19.21:12:38.454>
actor = 'skrah'
assignee = 'skrah'
closed = True
closed_date = <Date 2014-09-19.21:12:38.457>
closer = 'skrah'
components = ['Interpreter Core']
creation = <Date 2011-08-26.10:29:44.632>
creator = 'skrah'
dependencies = []
files = []
hgrepos = []
issue_num = 12845
keywords = []
message_count = 3.0
messages = ['143005', '221481', '227123']
nosy_count = 2.0
nosy_names = ['skrah', 'BreamoreBoy']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue12845'
versions = ['Python 3.5']

@skrah
Copy link
Mannequin Author

skrah mannequin commented Aug 26, 2011

Numpy and PyBuffer_IsContiguous() have different ideas of
C-contiguity if there is a zero in strides (this is allowed,
I asked Pauli Virtanen).

>>> from numpy import *
>>> nd = ndarray(shape=[10], strides=[0])
>>> nd.flags
  C_CONTIGUOUS : True
  F_CONTIGUOUS : False
  OWNDATA : True
  WRITEABLE : True
  ALIGNED : True
  UPDATEIFCOPY : False
>>> 
>>> from _testbuffer import ndarray as pyarray
>>> from _testbuffer import PyBUF_FULL_RO
>>> x = pyarray(nd, getbuf=PyBUF_FULL_RO)
>>> x.c_contiguous
False

@skrah skrah mannequin self-assigned this Aug 26, 2011
@skrah skrah mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error labels Aug 26, 2011
@BreamoreBoy
Copy link
Mannequin

BreamoreBoy mannequin commented Jun 24, 2014

What is the status of this issue as according to the index PEP-3118 has been completed?

@skrah
Copy link
Mannequin Author

skrah mannequin commented Sep 19, 2014

This was a bug in NumPy that has been fixed.

@skrah skrah mannequin closed this as completed Sep 19, 2014
@skrah skrah mannequin added the invalid label Sep 19, 2014
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

0 participants