Skip to main content

Home/ Python Programming/ Group items tagged imported

Rss Feed Group items tagged

reckoner reckoner

12. Writing a C extension to NumPy - 0 views

  • There are two applications that require using the NumPy array type in C extension modules: Access to numerical libraries: Extension modules can be used to make numerical libraries written in C (or languages linkable to C, such as Fortran) accessible to Python programs. The NumPy array type has the advantage of using the same data layout as arrays in C and Fortran. Mixed-language numerical code: In most numerical applications, only a small part of the total code is CPU time intensive. Only this part should thus be written in C, the rest can be written in Python. NumPy arrays are important for the interface between these two parts, because they provide equally simple access to their contents from Python and from C. This document is a tutorial for using NumPy arrays in C extensions.
reckoner reckoner

"n choose m" module - 0 views

  • """ a class for generating permutations from an array # choose 2 letters from 'abcd' c = Chooser(['a', 'b', 'c', 'd'], 2) while c.hasMoreElements(): print c.next() """ import time, copy class NoMoreChoices(StandardError): pass class Chooser:
reckoner reckoner

Py++ introduction - 0 views

  • What is Py++? Definition: Py++ is an object-oriented framework for creating a code generator for Boost.Python library. Py++ uses few different programming paradigms to help you to expose C++ declarations to Python. This code generator will not stand on your way. It will guide you through the whole process. It will raise warnings in the case you are doing something wrong with a link to the explanation. And the most important it will save your time - you will not have to update code generator script every time source code is changed.
reckoner reckoner

SourceForge.net: pyExcelerator - 0 views

  • Generating Excel 97+ files with Python 2.4+ (need decorators), importing Excel 95+ files, support for UNICODE in Excel files, using variety of formatting features and printing options, Excel files and OLE2 compound files dumper. No need in Windows/COM
reckoner reckoner

wxPython Tutorial part 1 - 1 views

  •  
    I've always found that best way to learn is by doing and then experimenting and tweaking with what's been done. So download and install wxPython, fire up your favorite text editor and get ready to play along as you read the next few sections.
reckoner reckoner

Manning: wxPython in Action - 0 views

  •  
    # Sample Chapter 2 (PDF) # Sample Chapter 9 (PDF) # Source code (336 KB - last updated March 1, 2006)
« First ‹ Previous 41 - 60 of 80 Next ›
Showing 20 items per page