Skip to main content

Mutable variant of collections.namedtuple, which supports assignments

Project description

recordclass is MIT Licensed python library. It implements the type memoryslots and factory function recordclass in order to create record-like classes.

  • memoryslots is tuple-like type, which supports assignment operations.

  • recordclass is a factory function that create a “mutable” analog of collection.namedtuple.

This library actually is a “proof of concept” for the problem of fast “mutable” alternative of namedtuple.

Main repository for recordclass is on bitbucket.

Here is also a simple example.

Changes:

0.4.2

  • Fix memory leak in property getter/setter

0.4.3

  • Add support for typing for python 3.6 (patches from Vladimir Bolshakov).

  • Resolve memory leak issue.

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

recordclass-0.4.4.tar.gz (16.6 kB view hashes)

Uploaded Source

Supported by

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