Skip to content

Problem still exist with resizing an array previously declared in a tuple. #1572

@jeanlaroche

Description

@jeanlaroche

Pythran still misbehaves with the code below:
self[0] is initializes as a (1,1) array, then when an attempt is made to give it a shape of (100,100) this fails.

# pythran export test()
import numpy as np

def A():
    self_xx = np.zeros((1,1))
    self = tuple([self_xx])
    return self

def B(self, D, C):
    print(D, C)
    self[0] = np.zeros((D, C))
    print('self[0]', self[0].shape)

def test():
    fr = A()
    B(fr, 100, 100)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions