[issue17152] Array module should support "boolean" natively

2013-02-11 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue17152] Array module should support "boolean" natively

2013-02-11 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: we have a -1, so I close this as "rejected". I still think it is a valuable idea to pursuit. -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue17152] Array module should support "boolean" natively

2013-02-09 Thread Mark Dickinson
Mark Dickinson added the comment: There's already a fairly well known 3rd-party library for this: http://pypi.python.org/pypi/bitarray/ I'd be -1 on putting something like this in the standard library: the array module doesn't get enough maintenance as it is, and a packed bit array sounds li

[issue17152] Array module should support "boolean" natively

2013-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are proposing a bit array. Whether the bits are interpreted or displayed as 0/1 or f/t or False/True is secondary. The problem is that bit arrays do not fit the array model, with its minimum byte size per element of 1. There are other aspects of arrays tha

[issue17152] Array module should support "boolean" natively

2013-02-07 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: 1 byte = 8 bools. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue17152] Array module should support "boolean" natively

2013-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: What do you mean by 'natively'? How much space do you envisage each bool taking? That is, are you suggesting a packed bool representation with 8 entries to a byte, or storing one bool per byte, or something else? -- nosy: +mark.dickinson ___

[issue17152] Array module should support "boolean" natively

2013-02-07 Thread Jesús Cea Avión
New submission from Jesús Cea Avión: Array module is used, frequently, as a convenient way of saving a lot of memory. I think we should support "boolean" typeobject natively. Implementation should be trivial and efficient, except methods like "pop()" (a bit convoluted, but doable). Opinions?.