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.

Requirements

Usage

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.

Source Distribution

hello-memoryview-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file hello-memoryview-0.1.0.tar.gz.

File metadata

File hashes

Hashes for hello-memoryview-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fdf4c411d06d386ae3f944efb3ce0934816d29e87ef484798d38c3d968a166ad
MD5 772529ff0d784bce96469dcd5e478470
BLAKE2b-256 5ecd88c46da897113fd777c2607f336fa9187cd10b9cc661a1c17732644e1a2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page