SEMrush
cython.org

Please wait for loading...




    SEMrush

      (190):

    /
     3  +3 2014 oct 01using cUsing C libraries — Cython 0.21 documentationAs Cython code compiles down to C code itself, it is actually trivial to call C functions directly in the code. The following gives a complete example for using ( and ...
     4  ~ 2014 sep 28cpythonCython: C-Extensions for PythonThe C code is generated once and then compiles with all major C/C++ compilers in CPython 2.6, 2.7 (2.4+ with Cython 0.20.x) as well as 3.2 and all later ...
     5  +6 2014 sep 28python arrayWorking with Python arrays — Cython 0.21 documentationPython has a builtin array module supporting dynamic 1-dimensional arrays of primitive types. It is possible to access the underlying C array of a Python array  ...
     7  +10 2014 sep 19c using
     7  -1 2014 aug 03c library tutorialUsing C libraries — Cython 0.20.2 documentationApart from writing fast code, one of the main use cases of Cython is to call external C libraries from Python code. As Cython code compiles down to C code itself, ...
     11  +11 2014 sep 08httpdocsWelcome to Cython's Documentation — Cython 0.20.2 documentationWelcome to Cython's Documentation¶. Also see the current in-development version of the documentation and the Cython project homepage. Getting Started.
     11  -2 2014 aug 12compiled html heCompilation — Cython 0.20.2 documentationThis creates a yourmod.c file, and the -a switch produces a generated html file. .... Even if the user has Cython installed, he /she probably doesn't want to use it ...
     12  +89 2014 aug 26python type classExtension types (aka. cdef classes ) — Cython 0.20.2 documentationBased on what Python calls a “built-in type ”, however, Cython supports a second kind of class : extension types , sometimes referred to as “cdef classes ” due to ...
     14  -2 2014 aug 31c char unicodeUnicode and passing strings — Cython 0.20.2 documentationThe bytes and unicode types are the specific types known from normal Python 2.x .... To convert the byte string back into a C char *, use the opposite assignment:.
     16  +13 2014 sep 09h files for codInterfacing with External C Code — Cython 0.20.2 documentationOne of the main uses of Cython is wrapping existing libraries of C code . This is ... It directs Cython to place a #include statement for the named header file in the ...
     17  +27 2014 sep 11mac fetch installInstalling Cython — Cython 0.20.2 documentationOn Ubuntu or Debian, for instance, the command sudo apt-get install build- essential will fetch everything you need. Mac OS X To retrieve gcc, one option is to ...
     17  -5 2014 jul 20c byte to stringIt is very easy to pass byte strings between C code and Python. When receiving a byte string from a C library, you can let Cython convert it into a Python byte  ...
     20  +6 2014 aug 29src html codeBuilding Cython code — Cython 0.20.2 documentationA .pyx file is compiled by Cython to a .c file, containing the code of a Python extension module; The .c file is compiled by a C compiler to a .so file (or .pyd on ...
     20  +2 2014 aug 20basic hello worldBasic Tutorial — Cython 0.20.2 documentationSave this code in a file named helloworld .pyx. Now we need to create the setup. py, which is like a python Makefile (for more information see Source Files and ...
     20  -12 2014 jul 29string to bytesCython supports four Python string types: bytes , str, unicode and basestring . The bytes and unicode types are the specific types known from normal Python 2.x ...
     21  ~ 2014 oct 05c language basicsLanguage Basics — Cython 0.21 documentationCython uses the normal C syntax for C types, including pointers. It provides all the standard C types, namely char, short, int, long, long long as well as their ...
     21  +10 2014 sep 26typedef struct tag cInterfacing with External C Code — Cython 0.21 documentationIf the header file declares a big struct and you only want to use a few members, ... If the C header uses both a tag and a typedef with different names, you can use ...
     21  +80 2014 sep 11on another definitionSharing Declarations Between Cython Modules — Cython 0.20.2 A Cython module can be split into two parts: a definition file with a .pxd suffix, ... in another module's definition file, it imports it using the cimport statement.
     22  +31 2014 sep 08limitations of constractor cUsing C++ in Cython — Cython 0.20.2 documentationCython v0.13 introduces native support for most of the C++ language. This means that the
     29  -1 2014 sep 24c char stringUnicode and passing strings — Cython 0.21 documentationTo ease conversion between Python and C strings in simple cases, the .... To convert the byte string back into a C char *, use the opposite assignment: cdef char * ...
     29  +9 2014 sep 01c language logoCython: C -Extensions for PythonThe Cython language is a superset of the Python language that additionally supports calling C functions and declaring C types on variables and class attributes.
     29  +10 2014 aug 31python true falsePython documentation for writing extension modules should have some details for .... Default is True . wraparound ( True / False ): In Python arrays can be indexed  ...
     30  +6 2014 sep 29python int to stringThe Python types int and long are not available for static typing and instead .... You need to be careful when using a Python string in a context expecting a char*.
     30  +14 2014 sep 21python importBasic Tutorial — Cython 0.21 documentationCython is Python : Almost any piece of Python code is also valid Cython code. ... Now to use this file: start the python interpreter and simply import it as if it was a ...
     30  +7 2014 sep 18html srcInstalling Cython — Cython 0.21 documentationInstalling Cython¶. Many scientific Python distributions, such as Anaconda [ Anaconda], Enthought Canopy [Canopy], Python(x,y) [Pythonxy], and Sage [Sage ], ...
     30  -4 2014 sep 11python unicodeThus, in Python 2, both bytes and str represent the byte string type, whereas in Python 3, both str and unicode represent the Python Unicode string type.
     31  +5 2014 sep 30python stringSimilar to the string semantics in Python 3, Cython strictly separates byte strings and unicode strings. Above all, this means that by default there is no automatic ...
     31  -12 2014 sep 21c externOne of the main uses of Cython is wrapping existing libraries of C code. ... When you use an extern definition on its own as in the examples above, Cython ...
     31  +7 2014 aug 27ord call speed testwrite Python code that calls back and forth from and to C or C++ code ... We regularly run integration tests against all supported CPython versions ... into existing applications, and for fast C modules that speed up the execution of Python code.
     32  -20 2014 sep 29python hello world
     32  -7 2014 sep 24c unicodeRegarding text processing, Python has built-in support for Unicode , which C lacks completely. If you are dealing with Unicode text, you are usually better off ...
     32  +12 2014 sep 23extern c
     32  +29 2014 sep 05c vs pythonLanguage Basics — Cython 0.20.2 documentationC functions are defined using the new cdef statement. They take either Python objects or C values as parameters, and can return either Python objects or C  ...
     33  +21 2014 sep 24linux building optimizzed libraryCompilation — Cython 0.21 documentationThe following sub-sections describe several ways to build your extension
     34  +26 2014 aug 24linux python module soThe .c file is compiled by a C compiler to a . so file (or a .pyd file on Windows). The following ... Python documentation for writing extension modules should have some details for your system. Here we give an example on a Linux system:.
     35  -4 2014 sep 28python debugDebugging your Cython program — Cython 0.21 documentationTo use this functionality, you will need to install gdb 7.2 or higher, built with Python support (linked to Python 2.5 or higher). The debugger supports debuggees ...
     35  +29 2014 sep 25exceptions performance pythonFaster code via static typing — Cython 0.21 documentationHowever, for performance critical code, it is often helpful to add static type ... out if the function returns a Python object or if it is guaranteed that an exception will ...
     35  -3 2014 sep 21c char to stringIn many use cases, C strings (a.k.a. character pointers) are slow and cumbersome. For one, they usually require manual memory management in one way or ...
     35  +7 2014 sep 17c string to byte arrayBesides not working for null bytes , the above is also very inefficient for long strings, since Cython has to call strlen() on the C string first to find out the length by ...
     35  -9 2014 sep 12c language function declarationWithin a Cython module, Python functions and C functions can call each ... of function can be declared to have C data types, using normal C declaration syntax .
     35  -11 2014 jul 24c string containsTo ease conversion between Python and C strings in simple cases, the ..... Cython allows you to do the same for a C string , as long as it contains no null bytes:.
     36  -3 2014 sep 12buildout cythonMany scientific Python distributions, such as the Enthought Python Distribution [ EPD], Python(x,y) [Pythonxy], and Sage [Sage], bundle Cython and no setup is ...
     36  +30 2014 jul 31world of basicsCython Hello World ¶. As Cython can accept almost any valid python source file, one of the hardest things in getting started is just figuring out how to compile ...
     37  ~ 2014 sep 23how to compile in cCompiling your . c files will vary depending on your operating system. Python documentation for writing extension modules should have some details for your ...
     37  +1 2014 sep 14extends methode cAs Cython code compiles down to C code itself, it is actually trivial to call C functions ..... However, if wanted, we can rename the C -ish extend () method to e.g. ...
     38  -12 2014 sep 25python classExtension types (aka. cdef classes ) — Cython 0.21 documentationBased on what Python calls a “built-in type”, however, Cython supports a second kind of class : extension types, sometimes referred to as “cdef classes ” due to ...
     39  +25 2014 sep 30c language loopsCython uses the normal C syntax for C types, including pointers. It provides all the ..... If i is declared as a cdef integer type, it will optimise this into a pure C loop .
     39  -14 2014 sep 27python stringsSimilar to the string semantics in Python 3, Cython strictly separates byte strings and unicode strings . Above all, this means that by default there is no automatic ...
     39  +13 2014 sep 22compilationCompiling your .c files will vary depending on your operating system. Python documentation for writing extension modules should have some details for your ...
     39  +12 2014 sep 22compliation
     39  +62 2014 sep 20typedef structyou can only do this inside a cdef extern from block; struct declarations anywhere else must be non-empty. If the header file uses typedef names such as word to ...
     39  +33 2014 jul 31creating compiled html filesThe .c file is compiled by a C compiler to a .so file (or a .pyd file on Windows) ... This creates a yourmod.c file , and the -a switch produces a generated html file .
     41  +60 2014 sep 10python3 handling multiple exceptionsDifferences between Cython and Pyrex - Cython's DocumentationMany Python 3 constructs are already supported by Cython. ..... Optional arguments in cdef/cpdef functions; Function pointers in structs; C++ Exception handling  ...
     43  -13 2014 sep 18c arrayTyped Memoryviews — Cython 0.21 documentationFor example, they can handle C arrays and the Cython array type (Cython arrays) . A memoryview can be used in any context (function parameters, module-level ...
     43  -17 2014 sep 12html’s limitationsLimitations — Cython 0.20.2 documentationLimitations ¶. This page used to list bugs in Cython that made the semantics of compiled code differ from that in Python. Most of the missing features have been  ...
     43  +7 2014 aug 31the c stringTo ease conversion between Python and C strings in simple cases, the module- level c_string_type and c_string_encoding directives can be used to implicitly ...
     43  +58 2014 aug 31c template tutorialCython v0.13 introduces native support for most of the C++ language. .... here all the C++ features that were not discussed in the above tutorial . ... Templates ¶.
     44  +1 2014 sep 30python dict methodExtension types (aka. cdef classes) — Cython 0.21 documentationThe main difference is that they use a C struct to store their fields and methods instead of a Python dict . This allows them to store arbitrary C types in their fields ...
     44  +57 2014 sep 24c mallocMemory Allocation — Cython 0.21 documentationC provides the functions : c :func` malloc `, realloc(), and free() for this purpose, which can be imported in cython from clibc.stdlib. Their signatures are:.
     44  +25 2014 sep 21string to byte
     46  -13 2014 sep 17c string char
     46  +43 2014 aug 03phyton installer for windowsUnlike most Python software , Cython requires a C compiler to be present on the system. The details of getting a C compiler varies according to the system used:.
     47  ~ 2014 sep 14c throw exception in constructorUsing C++ in Cython — Cython 0.21 documentationWithout this declaration, C++ exceptions originating from the constructor will not be ..... Cython cannot throw C++ exceptions , or catch them with a try-except ...
     47  +10 2014 sep 02c enum to intthe words struct, union and enum are used only when defining a type, not when ... (Note that this is different from the C convention, where it would default to int .) ...
     47  ~ 2014 aug 12sample python codeCython is Python : Almost any piece of Python code is also valid Cython code . ( There are a few Limitations, but this approximation will serve for now.) The Cython ...
     48  ~ 2014 sep 12python 3 string replacementSimilar to the string semantics in Python 3 , Cython strictly separates byte .... These modifications can change the internal buffer address, which will make the  ...
     48  -8 2014 sep 05byte stringCython supports four Python string types: bytes , str, unicode and basestring. The bytes and unicode types are the specific types known from normal Python 2.x ...
     48  +53 2014 aug 23functions in cppTemplated classes and functions are supported. Overloaded functions are ... and the implementation in the file called Rectangle. cpp : #include "Rectangle.h" ...
     48  +27 2014 aug 21list of c compilersThis allows the compiler to generate very efficient C code from Cython code. ... you still have questions, feel free to send an email to the cython users mailing list .
     48  +15 2014 aug 19python variable scopeAs with Python , assigning to a variable which is not otherwise declared implicitly declares it to be a Python variable residing in the scope where it is assigned.
     49  +6 2014 sep 29classes in python
     49  +16 2014 sep 23hello world cThe Cython compiler will convert it into C code which makes equivalent calls to the Python/ C API. ... So lets start with the canonical python hello world :.
     50  +51 2014 sep 16install easy install pythonMac OS X To retrieve gcc, one option is to install Apple's XCode, which can be ... If you have Python setuptools set up on your system, you should be able to ...
     50  -16 2014 aug 27hello world tutorial
     50  +19 2014 aug 23for loop pythonC functions are defined using the new cdef statement . They take either Python objects or C values as parameters, and can return either Python objects or C ...
     51  +29 2014 oct 03types of typeFused Types (Templates) — Cython 0.21 documentationFused types allow you to have one type definition that can refer to multiple types . This allows you to write a single static-typed cython algorithm that can operate ...
     51  +20 2014 oct 01string in c
     51  -7 2014 aug 31source code cwrite Python code that calls back and forth from and to C or C++ code natively at ... source code level debugging to find bugs in your Python, Cython and C code.
     51  -6 2014 aug 24for i in rangeThis will convert statements of the form for i in range (...) to for i from ... when i is any cdef'd integer type, and the direction (i.e. sign of step) can be determined.
     51  -42 2014 aug 08c string to
     53  -9 2014 sep 21char to string in c
     53  +23 2014 sep 06hash float to intcdef struct Grail: int age float volume cdef union Food: char *spam float *eggs ..... bool, chr, cmp, complex, dict, divmod, enumerate, float , hash , hex, int , len, list, ...
     53  ~ 2014 aug 30c compiler os xUnlike most Python software, Cython requires a C compiler to be present on the ... Mac OS X To retrieve gcc, one option is to install Apple's XCode, which can be  ...
     53  -9 2014 aug 15string to charIt is therefore important to keep a reference to the Python string as long as the char * is in use. Often enough, this only spans the call to a C function that receives  ...
     54  ~ 2014 sep 08file extension partA Cython module can be split into two parts: a definition file with a .pxd suffix, containing C declarations ... The definition part of an extension type (see below).
     54  -19 2014 aug 05python c bindingsCython is an optimising static compiler for both the Python programming language and the ... Cython gives you the combined power of Python and C to let you.
     54  ~ 2014 jul 22c hello world programThe Cython compiler will convert it into C code which makes equivalent calls to the Python/ C API. But Cython is ... Save this code in a file named helloworld .pyx.
     55  +28 2014 aug 19centos c compilerUnlike most Python software, Cython requires a C compiler to be present on the system. The details of getting a C compiler varies according to the system used:.
     56  +45 2014 sep 12basics of cLanguage Basics ¶ ... Types¶. Cython uses the normal C syntax for C types, including pointers. ... C functions are defined using the new cdef statement. They take ...
     56  +37 2014 sep 06include header function addressThis is achieved by using external declarations to declare the C functions and ... It directs Cython to place a # include statement for the named header file in the ...
     57  -11 2014 sep 07c string
     57  +4 2014 aug 19functions in cCalling C functions — Cython 0.20.2 documentationThis tutorial describes shortly what you need to know in order to call C library functions from Cython code. For a longer and more comprehensive tutorial about  ...
     57  ~ 2014 aug 16c compiler on macUnlike most Python software, Cython requires a C compiler to be present on the ... Mac OS X To retrieve gcc , one option is to install Apple's XCode, which can be  ...
     57  -19 2014 jul 22python for statement
    1 2 of 2 pages    




    SEMrush