Skip to main content

an example usage of the new style buffer API

Project description

About hello-memoryview

This is an example usage of the new-style buffer API available in Python 2.6.



To run the demo using the slow python code:

$ hello-memoryview

To run the demo using the faster C extension:

$ hello-memoryview --fast

To advance the state by one step press ‘n’. To advance the state by multiple steps press ‘<k>n’ where <k> is some number, possibly with multiple digits. For example, typing ‘99n’ will advance the state by 99 steps. To quit, press any key that is not ‘n’ and is not a digit.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hello-memoryview, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size hello-memoryview-0.1.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page