This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients loewis, sh, skrah
Date 2009-12-22.19:47:27
SpamBayes Score 2.1543508e-08
Marked as misclassified No
Message-id <1261511248.89.0.786271784374.issue7561@psf.upfronthosting.co.za>
In-reply-to
Content
I doubt that buffers (including bytearray) are as useful in Python for
storing file names as they are in C.

Typically, when creating a buffer, you allocate some maximum size (in C:
MAXPATH or some such), and then you fill the buffer, and null-terminate.
In Python, you can't null-terminate; instead, the buffer must have the
right size already. So I wonder: where would you get a bytearray from
that has exactly the right size for a file name that you want to access
(and where do you get the file name from)?

If it is IAGNI, then: practicality beats purity - just because we
*could* support arbitrary byte areas, it doesn't mean we should.
History
Date User Action Args
2009-12-22 19:47:29loewissetrecipients: + loewis, skrah, sh
2009-12-22 19:47:28loewissetmessageid: <1261511248.89.0.786271784374.issue7561@psf.upfronthosting.co.za>
2009-12-22 19:47:27loewislinkissue7561 messages
2009-12-22 19:47:27loewiscreate