I want to define an initialized C array in Pyrex, for example. equivalent:
unsigned char a[8] = {0,1,2,3,4,5,6,7};
What will be equivalent in Pyrex?
Just an array
cdef unsigned char a[8]
But how can I initialize my values?
In Cython , the successor to Pyrex, this feature was added a year later to fix this , for example, the following now works in Cython:
cdef double a[] = [0.5, 0.3, 0.1, 0.1]
, Pyrex ( Cython rarin ), , ( , Pyrex, 0.9.8.6).
Pyrex , Cython? Pyrex Cython, .
Source: https://habr.com/ru/post/1736984/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1736979/share-pre-initialized-git-repository&usg=ALkJrhgGqwL7XWvdJewAK3vOcFiM20S-DQOnFocus = "this.blur ();" problem - javascriptCI Build Status Output Options - build-processWhy am I getting a heap error error? - c ++Implementing ASPX on an ASP Page - asp.netSQL SERVER 2008 JOIN Tips - joinКак заставить элемент управления GridView asp.net обернуть первую строку в теги- htmlОбработка исключений NServiceBus и механизм повторения сообщений - c#jQuery is sorted for partitioned sections - jqueryXmlDocument OuterXml pretty printed - c #All Articles